-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a somewhat experimental PR to make the build process target ES6 rather than ES5 given ES6 is now widely supported. #803
- Loading branch information
Showing
3 changed files
with
9,555 additions
and
5,742 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"plugins": [ | ||
// this transforms async functions into generator functions, which | ||
// are then made to use the regenerator module by babel's | ||
// transform-regnerator plugin (which is enabled by es2015). | ||
"transform-async-to-bluebird", | ||
|
||
// This makes sure that the regenerator runtime is available to | ||
// the transpiled code. | ||
"transform-runtime", | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
// This targets ES6 (can't see a way to do this directly) | ||
"node": "6.5", | ||
}, | ||
}, | ||
] | ||
], | ||
} |
Oops, something went wrong.