Skip to content

Commit df6d4fe

Browse files
🤖 config(babel): Refactor.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/9b50c2a1d7e9ab7b4bc9c9ff88892e98c5f62244/src/transforms/babel:refactor-config.js Please contact the author of the transform if you believe there was an error.
1 parent 850605c commit df6d4fe

File tree

1 file changed

+33
-57
lines changed

1 file changed

+33
-57
lines changed

package.json

Lines changed: 33 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -90,45 +90,35 @@
9090
[
9191
"@babel/preset-env",
9292
{
93-
"targets": [
94-
"defaults",
95-
"maintained node versions"
96-
]
93+
"targets": "current node"
9794
}
9895
]
9996
],
10097
"plugins": [
101-
"@babel/plugin-proposal-async-generator-functions"
98+
"@babel/plugin-proposal-async-generator-functions",
99+
[
100+
"transform-remove-console",
101+
{
102+
"exclude": [
103+
"log",
104+
"error",
105+
"warn"
106+
]
107+
}
108+
]
102109
],
103110
"env": {
104111
"debug": {
105112
"sourceMaps": "both",
106113
"presets": [
107-
[
108-
"@babel/preset-env",
109-
{
110-
"targets": "current node"
111-
}
112-
],
113-
"babel-preset-power-assert"
114-
]
115-
},
116-
"test": {
117-
"sourceMaps": "both",
118-
"presets": [
119-
[
120-
"@babel/preset-env",
121-
{
122-
"targets": "current node"
123-
}
124-
],
125114
"babel-preset-power-assert"
126115
],
127116
"plugins": [
128117
[
129118
"transform-remove-console",
130119
{
131120
"exclude": [
121+
"debug",
132122
"log",
133123
"error",
134124
"warn"
@@ -137,60 +127,46 @@
137127
]
138128
]
139129
},
130+
"test": {
131+
"sourceMaps": "both",
132+
"presets": [
133+
"babel-preset-power-assert"
134+
]
135+
},
140136
"cover": {
141137
"sourceMaps": "both",
142138
"presets": [
143-
[
144-
"@babel/preset-env",
145-
{
146-
"targets": "current node"
147-
}
148-
],
149139
"babel-preset-power-assert"
150-
],
151-
"plugins": [
152-
[
153-
"transform-remove-console",
154-
{
155-
"exclude": [
156-
"log",
157-
"error",
158-
"warn"
159-
]
160-
}
161-
]
162140
]
163141
},
164142
"development": {
165143
"presets": [
166-
"babel-preset-power-assert"
167-
],
168-
"plugins": [
169144
[
170-
"transform-remove-console",
145+
"@babel/preset-env",
171146
{
172-
"exclude": [
173-
"log",
174-
"error",
175-
"warn"
147+
"targets": [
148+
"defaults",
149+
"maintained node versions"
176150
]
177151
}
178-
]
152+
],
153+
"babel-preset-power-assert"
179154
]
180155
},
181156
"production": {
182-
"plugins": [
183-
"babel-plugin-unassert",
157+
"presets": [
184158
[
185-
"transform-remove-console",
159+
"@babel/preset-env",
186160
{
187-
"exclude": [
188-
"log",
189-
"error",
190-
"warn"
161+
"targets": [
162+
"defaults",
163+
"maintained node versions"
191164
]
192165
}
193166
]
167+
],
168+
"plugins": [
169+
"babel-plugin-unassert"
194170
]
195171
}
196172
}

0 commit comments

Comments
 (0)