Skip to content

Commit 1b3d5d2

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 1af3f23 commit 1b3d5d2

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
@@ -105,40 +105,33 @@
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"
@@ -147,60 +140,45 @@
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
}

0 commit comments

Comments
 (0)