From 566bc2d14a2442ee02ed1f298e7db845d19c50d2 Mon Sep 17 00:00:00 2001 From: Jeff Nusz Date: Fri, 7 Apr 2017 15:11:20 -0700 Subject: [PATCH] compile es6 into umd properly --- package.json | 3 ++- webpack/webpack.config.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"] } }, {