Remove `onnxruntime-node` from webpack ignore plugin

This commit is contained in:
Joshua Lochner 2023-04-25 01:50:30 +02:00
parent 34db6d694c
commit e1ea278024
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ export default {
plugins: [
// Do not include node modules when bundling for the browser
new webpack.IgnorePlugin({
resourceRegExp: /^onnxruntime-node$|^node:/
// NOTE: We do not ignore `onnxruntime-node` because it's
// already ignored by the `browser` option in in package.json
resourceRegExp: /^node:/
}),
// Copy .wasm files to dist folder