From 7d08564958605972ad0023cd694d1ff500c51574 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Wed, 28 Jul 2021 18:41:23 +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/a44c42967442d65fd14272682fb84a6f32feb841/src/transforms/babel:refactor-config.js Please contact the author of the transform if you believe there was an error. --- package.json | 86 +++++++++++++++++++--------------------------------- 1 file changed, 32 insertions(+), 54 deletions(-) diff --git a/package.json b/package.json index 7eb2814a..9ef75936 100644 --- a/package.json +++ b/package.json @@ -111,9 +111,18 @@ [ "@babel/preset-env", { - "targets": [ - "defaults", - "maintained node versions" + "targets": "current node" + } + ] + ], + "plugins": [ + [ + "transform-remove-console", + { + "exclude": [ + "log", + "error", + "warn" ] } ] @@ -121,23 +130,6 @@ "env": { "debug": { "presets": [ - [ - "@babel/preset-env", - { - "targets": "current node" - } - ], - "babel-preset-power-assert" - ] - }, - "test": { - "presets": [ - [ - "@babel/preset-env", - { - "targets": "current node" - } - ], "babel-preset-power-assert" ], "plugins": [ @@ -145,6 +137,7 @@ "transform-remove-console", { "exclude": [ + "debug", "log", "error", "warn" @@ -153,60 +146,45 @@ ] ] }, + "test": { + "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" ] } }