Skip to content

Commit

Permalink
Drop babel-runtime (#140)
Browse files Browse the repository at this point in the history
This was only being used to support async functions.  Async is now
supported in the stage-3 babel preset via transform-async-to-generator.

- Drop stage-0 preset that is not needed
- Drop transform-runtime plugin
- Bring in regenerator-runtime to support async transform
  • Loading branch information
dustinfarris authored and mattkrick committed Nov 20, 2016
1 parent 83e752a commit 59c58c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"presets": ["es2015", "stage-0"],
"plugins": ["transform-runtime"]
"presets": ["es2015", "stage-1"]
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@
"devDependencies": {
"ava": "0.15.2",
"babel-cli": "6.9.0",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "6.9.0",
"babel-preset-stage-0": "6.5.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-stage-1": "^6.16.0",
"babel-register": "^6.9.0",
"babel-runtime": "^6.9.2",
"coveralls": "^2.11.9",
"nyc": "^6.4.4",
"rimraf": "2.5.2",
Expand All @@ -49,6 +47,7 @@
"dependencies": {
"graphql": "0.7.1",
"isomorphic-fetch": "^2.2.1",
"minimist": "^1.2.0"
"minimist": "^1.2.0",
"regenerator-runtime": "^0.9.6"
}
}
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'regenerator-runtime/runtime'; // Required for babel plugin transform-async-to-generator

export cashayReducer from './normalize/duck';
export cashay from './Cashay';
export HTTPTransport from './transports/HTTPTransport';
Expand Down

0 comments on commit 59c58c3

Please sign in to comment.