Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions js/ort-whisper/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ module.exports = () => {
}
},
plugins: [new CopyPlugin({
// Use copy plugin to copy *.wasm to output folder.
patterns: [{ from: 'node_modules/onnxruntime-web/dist/*.wasm', to: '[name][ext]' }]
// Use copy plugin to copy *.wasm and *.mjs to output folder.
patterns: [
{ from: 'node_modules/onnxruntime-web/dist/*.wasm', to: '[name][ext]' },
{ from: 'node_modules/onnxruntime-web/dist/*.mjs', to: '[name][ext]' }
]
})],
mode: 'production'
}
Expand Down
7 changes: 5 additions & 2 deletions js/quick-start_onnxruntime-web-bundler/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ module.exports = () => {
}
},
plugins: [new CopyPlugin({
// Use copy plugin to copy *.wasm to output folder.
patterns: [{ from: 'node_modules/onnxruntime-web/dist/*.wasm', to: '[name][ext]' }]
// Use copy plugin to copy *.wasm and *.mjs to output folder.
patterns: [
{ from: 'node_modules/onnxruntime-web/dist/*.wasm', to: '[name][ext]' },
{ from: 'node_modules/onnxruntime-web/dist/*.mjs', to: '[name][ext]' }
]
})],
mode: 'production'
}
Expand Down
6 changes: 5 additions & 1 deletion js/sd-turbo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ export default {
},
},
plugins: [
// Copy .wasm files to dist folder
// Copy .wasm and .mjs files to dist folder
new CopyWebpackPlugin({
patterns: [
{
from: 'node_modules/onnxruntime-web/dist/*.wasm',
to: 'dist/[name][ext]'
},
{
from: 'node_modules/onnxruntime-web/dist/*.mjs',
to: 'dist/[name][ext]'
},
],
}),
],
Expand Down
6 changes: 5 additions & 1 deletion js/segment-anything/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ export default {
},
},
plugins: [
// Copy .wasm files to dist folder
// Copy .wasm and .mjs files to dist folder
new CopyWebpackPlugin({
patterns: [
{
from: 'node_modules/onnxruntime-web/dist/*.wasm',
to: 'dist/[name][ext]'
},
{
from: 'node_modules/onnxruntime-web/dist/*.mjs',
to: 'dist/[name][ext]'
},
],
}),
],
Expand Down
Loading