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" } }