[FIX] new babel-presets (#4232)
* [FIX] babel-presets * comment out minify * Update build.js
This commit is contained in:
parent
ee70e152f0
commit
612b94c367
2 changed files with 13 additions and 14 deletions
|
|
@ -123,10 +123,9 @@ function pack(output_path, inputs, minify) {
|
|||
}
|
||||
|
||||
function babelify(content, path, minify) {
|
||||
let presets = ['es2015', 'es2016'];
|
||||
// if(minify) {
|
||||
// presets.push('babili'); // new babel minifier
|
||||
// }
|
||||
let presets = ['env'];
|
||||
// Minification doesn't work when loading Frappe Desk
|
||||
// Avoid for now, trace the error and come back.
|
||||
try {
|
||||
return babel.transform(content, {
|
||||
presets: presets,
|
||||
|
|
|
|||
20
package.json
20
package.json
|
|
@ -14,20 +14,20 @@
|
|||
},
|
||||
"homepage": "https://frappe.io",
|
||||
"dependencies": {
|
||||
"babel-core": "^6.24.1",
|
||||
"babel-preset-babili": "0.0.12",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"babel-preset-es2016": "^6.24.1",
|
||||
"babel-preset-es2017": "^6.24.1",
|
||||
"chokidar": "^1.7.0",
|
||||
"chromedriver": "^2.30.1",
|
||||
"cookie": "^0.3.1",
|
||||
"express": "^4.15.3",
|
||||
"less": "^2.7.2",
|
||||
"nightwatch": "^0.9.16",
|
||||
"redis": "^2.7.1",
|
||||
"socket.io": "^2.0.1",
|
||||
"superagent": "^3.5.2",
|
||||
"touch": "^3.1.0"
|
||||
"touch": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-preset-env": "^1.6.0",
|
||||
"babel-preset-minify": "^0.2.0",
|
||||
"chokidar": "^1.7.0",
|
||||
"chromedriver": "^2.32.3",
|
||||
"less": "^2.7.2",
|
||||
"nightwatch": "^0.9.16"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue