Use node6 es2015 features; remove extra transforms (#327)

This commit is contained in:
Darin Morrison 2016-07-21 13:18:07 -06:00 committed by Guillermo Rauch
parent 12250cea19
commit 9e3fe9228d
2 changed files with 3 additions and 2 deletions

View file

@ -27,7 +27,6 @@
"babel-core": "6.10.4",
"babel-eslint": "6.1.2",
"babel-loader": "6.2.4",
"babel-preset-es2015-native-modules": "6.9.0",
"babel-preset-react": "6.11.1",
"eslint": "3.1.1",
"eslint-config-standard": "5.3.5",
@ -67,7 +66,6 @@
},
"babel": {
"presets": [
"es2015-native-modules",
"react"
]
},

View file

@ -8,6 +8,9 @@ const isDev = require('electron-is-dev');
const AutoUpdater = require('./auto-updater');
const toHex = require('convert-css-color-name-to-hex');
// --harmony enables a few remaining es2015 features not defaulted in node 6
app.commandLine.appendSwitch('js-flags', '--harmony');
// set up config
const config = require('./config');
config.init();