Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(starter): switch the default Babel preset to use babel-preset-env
This PR switches the default Babel preset to use babel-preset-env - this preset adjusts based on the current Electron version which Babel plugins to use. This PR also enables async/await and React by default, since these features are super common and don't have any overhead to enable when not in-use.
- Loading branch information
1 parent
d8f1b04
commit 4e3bb17
Showing
4 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"env": { | ||
"development": { | ||
"application/javascript": { | ||
"presets": [ | ||
["env", { "targets": { "electron": "1.4.0" } }], | ||
"react" | ||
], | ||
"plugins": ["transform-async-to-generator"], | ||
"sourceMaps": "inline" | ||
} | ||
}, | ||
"production": { | ||
"application/javascript": { | ||
"presets": [ | ||
["env", { "targets": { "electron": "1.4.0" } }], | ||
"react" | ||
], | ||
"plugins": ["transform-async-to-generator"], | ||
"sourceMaps": "none" | ||
} | ||
} | ||
} | ||
} |