babel-preset-es2016-node5
Advanced tools
Comparing version 1.0.1 to 1.1.2
'use strict'; | ||
module.exports = { | ||
plugins: [ | ||
require('babel-plugin-syntax-async-functions'), | ||
require('babel-plugin-syntax-async-generators'), | ||
require('babel-plugin-transform-async-to-generator'), | ||
require('babel-plugin-transform-es2015-destructuring'), | ||
require('babel-plugin-transform-es2015-modules-commonjs'), | ||
require('babel-plugin-transform-es2015-parameters'), | ||
require('babel-plugin-transform-es2015-sticky-regex'), | ||
require('babel-plugin-transform-es2015-unicode-regex') | ||
] | ||
}; | ||
let plugins = [ | ||
require('babel-plugin-syntax-async-functions'), | ||
require('babel-plugin-syntax-async-generators'), | ||
require('babel-plugin-transform-async-to-generator'), | ||
require('babel-plugin-transform-es2015-destructuring'), | ||
require('babel-plugin-transform-es2015-modules-commonjs'), | ||
require('babel-plugin-transform-es2015-parameters'), | ||
require('babel-plugin-transform-es2015-sticky-regex'), | ||
require('babel-plugin-transform-es2015-unicode-regex') | ||
]; | ||
if (/v4/.test(process.version)) { | ||
plugins.push(require('babel-plugin-transform-es2015-spread')); | ||
} | ||
module.exports = {plugins}; |
@@ -5,3 +5,3 @@ { | ||
"repository": "git@github.com:Pana/babel-preset-es2016-node5.git", | ||
"version": "1.0.1", | ||
"version": "1.1.2", | ||
"license": "MIT", | ||
@@ -29,2 +29,3 @@ "keywords": [ | ||
"babel-plugin-transform-es2015-parameters": "^6.0.2", | ||
"babel-plugin-transform-es2015-spread": "^6.1.4", | ||
"babel-plugin-transform-es2015-sticky-regex": "^6.0.2", | ||
@@ -31,0 +32,0 @@ "babel-plugin-transform-es2015-unicode-regex": "^6.0.2" |
# babel-preset-es2016-node5 | ||
> Babel preset to make node@5 ES2016compatible. | ||
This module only support one feature of ES2016: async, you can use preset: es2015-node5, stage3 to get the same effect. | ||
> Babel preset to make node@5 ES2016 compatible. | ||
Node@5 has great [ES2015 support](https://nodejs.org/en/docs/es6/), | ||
@@ -6,0 +8,0 @@ this module just adds missing features: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3807
15
52
9
+ Addedbabel-plugin-transform-es2015-spread@6.22.0(transitive)