Socket
Socket
Sign inDemoInstall

babel-preset-es2015

Package Overview
Dependencies
24
Maintainers
6
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.9.0 to 6.13.0

lib/index.js

31

package.json
{
"name": "babel-preset-es2015",
"version": "6.9.0",
"version": "6.13.0",
"description": "Babel preset for all es2015 plugins.",

@@ -9,24 +9,27 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-es2015",
"main": "index.js",
"main": "lib/index.js",
"dependencies": {
"babel-plugin-transform-es2015-template-literals": "^6.6.0",
"babel-plugin-transform-es2015-literals": "^6.3.13",
"babel-plugin-transform-es2015-function-name": "^6.9.0",
"babel-plugin-check-es2015-constants": "^6.3.13",
"babel-plugin-transform-es2015-arrow-functions": "^6.3.13",
"babel-plugin-transform-es2015-block-scoped-functions": "^6.3.13",
"babel-plugin-transform-es2015-block-scoping": "^6.9.0",
"babel-plugin-transform-es2015-classes": "^6.9.0",
"babel-plugin-transform-es2015-object-super": "^6.3.13",
"babel-plugin-transform-es2015-shorthand-properties": "^6.3.13",
"babel-plugin-transform-es2015-computed-properties": "^6.3.13",
"babel-plugin-transform-es2015-destructuring": "^6.9.0",
"babel-plugin-transform-es2015-duplicate-keys": "^6.6.0",
"babel-plugin-transform-es2015-for-of": "^6.6.0",
"babel-plugin-transform-es2015-function-name": "^6.9.0",
"babel-plugin-transform-es2015-literals": "^6.3.13",
"babel-plugin-transform-es2015-modules-amd": "^6.8.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.6.0",
"babel-plugin-transform-es2015-modules-systemjs": "^6.12.0",
"babel-plugin-transform-es2015-modules-umd": "^6.12.0",
"babel-plugin-transform-es2015-object-super": "^6.3.13",
"babel-plugin-transform-es2015-parameters": "^6.9.0",
"babel-plugin-transform-es2015-shorthand-properties": "^6.3.13",
"babel-plugin-transform-es2015-spread": "^6.3.13",
"babel-plugin-transform-es2015-sticky-regex": "^6.3.13",
"babel-plugin-transform-es2015-template-literals": "^6.6.0",
"babel-plugin-transform-es2015-typeof-symbol": "^6.6.0",
"babel-plugin-transform-es2015-unicode-regex": "^6.3.13",
"babel-plugin-check-es2015-constants": "^6.3.13",
"babel-plugin-transform-es2015-spread": "^6.3.13",
"babel-plugin-transform-es2015-parameters": "^6.9.0",
"babel-plugin-transform-es2015-destructuring": "^6.9.0",
"babel-plugin-transform-es2015-block-scoping": "^6.9.0",
"babel-plugin-transform-es2015-typeof-symbol": "^6.6.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.6.0",
"babel-plugin-transform-regenerator": "^6.9.0"

@@ -33,0 +36,0 @@ },

@@ -26,3 +26,3 @@ # babel-preset-es2015

```sh
$ babel script.js --presets es2015
$ babel script.js --presets es2015
```

@@ -37,1 +37,20 @@

```
## Options
* `loose` - Enable "loose" transformations for any plugins in this preset that allow them (Disabled by default).
* `modules` - Enable transformation of ES6 module syntax to another module type (Enabled by default to "commonjs").
* Can be `false` to not transform modules, or one of `["amd", "umd", "systemjs", "commonjs"]`
```
{
presets: [
["es2015", {loose: true, modules: "amd"}]
]
}
{
presets: [
["es2015", {loose: true, modules: false}]
]
}
```
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc