This website works better with JavaScript.
Home
Explore
Help
Sign In
modal-soft
/
mio-ai
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Update pridepack config
Only load wasm module for CJS builds.
master
TheoryOfNekomata
1 year ago
parent
4404b58c24
commit
5a7d0fd4d1
2 changed files
with
11 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-5
examples/cli/pridepack.config.js
+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');
module.exports = {
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 @@
../../../../../
Write
Preview
Loading…
Cancel
Save