Skip to content

Commit 38aed7b

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/eb1b209cd7aa675a642d48b2a788c2c6112779f7/src/transforms/babel:refactor-config.js Please contact the author of the transform if you believe there was an error.
1 parent f2c0eff commit 38aed7b

File tree

1 file changed

+36
-58
lines changed

1 file changed

+36
-58
lines changed

package.json

Lines changed: 36 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -103,44 +103,38 @@
103103
"concurrency": 8
104104
},
105105
"babel": {
106+
"sourceMaps": true,
106107
"presets": [
107108
[
108109
"@babel/preset-env",
109110
{
110-
"targets": [
111-
"defaults",
112-
"maintained node versions"
111+
"targets": "current node"
112+
}
113+
]
114+
],
115+
"plugins": [
116+
[
117+
"transform-remove-console",
118+
{
119+
"exclude": [
120+
"log",
121+
"error",
122+
"warn"
113123
]
114124
}
115125
]
116126
],
117127
"env": {
118128
"debug": {
119129
"presets": [
120-
[
121-
"@babel/preset-env",
122-
{
123-
"targets": "current node"
124-
}
125-
],
126-
"babel-preset-power-assert"
127-
]
128-
},
129-
"test": {
130-
"presets": [
131-
[
132-
"@babel/preset-env",
133-
{
134-
"targets": "current node"
135-
}
136-
],
137130
"babel-preset-power-assert"
138131
],
139132
"plugins": [
140133
[
141134
"transform-remove-console",
142135
{
143136
"exclude": [
137+
"debug",
144138
"log",
145139
"error",
146140
"warn"
@@ -149,63 +143,47 @@
149143
]
150144
]
151145
},
152-
"development": {
146+
"test": {
153147
"presets": [
154148
"babel-preset-power-assert"
155-
],
156-
"plugins": [
157-
[
158-
"transform-remove-console",
159-
{
160-
"exclude": [
161-
"log",
162-
"error",
163-
"warn"
164-
]
165-
}
166-
]
167-
]
168-
},
169-
"production": {
170-
"plugins": [
171-
"babel-plugin-unassert",
172-
[
173-
"transform-remove-console",
174-
{
175-
"exclude": [
176-
"log",
177-
"error",
178-
"warn"
179-
]
180-
}
181-
]
182149
]
183150
},
184151
"cover": {
185152
"sourceMaps": "both",
153+
"presets": [
154+
"babel-preset-power-assert"
155+
]
156+
},
157+
"development": {
186158
"presets": [
187159
[
188160
"@babel/preset-env",
189161
{
190-
"targets": "current node"
162+
"targets": [
163+
"defaults",
164+
"maintained node versions"
165+
]
191166
}
192167
],
193168
"babel-preset-power-assert"
194-
],
195-
"plugins": [
169+
]
170+
},
171+
"production": {
172+
"presets": [
196173
[
197-
"transform-remove-console",
174+
"@babel/preset-env",
198175
{
199-
"exclude": [
200-
"log",
201-
"error",
202-
"warn"
176+
"targets": [
177+
"defaults",
178+
"maintained node versions"
203179
]
204180
}
205181
]
182+
],
183+
"plugins": [
184+
"babel-plugin-unassert"
206185
]
207186
}
208-
},
209-
"sourceMaps": true
187+
}
210188
}
211189
}

0 commit comments

Comments
 (0)