From 0548dac49a36d633dcb5ae7f7d2a98f191d1851a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Tue, 24 Nov 2020 02:57:44 +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 f051b47..ce2a6c8 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,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" } }