Skip to content

Commit

Permalink
🤖 config(babel): Refactor.
Browse files Browse the repository at this point in the history
These changes were automatically generated by a transform whose code can be found at:
  - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/a9afbfe78a793f6bba0aae1432dd3bacf30c05a5/src/transforms/babel:refactor-config.js
Please contact the author of the transform if you believe there was an error.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Oct 28, 2022
1 parent 6059ee3 commit f2b8142
Showing 1 changed file with 33 additions and 55 deletions.
88 changes: 33 additions & 55 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,18 @@
[
"@babel/preset-env",
{
"targets": [
"defaults",
"maintained node versions"
"targets": "current node"
}
]
],
"plugins": [
[
"transform-remove-console",
{
"exclude": [
"log",
"error",
"warn"
]
}
]
Expand All @@ -115,31 +124,14 @@
"debug": {
"sourceMaps": "both",
"presets": [
[
"@babel/preset-env",
{
"targets": "current node"
}
],
"babel-preset-power-assert"
]
},
"test": {
"sourceMaps": "both",
"presets": [
[
"@babel/preset-env",
{
"targets": "current node"
}
],
"babel-preset-power-assert"
],
"plugins": [
[
"transform-remove-console",
{
"exclude": [
"debug",
"log",
"error",
"warn"
Expand All @@ -148,60 +140,46 @@
]
]
},
"test": {
"sourceMaps": "both",
"presets": [
"babel-preset-power-assert"
]
},
"cover": {
"sourceMaps": "both",
"presets": [
[
"@babel/preset-env",
{
"targets": "current node"
}
],
"babel-preset-power-assert"
],
"plugins": [
[
"transform-remove-console",
{
"exclude": [
"log",
"error",
"warn"
]
}
]
]
},
"development": {
"presets": [
"babel-preset-power-assert"
],
"plugins": [
[
"transform-remove-console",
"@babel/preset-env",
{
"exclude": [
"log",
"error",
"warn"
"targets": [
"defaults",
"maintained node versions"
]
}
]
],
"babel-preset-power-assert"
]
},
"production": {
"plugins": [
"babel-plugin-unassert",
"presets": [
[
"transform-remove-console",
"@babel/preset-env",
{
"exclude": [
"log",
"error",
"warn"
"targets": [
"defaults",
"maintained node versions"
]
}
]
],
"plugins": [
"babel-plugin-unassert"
]
}
}
Expand Down

0 comments on commit f2b8142

Please sign in to comment.