diff --git a/frappe/build.js b/frappe/build.js index 45ab9bc9cf..9a4f0c2fc9 100644 --- a/frappe/build.js +++ b/frappe/build.js @@ -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, diff --git a/package.json b/package.json index 10ad3df7ea..836c0957ef 100644 --- a/package.json +++ b/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" } }