Skip to content

Commit 8330870

Browse files
committed
Remove redundant resolve.fallback to webpack config
This is already handled by the "browser" option in package.json
1 parent 87e121c commit 8330870

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

webpack.config.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
const webpack = require('webpack');
22
const CopyWebpackPlugin = require('copy-webpack-plugin');
3-
const TerserPlugin = require("terser-webpack-plugin");
3+
const TerserPlugin = require('terser-webpack-plugin');
44

55
module.exports = {
66
mode: 'development',
77
devtool: 'source-map',
88
entry: {
99
// include dist in entry point so that when running dev server,
1010
// we can access the files with /dist/...
11-
"dist/transformers": './src/transformers.js',
12-
"dist/transformers.min": './src/transformers.js',
11+
'dist/transformers': './src/transformers.js',
12+
'dist/transformers.min': './src/transformers.js',
1313
},
1414
output: {
1515
filename: '[name].js',
@@ -25,8 +25,8 @@ module.exports = {
2525
new CopyWebpackPlugin({
2626
patterns: [
2727
{
28-
from: "node_modules/onnxruntime-web/dist/*.wasm",
29-
to: "dist/[name][ext]"
28+
from: 'node_modules/onnxruntime-web/dist/*.wasm',
29+
to: 'dist/[name][ext]'
3030
},
3131
],
3232
}),
@@ -44,10 +44,4 @@ module.exports = {
4444
},
4545
port: 8080
4646
},
47-
resolve: {
48-
fallback: {
49-
fs: false,
50-
path: false
51-
}
52-
}
5347
};

0 commit comments

Comments
 (0)