File tree Expand file tree Collapse file tree 1 file changed +34
-56
lines changed Expand file tree Collapse file tree 1 file changed +34
-56
lines changed Original file line number Diff line number Diff line change 105
105
[
106
106
" @babel/preset-env" ,
107
107
{
108
- "targets" : [
109
- " defaults" ,
110
- " maintained node versions"
108
+ "targets" : " current node"
109
+ }
110
+ ]
111
+ ],
112
+ "plugins" : [
113
+ [
114
+ " transform-remove-console" ,
115
+ {
116
+ "exclude" : [
117
+ " log" ,
118
+ " error" ,
119
+ " warn"
111
120
]
112
121
}
113
122
]
114
123
],
115
124
"env" : {
116
125
"debug" : {
117
126
"presets" : [
118
- [
119
- " @babel/preset-env" ,
120
- {
121
- "targets" : " current node"
122
- }
123
- ],
124
- " babel-preset-power-assert"
125
- ]
126
- },
127
- "test" : {
128
- "presets" : [
129
- [
130
- " @babel/preset-env" ,
131
- {
132
- "targets" : " current node"
133
- }
134
- ],
135
127
" babel-preset-power-assert"
136
128
],
137
129
"plugins" : [
138
130
[
139
131
" transform-remove-console" ,
140
132
{
141
133
"exclude" : [
134
+ " debug" ,
142
135
" log" ,
143
136
" error" ,
144
137
" warn"
147
140
]
148
141
]
149
142
},
150
- "development " : {
143
+ "test " : {
151
144
"presets" : [
152
145
" babel-preset-power-assert"
153
- ],
154
- "plugins" : [
155
- [
156
- " transform-remove-console" ,
157
- {
158
- "exclude" : [
159
- " log" ,
160
- " error" ,
161
- " warn"
162
- ]
163
- }
164
- ]
165
- ]
166
- },
167
- "production" : {
168
- "plugins" : [
169
- " babel-plugin-unassert" ,
170
- [
171
- " transform-remove-console" ,
172
- {
173
- "exclude" : [
174
- " log" ,
175
- " error" ,
176
- " warn"
177
- ]
178
- }
179
- ]
180
146
]
181
147
},
182
148
"cover" : {
183
149
"sourceMaps" : " both" ,
150
+ "presets" : [
151
+ " babel-preset-power-assert"
152
+ ]
153
+ },
154
+ "development" : {
184
155
"presets" : [
185
156
[
186
157
" @babel/preset-env" ,
187
158
{
188
- "targets" : " current node"
159
+ "targets" : [
160
+ " defaults" ,
161
+ " maintained node versions"
162
+ ]
189
163
}
190
164
],
191
165
" babel-preset-power-assert"
192
- ],
193
- "plugins" : [
166
+ ]
167
+ },
168
+ "production" : {
169
+ "presets" : [
194
170
[
195
- " transform-remove-console " ,
171
+ " @babel/preset-env " ,
196
172
{
197
- "exclude" : [
198
- " log" ,
199
- " error" ,
200
- " warn"
173
+ "targets" : [
174
+ " defaults" ,
175
+ " maintained node versions"
201
176
]
202
177
}
203
178
]
179
+ ],
180
+ "plugins" : [
181
+ " babel-plugin-unassert"
204
182
]
205
183
}
206
184
}
You can’t perform that action at this time.
0 commit comments