Socket
Socket
Sign inDemoInstall

babel-preset-es2015

Package Overview
Dependencies
Maintainers
6
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-es2015 - npm Package Compare versions

Comparing version 6.22.0 to 6.24.0

12

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

@@ -22,6 +22,6 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"babel-plugin-transform-es2015-literals": "^6.22.0",
"babel-plugin-transform-es2015-modules-amd": "^6.22.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.22.0",
"babel-plugin-transform-es2015-modules-amd": "^6.24.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.0",
"babel-plugin-transform-es2015-modules-systemjs": "^6.22.0",
"babel-plugin-transform-es2015-modules-umd": "^6.22.0",
"babel-plugin-transform-es2015-modules-umd": "^6.24.0",
"babel-plugin-transform-es2015-object-super": "^6.22.0",

@@ -38,5 +38,5 @@ "babel-plugin-transform-es2015-parameters": "^6.22.0",

"devDependencies": {
"babel-helper-transform-fixture-test-runner": "^6.22.0",
"babel-helper-plugin-test-runner": "^6.22.0"
"babel-helper-transform-fixture-test-runner": "^6.24.0",
"babel-helper-plugin-test-runner": "^6.24.0"
}
}

@@ -39,28 +39,20 @@ # babel-preset-es2015

* `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"]`
* `spec` - Enable "spec" transformations for any plugins in this preset that allow them (Disabled by default)
### `loose`
```js
{
presets: [
["es2015", { "loose": true }]
]
}
{
presets: [
["es2015", { "modules": false }]
]
}
{
presets: [
["es2015", { "loose": true, "modules": false }]
]
}
{
presets: [
["es2015", { "spec": true }]
]
}
```
`boolean`, defaults to `false`.
Enable "loose" transformations for any plugins in this preset that allow them.
### `modules`
`"amd" | "umd" | "systemjs" | "commonjs" | false`, defaults to `"commonjs"`.
Enable transformation of ES6 module syntax to another module type.
Setting this to `false` will not transform modules.
### `spec`
`boolean`, defaults to `false`.
Enable "spec" transformations for any plugins in this preset that allow them.
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