File tree Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const { merge } = require("webpack-merge");
6
6
7
7
const baseForModules = {
8
8
devtool : false ,
9
- mode : "development " ,
9
+ mode : "production " ,
10
10
experiments : {
11
11
outputModule : true ,
12
12
} ,
@@ -16,6 +16,9 @@ const baseForModules = {
16
16
type : "module" ,
17
17
} ,
18
18
} ,
19
+ optimization : {
20
+ minimize : false ,
21
+ } ,
19
22
target : webpack . webpack ? [ "web" , "es5" ] : "web" ,
20
23
module : {
21
24
rules : [
@@ -37,21 +40,21 @@ module.exports = [
37
40
output : {
38
41
filename : "logger/index.js" ,
39
42
} ,
40
- module : {
41
- rules : [
42
- {
43
- test : / \. j s $ / ,
44
- use : [
45
- {
46
- loader : "babel-loader" ,
47
- options : {
48
- plugins : [ "@babel/plugin-transform-object-assign" ] ,
49
- } ,
50
- } ,
51
- ] ,
52
- } ,
53
- ] ,
54
- } ,
43
+ // module: {
44
+ // rules: [
45
+ // {
46
+ // test: /\.js$/,
47
+ // use: [
48
+ // {
49
+ // loader: "babel-loader",
50
+ // options: {
51
+ // plugins: ["@babel/plugin-transform-object-assign"],
52
+ // },
53
+ // },
54
+ // ],
55
+ // },
56
+ // ],
57
+ // },
55
58
plugins : [
56
59
new webpack . DefinePlugin ( {
57
60
Symbol :
You can’t perform that action at this time.
0 commit comments