From f2b8142e15e41032c1efb06b9d518a4ab839c404 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Fri, 28 Oct 2022 23:17:34 +0200 Subject: [PATCH] :robot: 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/a9afbfe78a793f6bba0aae1432dd3bacf30c05a5/src/transforms/babel:refactor-config.js Please contact the author of the transform if you believe there was an error. --- package.json | 88 ++++++++++++++++++++-------------------------------- 1 file changed, 33 insertions(+), 55 deletions(-) diff --git a/package.json b/package.json index bd11ccc..8a5cf98 100644 --- a/package.json +++ b/package.json @@ -104,9 +104,18 @@ [ "@babel/preset-env", { - "targets": [ - "defaults", - "maintained node versions" + "targets": "current node" + } + ] + ], + "plugins": [ + [ + "transform-remove-console", + { + "exclude": [ + "log", + "error", + "warn" ] } ] @@ -115,24 +124,6 @@ "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": [ @@ -140,6 +131,7 @@ "transform-remove-console", { "exclude": [ + "debug", "log", "error", "warn" @@ -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" ] } }