babel-preset-es2015
Advanced tools
Comparing version 6.13.0 to 6.13.1
"use strict"; | ||
module.exports = function (context, opts) { | ||
/** | ||
* This file is a bit of a mess. If you're looking at it as a reference for how to write a preset, | ||
* I'd recommend looking only at `function preset(){}` and ignoring the rest, unless your new preset | ||
* really needs to work on babel-core < 6.13.x, which is unlikely. | ||
*/ | ||
/** | ||
* This preset was originally an object, before function-based configurable presets were introduced. | ||
* For backward-compatibility with anything that may have been loading this preset and expecting | ||
* it to be a simple Babel config object, we maintain the old config here. | ||
*/ | ||
module.exports = preset({}); | ||
// For backward compatibility with babel-core < v6.13.x, we use the 'buildPreset' property | ||
// of the preset object for the preset creation function. | ||
Object.defineProperty(module.exports, "buildPreset", { | ||
configurable: true, | ||
writable: true, | ||
// We make this non-enumerable so old versions of babel-core won't see it as an unknown property, | ||
// while allowing new versions to see it as a preset builder function. | ||
enumerable: false, | ||
value: preset | ||
}); | ||
function preset(context, opts) { | ||
var moduleTypes = ["commonjs", "amd", "umd", "systemjs"]; | ||
@@ -23,9 +47,2 @@ var loose = false; | ||
}; | ||
}; | ||
/** | ||
* This preset was originally an object, before function-based configurable presets were introduced. | ||
* For backward-compatibility with anything that may have been loading this preset and expecting | ||
* it to be a simple Babel config object, we maintain the old config here. | ||
*/ | ||
module.exports.plugins = [require("babel-plugin-transform-es2015-template-literals"), require("babel-plugin-transform-es2015-literals"), require("babel-plugin-transform-es2015-function-name"), require("babel-plugin-transform-es2015-arrow-functions"), require("babel-plugin-transform-es2015-block-scoped-functions"), require("babel-plugin-transform-es2015-classes"), require("babel-plugin-transform-es2015-object-super"), require("babel-plugin-transform-es2015-shorthand-properties"), require("babel-plugin-transform-es2015-duplicate-keys"), require("babel-plugin-transform-es2015-computed-properties"), require("babel-plugin-transform-es2015-for-of"), require("babel-plugin-transform-es2015-sticky-regex"), require("babel-plugin-transform-es2015-unicode-regex"), require("babel-plugin-check-es2015-constants"), require("babel-plugin-transform-es2015-spread"), require("babel-plugin-transform-es2015-parameters"), require("babel-plugin-transform-es2015-destructuring"), require("babel-plugin-transform-es2015-block-scoping"), require("babel-plugin-transform-es2015-typeof-symbol"), require("babel-plugin-transform-es2015-modules-commonjs"), [require("babel-plugin-transform-regenerator"), { async: false, asyncGenerators: false }]]; | ||
} |
{ | ||
"name": "babel-preset-es2015", | ||
"version": "6.13.0", | ||
"version": "6.13.1", | ||
"description": "Babel preset for all es2015 plugins.", | ||
@@ -5,0 +5,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", |
@@ -46,3 +46,3 @@ # babel-preset-es2015 | ||
presets: [ | ||
["es2015", {loose: true, modules: "amd"}] | ||
["es2015", {"loose": true, "modules": "amd"}] | ||
] | ||
@@ -52,5 +52,5 @@ } | ||
presets: [ | ||
["es2015", {loose: true, modules: false}] | ||
["es2015", {"loose": true, "modules": false}] | ||
] | ||
} | ||
``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
45
6277
1