Skip to content

Commit 298e129

Browse files
author
ozelot379
committed
Fix
1 parent 5bed433 commit 298e129

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎webpack.config.js‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ module.exports = [
2626
entry: {
2727
browser: "./src/index.js"
2828
},
29+
mode: "production",
30+
output: {
31+
filename: "[name].js",
32+
path: __dirname + "/dist",
33+
libraryTarget: "umd",
34+
globalObject: "this" // Fix worker
35+
},
2936
resolve: {
3037
alias: {
3138
fs: __dirname + "/src/fs_browser_null.js",
@@ -35,13 +42,6 @@ module.exports = [
3542
readdirp: __dirname + "/src/fs_browser_null.js"
3643
}
3744
},
38-
mode: "production",
39-
output: {
40-
filename: "[name].js",
41-
path: __dirname + "/dist",
42-
libraryTarget: "umd",
43-
globalObject: "this" // Fix worker
44-
},
4545
target: "web"
4646
}
4747
];

0 commit comments

Comments
 (0)