mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Use node6 es2015 features; remove extra transforms (#327)
This commit is contained in:
parent
12250cea19
commit
9e3fe9228d
2 changed files with 3 additions and 2 deletions
|
|
@ -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"
|
||||
]
|
||||
},
|
||||
|
|
|
|||
3
index.js
3
index.js
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue