diff --git a/package.json b/package.json index 4904492..225e9b7 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "devDependencies": { "babel-core": "^6.14.0", "babel-loader": "^6.2.5", + "babel-plugin-add-module-exports": "^0.2.1", "babel-preset-es2015": "^6.14.0", "babel-preset-stage-0": "^6.5.0", "css-loader": "^0.25.0", @@ -36,7 +37,7 @@ "html-loader": "^0.4.4", "node-sass": "^3.10.0", "sass-loader": "^4.0.2", - "webpack": "^1.13.2" + "webpack": "1.14.x" }, "dependencies": {}, "eslintConfig": { diff --git a/webpack/webpack.config.js b/webpack/webpack.config.js index 3e2c1f8..51cef40 100644 --- a/webpack/webpack.config.js +++ b/webpack/webpack.config.js @@ -37,7 +37,8 @@ module.exports = { loader: 'babel', exclude: /(node_modules|bower_components)/, query: { - presets: [["es2015", {"loose": true}], "stage-0"] + presets: [["es2015", {"loose": true}], "stage-0"], + plugins: ["add-module-exports"] } }, {