Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-es2016-node5

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-es2016-node5 - npm Package Compare versions

Comparing version 1.0.1 to 1.1.2

26

lib/index.js
'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:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc