Simplify babel integration further

The "react" preset is composed of a bunch of plugins.
https://babeljs.io/docs/plugins/preset-react/

Turns out, we only need 2 of them, not all 5.
This commit is contained in:
Feross Aboukhadijeh
2016-08-04 21:37:53 -07:00
parent 9b36f9cb22
commit 7531ab4623
3 changed files with 12 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
{
"presets": [
"react"
"plugins": [
"syntax-jsx",
"transform-react-jsx"
]
}

View File

@@ -45,7 +45,13 @@ var BUILT_IN_ELECTRON_MODULES = [ 'electron' ]
var BUILT_IN_DEPS = [].concat(BUILT_IN_NODE_MODULES, BUILT_IN_ELECTRON_MODULES)
var EXECUTABLE_DEPS = ['gh-release', 'standard', 'babel-cli', 'babel-preset-react']
var EXECUTABLE_DEPS = [
'gh-release',
'standard',
'babel-cli',
'babel-plugin-syntax-jsx',
'babel-plugin-transform-react-jsx'
]
main()

View File

@@ -46,7 +46,8 @@
},
"devDependencies": {
"babel-cli": "^6.11.4",
"babel-preset-react": "^6.11.1",
"babel-plugin-syntax-jsx": "^6.13.0",
"babel-plugin-transform-react-jsx": "^6.8.0",
"cross-zip": "^2.0.1",
"electron-osx-sign": "^0.3.0",
"electron-packager": "^7.0.0",