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 105105 [
106106 " @babel/preset-env" ,
107107 {
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"
111120 ]
112121 }
113122 ]
114123 ],
115124 "env" : {
116125 "debug" : {
117126 "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- ],
135127 " babel-preset-power-assert"
136128 ],
137129 "plugins" : [
138130 [
139131 " transform-remove-console" ,
140132 {
141133 "exclude" : [
134+ " debug" ,
142135 " log" ,
143136 " error" ,
144137 " warn"
147140 ]
148141 ]
149142 },
150- "development " : {
143+ "test " : {
151144 "presets" : [
152145 " 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- ]
180146 ]
181147 },
182148 "cover" : {
183149 "sourceMaps" : " both" ,
150+ "presets" : [
151+ " babel-preset-power-assert"
152+ ]
153+ },
154+ "development" : {
184155 "presets" : [
185156 [
186157 " @babel/preset-env" ,
187158 {
188- "targets" : " current node"
159+ "targets" : [
160+ " defaults" ,
161+ " maintained node versions"
162+ ]
189163 }
190164 ],
191165 " babel-preset-power-assert"
192- ],
193- "plugins" : [
166+ ]
167+ },
168+ "production" : {
169+ "presets" : [
194170 [
195- " transform-remove-console " ,
171+ " @babel/preset-env " ,
196172 {
197- "exclude" : [
198- " log" ,
199- " error" ,
200- " warn"
173+ "targets" : [
174+ " defaults" ,
175+ " maintained node versions"
201176 ]
202177 }
203178 ]
179+ ],
180+ "plugins" : [
181+ " babel-plugin-unassert"
204182 ]
205183 }
206184 }
You can’t perform that action at this time.
0 commit comments