diff --git a/.babelrc b/.babelrc index 6ad4136c..566c773a 100644 --- a/.babelrc +++ b/.babelrc @@ -20,22 +20,17 @@ ], "react" ], - "plugins": [ - "transform-object-rest-spread" - ], + "plugins": ["transform-object-rest-spread"], "env": { "test": { - "presets": [ - "react" - ], - "plugins": [ - "transform-es2015-modules-commonjs" - ] + "presets": ["react"], + "plugins": ["transform-es2015-modules-commonjs"] }, "library": { "plugins": [ + "babel-plugin-remove-webpack", "babel-plugin-transform-runtime" ] } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index c8a66678..b1f099a4 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,7 @@ }, "dependencies": { "babel": "^6.23.0", + "babel-plugin-remove-webpack": "^1.1.0", "babel-plugin-transform-object-rest-spread": "^6.20.2", "babel-plugin-transform-react-jsx": "^6.8.0", "babel-preset-env": "^1.5.2", diff --git a/yarn.lock b/yarn.lock index 2ba24911..eea3ff59 100644 --- a/yarn.lock +++ b/yarn.lock @@ -536,6 +536,10 @@ babel-plugin-jest-hoist@^22.2.0: version "22.2.0" resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-22.2.0.tgz#bd34f39d652406669713b8c89e23ef25c890b993" +babel-plugin-remove-webpack@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/babel-plugin-remove-webpack/-/babel-plugin-remove-webpack-1.1.0.tgz#82925cab871230c0c6b82cf67a3af243c094d1d6" + babel-plugin-syntax-async-functions@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"