diff --git a/.babelrc b/.babelrc index e68d2fea..851afd50 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,6 @@ { - "presets": ["es2015", "stage-2", "react"] + "presets": ["es2015", "stage-2", "react"], + "plugins": [ + "add-module-exports" + ] } diff --git a/package.json b/package.json index 9ea0286f..fc8d0917 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "babel-core": "^6.25.0", "babel-eslint": "^7.1.1", "babel-loader": "^6.2.4", + "babel-plugin-add-module-exports": "^0.2.1", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "babel-preset-stage-2": "^6.24.1",