Skip to content

Commit dcc99ec

Browse files
🤖 config(babel): Refactor.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/aureooms/rejuvenate/blob/c0306a0431f42510000cc745a99bc61ad7710a7a/src/transforms/babel:refactor-config.js Please contact the author of the transform if you believe there was an error.
1 parent 98801cf commit dcc99ec

File tree

1 file changed

+34
-56
lines changed

1 file changed

+34
-56
lines changed

package.json

Lines changed: 34 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -110,40 +110,33 @@
110110
[
111111
"@babel/preset-env",
112112
{
113-
"targets": [
114-
"defaults",
115-
"maintained node versions"
113+
"targets": "current node"
114+
}
115+
]
116+
],
117+
"plugins": [
118+
[
119+
"transform-remove-console",
120+
{
121+
"exclude": [
122+
"log",
123+
"error",
124+
"warn"
116125
]
117126
}
118127
]
119128
],
120129
"env": {
121130
"debug": {
122131
"presets": [
123-
[
124-
"@babel/preset-env",
125-
{
126-
"targets": "current node"
127-
}
128-
],
129-
"babel-preset-power-assert"
130-
]
131-
},
132-
"test": {
133-
"presets": [
134-
[
135-
"@babel/preset-env",
136-
{
137-
"targets": "current node"
138-
}
139-
],
140132
"babel-preset-power-assert"
141133
],
142134
"plugins": [
143135
[
144136
"transform-remove-console",
145137
{
146138
"exclude": [
139+
"debug",
147140
"log",
148141
"error",
149142
"warn"
@@ -152,60 +145,45 @@
152145
]
153146
]
154147
},
155-
"development": {
148+
"test": {
156149
"presets": [
157150
"babel-preset-power-assert"
158-
],
159-
"plugins": [
160-
[
161-
"transform-remove-console",
162-
{
163-
"exclude": [
164-
"log",
165-
"error",
166-
"warn"
167-
]
168-
}
169-
]
170-
]
171-
},
172-
"production": {
173-
"plugins": [
174-
"babel-plugin-unassert",
175-
[
176-
"transform-remove-console",
177-
{
178-
"exclude": [
179-
"log",
180-
"error",
181-
"warn"
182-
]
183-
}
184-
]
185151
]
186152
},
187153
"cover": {
188154
"sourceMaps": "both",
155+
"presets": [
156+
"babel-preset-power-assert"
157+
]
158+
},
159+
"development": {
189160
"presets": [
190161
[
191162
"@babel/preset-env",
192163
{
193-
"targets": "current node"
164+
"targets": [
165+
"defaults",
166+
"maintained node versions"
167+
]
194168
}
195169
],
196170
"babel-preset-power-assert"
197-
],
198-
"plugins": [
171+
]
172+
},
173+
"production": {
174+
"presets": [
199175
[
200-
"transform-remove-console",
176+
"@babel/preset-env",
201177
{
202-
"exclude": [
203-
"log",
204-
"error",
205-
"warn"
178+
"targets": [
179+
"defaults",
180+
"maintained node versions"
206181
]
207182
}
208183
]
184+
],
185+
"plugins": [
186+
"babel-plugin-unassert"
209187
]
210188
}
211189
}

0 commit comments

Comments
 (0)