From 6a7315db05f16ed6c59d9d9fc83bed929cc41be0 Mon Sep 17 00:00:00 2001 From: mondaychen Date: Tue, 5 Mar 2019 10:34:11 -0500 Subject: [PATCH] Add commonjs support back to babelrc --- .babelrc | 6 +++++- package.json | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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",