Skip to content

Commit b1162f3

Browse files
committed
Exclude imports that use the node: protocol when building for the web
1 parent 6cf12df commit b1162f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ module.exports = {
1616
path: __dirname,
1717
},
1818
plugins: [
19-
// Do not include node module when bundling for the browser
19+
// Do not include node modules when bundling for the browser
2020
new webpack.IgnorePlugin({
21-
resourceRegExp: /^onnxruntime-node$/
21+
resourceRegExp: /^onnxruntime-node$|^node:/
2222
}),
2323

2424
// Copy .wasm files to dist folder

0 commit comments

Comments
 (0)