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/3eb37da7d78b30a6f28492864d065b8d8043ab23/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 16, 2022
1 parent 57770b5 commit c118af6
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 @@ -93,9 +93,18 @@
[
"@babel/preset-env",
{
"targets": [
"defaults",
"maintained node versions"
"targets": "current node"
}
]
],
"plugins": [
[
"transform-remove-console",
{
"exclude": [
"log",
"error",
"warn"
]
}
]
Expand All @@ -104,31 +113,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 @@ -137,60 +129,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 c118af6

Please sign in to comment.