babel-preset-node5
Advanced tools
Comparing version 10.4.1 to 10.5.0
@@ -11,7 +11,7 @@ /* global module */ | ||
require('babel-plugin-transform-es2015-unicode-regex'), | ||
require('babel-plugin-transform-regenerator'), | ||
require('babel-plugin-transform-strict-mode'), | ||
require('babel-plugin-transform-flow-strip-types'), | ||
require('babel-plugin-transform-object-rest-spread') | ||
require('babel-plugin-transform-object-rest-spread'), | ||
require('babel-plugin-transform-async-to-generator') | ||
] | ||
}; |
{ | ||
"name": "babel-preset-node5", | ||
"version": "10.4.1", | ||
"version": "10.5.0", | ||
"description": "Babel preset for Node 5.x (ES6 / ES2015)", | ||
@@ -23,2 +23,3 @@ "repository": "git://github.com/leebenson/babel-preset-node5.git", | ||
"babel-plugin-syntax-object-rest-spread": "^6.3.13", | ||
"babel-plugin-transform-async-to-generator": "^6.4.6", | ||
"babel-plugin-transform-es2015-destructuring": "^6.4.0", | ||
@@ -31,3 +32,2 @@ "babel-plugin-transform-es2015-modules-commonjs": "^6.4.5", | ||
"babel-plugin-transform-object-rest-spread": "^6.3.13", | ||
"babel-plugin-transform-regenerator": "^6.4.4", | ||
"babel-plugin-transform-strict-mode": "^6.3.13", | ||
@@ -34,0 +34,0 @@ "babel-polyfill": "^6.3.14" |
@@ -24,3 +24,3 @@ # Babel 6.x presets for Node 5.x (updated regularly!) | ||
* Unicode RegEx (via [babel-plugin-transform-es2015-unicode-regex](https://www.npmjs.com/package/babel-plugin-transform-es2015-unicode-regex)) | ||
* Async/await (via [babel-plugin-transform-regenerator](https://www.npmjs.com/package/babel-plugin-transform-regenerator) and [babel-plugin-syntax-async-functions](https://www.npmjs.com/package/babel-plugin-syntax-async-functions)) | ||
* Async/await (via [babel-plugin-transform-async-to-generator](https://www.npmjs.com/package/babel-plugin-transform-async-to-generator) and [babel-plugin-syntax-async-functions](https://www.npmjs.com/package/babel-plugin-syntax-async-functions)) | ||
@@ -114,12 +114,2 @@ **Note: This package originally shipped with the React preset, but to avoid bloat, doesn't any longer. If you want to add that, please install [babel-preset-react](https://www.npmjs.com/package/babel-preset-react) too** | ||
If you get an error like: | ||
`ReferenceError: regeneratorRuntime is not defined` | ||
... then `npm i -S babel-polyfill` into your project and add its bootstrapper to the top of your main script: | ||
`require('babel-polyfill');` | ||
This should add the missing `regeneratorRuntime`. | ||
## No longer tracking Babel 6 versions | ||
@@ -126,0 +116,0 @@ |
Sorry, the diff of this file is not supported yet
6784
120
+ Addedbabel-helper-function-name@6.24.1(transitive)
+ Addedbabel-helper-remap-async-to-generator@6.24.1(transitive)
+ Addedbabel-plugin-transform-async-to-generator@6.24.1(transitive)
- Removedbabel-plugin-transform-regenerator@6.26.0(transitive)
- Removedprivate@0.1.8(transitive)
- Removedregenerator-transform@0.10.1(transitive)