diff --git a/.babelrc b/.babelrc index c7999384..18cbe398 100644 --- a/.babelrc +++ b/.babelrc @@ -8,7 +8,11 @@ ], "@babel/preset-react" ], - "plugins": ["@babel/plugin-transform-runtime", "@babel/plugin-proposal-object-rest-spread"], + "plugins": [ + "@babel/plugin-transform-runtime", + "@babel/plugin-proposal-object-rest-spread", + "@babel/plugin-transform-modules-commonjs" + ], "env": { "test": { "presets": ["@babel/preset-env", "@babel/preset-react"] diff --git a/package.json b/package.json index 9eb2e4e6..ebadc5c2 100755 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "@babel/cli": "^7.2.3", "@babel/core": "^7.2.2", "@babel/plugin-proposal-object-rest-spread": "^7.2.0", + "@babel/plugin-transform-modules-commonjs": "^7.2.0", "@babel/plugin-transform-runtime": "^7.2.0", "@babel/polyfill": "^7.2.5", "@babel/preset-env": "^7.3.1",