@@ -22,7 +22,7 @@ module.exports = {
22
22
modules: [' node_modules' ]
23
23
},
24
24
plugins : [
25
- new TerserPlugin (),
25
+ new webpack . optimize . UglifyJsPlugin (),
26
26
new webpack .optimize .OccurrenceOrderPlugin ()
27
27
],
28
28
debug : true
@@ -50,7 +50,7 @@ module.exports = {
50
50
modules: [' node_modules' ]
51
51
},
52
52
plugins : [
53
- new TerserPlugin (),
53
+ new webpack . optimize . UglifyJsPlugin (),
54
54
new webpack .optimize .OccurrenceOrderPlugin ()
55
55
],
56
56
debug : true
@@ -61,18 +61,15 @@ module.exports = {
61
61
exports [` transform should respect recast options 1` ] = `
62
62
"
63
63
module.exports = {
64
- devtool : ' eval' ,
65
-
66
- entry : [
64
+ devtool : ' eval' ,
65
+ entry : [
67
66
' ./src/index'
68
67
],
69
-
70
- output : {
68
+ output : {
71
69
path: path .join (__dirname , ' dist' ),
72
70
filename: ' index.js'
73
71
},
74
-
75
- module : {
72
+ module : {
76
73
rules: [{
77
74
test: / . js$ / ,
78
75
use: [{
@@ -81,18 +78,15 @@ module.exports = {
81
78
include: path .join (__dirname , ' src' )
82
79
}]
83
80
},
84
-
85
- resolve : {
81
+ resolve : {
86
82
modules: [' node_modules' , path .resolve (' /src' )],
87
83
},
88
-
89
- plugins : [
90
- new TerserPlugin (),
91
- new webpack .LoaderOptionsPlugin ({
92
- debug: true ,
93
- minimize: true ,
94
- })
95
- ],
84
+ plugins : [new webpack .LoaderOptionsPlugin ({
85
+ debug: true ,
86
+ })],
87
+ optimization : {
88
+ minimize: true ,
89
+ }
96
90
} ;
97
91
"
98
92
` ;
@@ -122,7 +116,7 @@ module.exports = {
122
116
modules: [' node_modules' ]
123
117
},
124
118
plugins : [
125
- new TerserPlugin (),
119
+ new webpack . optimize . UglifyJsPlugin (),
126
120
new webpack .optimize .OccurrenceOrderPlugin ()
127
121
],
128
122
debug : true
@@ -133,18 +127,15 @@ module.exports = {
133
127
exports [` transform should transform using all transformations 1` ] = `
134
128
"
135
129
module.exports = {
136
- devtool : ' eval' ,
137
-
138
- entry : [
130
+ devtool : ' eval' ,
131
+ entry : [
139
132
' ./src/index'
140
133
],
141
-
142
- output : {
134
+ output : {
143
135
path: path .join (__dirname , ' dist' ),
144
136
filename: ' index.js'
145
137
},
146
-
147
- module : {
138
+ module : {
148
139
rules: [{
149
140
test: / . js$ / ,
150
141
use: [{
@@ -153,18 +144,15 @@ module.exports = {
153
144
include: path .join (__dirname , ' src' )
154
145
}]
155
146
},
156
-
157
- resolve : {
147
+ resolve : {
158
148
modules: [' node_modules' , path .resolve (' /src' )]
159
149
},
160
-
161
- plugins : [
162
- new TerserPlugin (),
163
- new webpack .LoaderOptionsPlugin ({
164
- debug: true ,
165
- minimize: true
166
- })
167
- ]
150
+ plugins : [new webpack .LoaderOptionsPlugin ({
151
+ debug: true
152
+ })],
153
+ optimization : {
154
+ minimize: true
155
+ }
168
156
} ;
169
157
"
170
158
` ;
0 commit comments