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:
5
.babelrc
5
.babelrc
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"presets": [
|
||||
"react"
|
||||
"plugins": [
|
||||
"syntax-jsx",
|
||||
"transform-react-jsx"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user