Skip to content

Commit

Permalink
Export ES6 from js-sdk
Browse files Browse the repository at this point in the history
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
dbkr committed Jan 7, 2019
1 parent e8022e9 commit 799f5bd
Show file tree
Hide file tree
Showing 3 changed files with 9,555 additions and 5,742 deletions.
20 changes: 10 additions & 10 deletions .babelrc
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",
},
},
]
],
}
Loading

0 comments on commit 799f5bd

Please sign in to comment.