Skip to content

Commit

Permalink
Use node6 es2015 features; remove extra transforms (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
freebroccolo authored and rauchg committed Jul 21, 2016
1 parent 12250ce commit 9e3fe92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/package.json
Expand Up @@ -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",
Expand Down Expand Up @@ -67,7 +66,6 @@
},
"babel": {
"presets": [
"es2015-native-modules",
"react"
]
},
Expand Down
3 changes: 3 additions & 0 deletions index.js
Expand Up @@ -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();
Expand Down

0 comments on commit 9e3fe92

Please sign in to comment.