mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
compile es6 into umd properly
This commit is contained in:
parent
006bec026e
commit
566bc2d14a
@ -25,6 +25,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^6.14.0",
|
"babel-core": "^6.14.0",
|
||||||
"babel-loader": "^6.2.5",
|
"babel-loader": "^6.2.5",
|
||||||
|
"babel-plugin-add-module-exports": "^0.2.1",
|
||||||
"babel-preset-es2015": "^6.14.0",
|
"babel-preset-es2015": "^6.14.0",
|
||||||
"babel-preset-stage-0": "^6.5.0",
|
"babel-preset-stage-0": "^6.5.0",
|
||||||
"css-loader": "^0.25.0",
|
"css-loader": "^0.25.0",
|
||||||
@ -36,7 +37,7 @@
|
|||||||
"html-loader": "^0.4.4",
|
"html-loader": "^0.4.4",
|
||||||
"node-sass": "^3.10.0",
|
"node-sass": "^3.10.0",
|
||||||
"sass-loader": "^4.0.2",
|
"sass-loader": "^4.0.2",
|
||||||
"webpack": "^1.13.2"
|
"webpack": "1.14.x"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
@ -37,7 +37,8 @@ module.exports = {
|
|||||||
loader: 'babel',
|
loader: 'babel',
|
||||||
exclude: /(node_modules|bower_components)/,
|
exclude: /(node_modules|bower_components)/,
|
||||||
query: {
|
query: {
|
||||||
presets: [["es2015", {"loose": true}], "stage-0"]
|
presets: [["es2015", {"loose": true}], "stage-0"],
|
||||||
|
plugins: ["add-module-exports"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user