fix(web): correct builds for CJS
This commit is contained in:
parent
f6a943a1ad
commit
79244b5815
3 changed files with 18 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ await esbuild.build({
|
|||
sourcesContent: true,
|
||||
keepNames: true,
|
||||
external: ['fs/*', 'fs/promises'],
|
||||
resolveExtensions: ['.ts', '.js', format === 'esm' ? '.mjs' : '.cjs'],
|
||||
});
|
||||
|
||||
// Copy the generated WASM files to the appropriate spot, as esbuild doesn't "bundle" WASM files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue