Browse Source

Update pridepack config

Only load wasm module for CJS builds.
master
TheoryOfNekomata 1 year ago
parent
commit
5a7d0fd4d1
2 changed files with 11 additions and 6 deletions
  1. +11
    -5
      examples/cli/pridepack.config.js
  2. +0
    -1
      examples/cli/src/packages/@modal-sh/mio-ai

+ 11
- 5
examples/cli/pridepack.config.js View File

@@ -1,9 +1,15 @@
const { wasmLoader } = require('esbuild-plugin-wasm'); const { wasmLoader } = require('esbuild-plugin-wasm');
module.exports = { module.exports = {
target: 'esnext', target: 'esnext',
plugins: () => [
wasmLoader({
mode: 'deferred',
}),
],
plugins: ({ isCJS }) => {
if (isCJS) {
return [
wasmLoader({
mode: 'deferred',
}),
];
}

return [];
},
} }

+ 0
- 1
examples/cli/src/packages/@modal-sh/mio-ai View File

@@ -1 +0,0 @@
../../../../../

Loading…
Cancel
Save