compile es6 into umd properly

This commit is contained in:
Jeff Nusz 2017-04-07 15:11:20 -07:00
parent 006bec026e
commit 566bc2d14a
2 changed files with 4 additions and 2 deletions

View File

@ -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": {

View File

@ -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"]
}
},
{