From 77d98a5b60737a82b82663138745821c39f430d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Mon, 23 Nov 2020 01:57:38 +0100 Subject: [PATCH] :unamused: chore(deps-dev): Configure babel. --- package.json | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/package.json b/package.json index b0ba5ef..76df898 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,56 @@ "@babel/preset-env" ], "env": { + "test": { + "presets": [ + "babel-preset-power-assert" + ], + "plugins": [ + [ + "transform-remove-console", + { + "exclude": [ + "log", + "error", + "warn" + ] + } + ] + ], + "sourceMaps": "inline" + }, "development": { + "presets": [ + "babel-preset-power-assert" + ], + "plugins": [ + [ + "transform-remove-console", + { + "exclude": [ + "log", + "error", + "warn" + ] + } + ] + ], + "sourceMaps": "inline" + }, + "production": { + "plugins": [ + "babel-plugin-unassert", + [ + "transform-remove-console", + { + "exclude": [ + "log", + "error", + "warn" + ] + } + ] + ], "sourceMaps": "inline" } }