@babel/preset-env
Advanced tools
Comparing version 7.21.5 to 7.23.3
@@ -7,33 +7,19 @@ "use strict"; | ||
exports.minVersions = exports.default = void 0; | ||
var _pluginSyntaxAsyncGenerators = require("@babel/plugin-syntax-async-generators"); | ||
var _pluginSyntaxClassProperties = require("@babel/plugin-syntax-class-properties"); | ||
var _pluginSyntaxClassStaticBlock = require("@babel/plugin-syntax-class-static-block"); | ||
var _pluginSyntaxDynamicImport = require("@babel/plugin-syntax-dynamic-import"); | ||
var _pluginSyntaxExportNamespaceFrom = require("@babel/plugin-syntax-export-namespace-from"); | ||
var _pluginSyntaxImportAssertions = require("@babel/plugin-syntax-import-assertions"); | ||
var _pluginSyntaxImportMeta = require("@babel/plugin-syntax-import-meta"); | ||
var _pluginSyntaxJsonStrings = require("@babel/plugin-syntax-json-strings"); | ||
var _pluginSyntaxLogicalAssignmentOperators = require("@babel/plugin-syntax-logical-assignment-operators"); | ||
var _pluginSyntaxNullishCoalescingOperator = require("@babel/plugin-syntax-nullish-coalescing-operator"); | ||
var _pluginSyntaxNumericSeparator = require("@babel/plugin-syntax-numeric-separator"); | ||
var _pluginSyntaxObjectRestSpread = require("@babel/plugin-syntax-object-rest-spread"); | ||
var _pluginSyntaxOptionalCatchBinding = require("@babel/plugin-syntax-optional-catch-binding"); | ||
var _pluginSyntaxOptionalChaining = require("@babel/plugin-syntax-optional-chaining"); | ||
var _pluginSyntaxPrivatePropertyInObject = require("@babel/plugin-syntax-private-property-in-object"); | ||
var _pluginSyntaxTopLevelAwait = require("@babel/plugin-syntax-top-level-await"); | ||
var _pluginProposalAsyncGeneratorFunctions = require("@babel/plugin-proposal-async-generator-functions"); | ||
var _pluginProposalClassProperties = require("@babel/plugin-proposal-class-properties"); | ||
var _pluginProposalClassStaticBlock = require("@babel/plugin-proposal-class-static-block"); | ||
var _pluginProposalDynamicImport = require("@babel/plugin-proposal-dynamic-import"); | ||
var _pluginProposalExportNamespaceFrom = require("@babel/plugin-proposal-export-namespace-from"); | ||
var _pluginProposalJsonStrings = require("@babel/plugin-proposal-json-strings"); | ||
var _pluginProposalLogicalAssignmentOperators = require("@babel/plugin-proposal-logical-assignment-operators"); | ||
var _pluginProposalNullishCoalescingOperator = require("@babel/plugin-proposal-nullish-coalescing-operator"); | ||
var _pluginProposalNumericSeparator = require("@babel/plugin-proposal-numeric-separator"); | ||
var _pluginProposalObjectRestSpread = require("@babel/plugin-proposal-object-rest-spread"); | ||
var _pluginProposalOptionalCatchBinding = require("@babel/plugin-proposal-optional-catch-binding"); | ||
var _pluginProposalOptionalChaining = require("@babel/plugin-proposal-optional-chaining"); | ||
var _pluginProposalPrivateMethods = require("@babel/plugin-proposal-private-methods"); | ||
var _pluginProposalPrivatePropertyInObject = require("@babel/plugin-proposal-private-property-in-object"); | ||
var _pluginProposalUnicodePropertyRegex = require("@babel/plugin-proposal-unicode-property-regex"); | ||
var _pluginSyntaxImportAttributes = require("@babel/plugin-syntax-import-attributes"); | ||
var _pluginTransformAsyncGeneratorFunctions = require("@babel/plugin-transform-async-generator-functions"); | ||
var _pluginTransformClassProperties = require("@babel/plugin-transform-class-properties"); | ||
var _pluginTransformClassStaticBlock = require("@babel/plugin-transform-class-static-block"); | ||
var _pluginTransformDynamicImport = require("@babel/plugin-transform-dynamic-import"); | ||
var _pluginTransformExportNamespaceFrom = require("@babel/plugin-transform-export-namespace-from"); | ||
var _pluginTransformJsonStrings = require("@babel/plugin-transform-json-strings"); | ||
var _pluginTransformLogicalAssignmentOperators = require("@babel/plugin-transform-logical-assignment-operators"); | ||
var _pluginTransformNullishCoalescingOperator = require("@babel/plugin-transform-nullish-coalescing-operator"); | ||
var _pluginTransformNumericSeparator = require("@babel/plugin-transform-numeric-separator"); | ||
var _pluginTransformObjectRestSpread = require("@babel/plugin-transform-object-rest-spread"); | ||
var _pluginTransformOptionalCatchBinding = require("@babel/plugin-transform-optional-catch-binding"); | ||
var _pluginTransformOptionalChaining = require("@babel/plugin-transform-optional-chaining"); | ||
var _pluginTransformPrivateMethods = require("@babel/plugin-transform-private-methods"); | ||
var _pluginTransformPrivatePropertyInObject = require("@babel/plugin-transform-private-property-in-object"); | ||
var _pluginTransformUnicodePropertyRegex = require("@babel/plugin-transform-unicode-property-regex"); | ||
var _pluginTransformAsyncToGenerator = require("@babel/plugin-transform-async-to-generator"); | ||
@@ -71,42 +57,31 @@ var _pluginTransformArrowFunctions = require("@babel/plugin-transform-arrow-functions"); | ||
var _pluginTransformUnicodeRegex = require("@babel/plugin-transform-unicode-regex"); | ||
var _transformAsyncArrowsInClass = require("@babel/preset-modules/lib/plugins/transform-async-arrows-in-class"); | ||
var _transformEdgeDefaultParameters = require("@babel/preset-modules/lib/plugins/transform-edge-default-parameters"); | ||
var _transformEdgeFunctionName = require("@babel/preset-modules/lib/plugins/transform-edge-function-name"); | ||
var _transformTaggedTemplateCaching = require("@babel/preset-modules/lib/plugins/transform-tagged-template-caching"); | ||
var _transformSafariBlockShadowing = require("@babel/preset-modules/lib/plugins/transform-safari-block-shadowing"); | ||
var _transformSafariForShadowing = require("@babel/preset-modules/lib/plugins/transform-safari-for-shadowing"); | ||
var _pluginTransformUnicodeSetsRegex = require("@babel/plugin-transform-unicode-sets-regex"); | ||
var _index = require("@babel/preset-modules/lib/plugins/transform-async-arrows-in-class/index.js"); | ||
var _index2 = require("@babel/preset-modules/lib/plugins/transform-edge-default-parameters/index.js"); | ||
var _index3 = require("@babel/preset-modules/lib/plugins/transform-edge-function-name/index.js"); | ||
var _index4 = require("@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js"); | ||
var _index5 = require("@babel/preset-modules/lib/plugins/transform-safari-block-shadowing/index.js"); | ||
var _index6 = require("@babel/preset-modules/lib/plugins/transform-safari-for-shadowing/index.js"); | ||
var _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression = require("@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression"); | ||
var _pluginBugfixV8SpreadParametersInOptionalChaining = require("@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining"); | ||
var _default = { | ||
"bugfix/transform-async-arrows-in-class": () => _transformAsyncArrowsInClass, | ||
"bugfix/transform-edge-default-parameters": () => _transformEdgeDefaultParameters, | ||
"bugfix/transform-edge-function-name": () => _transformEdgeFunctionName, | ||
"bugfix/transform-safari-block-shadowing": () => _transformSafariBlockShadowing, | ||
"bugfix/transform-safari-for-shadowing": () => _transformSafariForShadowing, | ||
var _pluginBugfixV8StaticClassFieldsRedefineReadonly = require("@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly"); | ||
const availablePlugins = exports.default = { | ||
"bugfix/transform-async-arrows-in-class": () => _index, | ||
"bugfix/transform-edge-default-parameters": () => _index2, | ||
"bugfix/transform-edge-function-name": () => _index3, | ||
"bugfix/transform-safari-block-shadowing": () => _index5, | ||
"bugfix/transform-safari-for-shadowing": () => _index6, | ||
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": () => _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression.default, | ||
"bugfix/transform-tagged-template-caching": () => _transformTaggedTemplateCaching, | ||
"bugfix/transform-tagged-template-caching": () => _index4, | ||
"bugfix/transform-v8-spread-parameters-in-optional-chaining": () => _pluginBugfixV8SpreadParametersInOptionalChaining.default, | ||
"syntax-async-generators": () => _pluginSyntaxAsyncGenerators, | ||
"syntax-class-properties": () => _pluginSyntaxClassProperties, | ||
"syntax-class-static-block": () => _pluginSyntaxClassStaticBlock, | ||
"syntax-dynamic-import": () => _pluginSyntaxDynamicImport, | ||
"syntax-export-namespace-from": () => _pluginSyntaxExportNamespaceFrom, | ||
"bugfix/transform-v8-static-class-fields-redefine-readonly": () => _pluginBugfixV8StaticClassFieldsRedefineReadonly.default, | ||
"syntax-import-assertions": () => _pluginSyntaxImportAssertions.default, | ||
"syntax-import-meta": () => _pluginSyntaxImportMeta, | ||
"syntax-json-strings": () => _pluginSyntaxJsonStrings, | ||
"syntax-logical-assignment-operators": () => _pluginSyntaxLogicalAssignmentOperators, | ||
"syntax-nullish-coalescing-operator": () => _pluginSyntaxNullishCoalescingOperator, | ||
"syntax-numeric-separator": () => _pluginSyntaxNumericSeparator, | ||
"syntax-object-rest-spread": () => _pluginSyntaxObjectRestSpread, | ||
"syntax-optional-catch-binding": () => _pluginSyntaxOptionalCatchBinding, | ||
"syntax-optional-chaining": () => _pluginSyntaxOptionalChaining, | ||
"syntax-private-property-in-object": () => _pluginSyntaxPrivatePropertyInObject, | ||
"syntax-top-level-await": () => _pluginSyntaxTopLevelAwait, | ||
"syntax-import-attributes": () => _pluginSyntaxImportAttributes.default, | ||
"transform-arrow-functions": () => _pluginTransformArrowFunctions.default, | ||
"transform-async-generator-functions": () => _pluginProposalAsyncGeneratorFunctions.default, | ||
"transform-async-generator-functions": () => _pluginTransformAsyncGeneratorFunctions.default, | ||
"transform-async-to-generator": () => _pluginTransformAsyncToGenerator.default, | ||
"transform-block-scoped-functions": () => _pluginTransformBlockScopedFunctions.default, | ||
"transform-block-scoping": () => _pluginTransformBlockScoping.default, | ||
"transform-class-properties": () => _pluginProposalClassProperties.default, | ||
"transform-class-static-block": () => _pluginProposalClassStaticBlock.default, | ||
"transform-class-properties": () => _pluginTransformClassProperties.default, | ||
"transform-class-static-block": () => _pluginTransformClassStaticBlock.default, | ||
"transform-classes": () => _pluginTransformClasses.default, | ||
@@ -117,10 +92,10 @@ "transform-computed-properties": () => _pluginTransformComputedProperties.default, | ||
"transform-duplicate-keys": () => _pluginTransformDuplicateKeys.default, | ||
"transform-dynamic-import": () => _pluginProposalDynamicImport.default, | ||
"transform-dynamic-import": () => _pluginTransformDynamicImport.default, | ||
"transform-exponentiation-operator": () => _pluginTransformExponentiationOperator.default, | ||
"transform-export-namespace-from": () => _pluginProposalExportNamespaceFrom.default, | ||
"transform-export-namespace-from": () => _pluginTransformExportNamespaceFrom.default, | ||
"transform-for-of": () => _pluginTransformForOf.default, | ||
"transform-function-name": () => _pluginTransformFunctionName.default, | ||
"transform-json-strings": () => _pluginProposalJsonStrings.default, | ||
"transform-json-strings": () => _pluginTransformJsonStrings.default, | ||
"transform-literals": () => _pluginTransformLiterals.default, | ||
"transform-logical-assignment-operators": () => _pluginProposalLogicalAssignmentOperators.default, | ||
"transform-logical-assignment-operators": () => _pluginTransformLogicalAssignmentOperators.default, | ||
"transform-member-expression-literals": () => _pluginTransformMemberExpressionLiterals.default, | ||
@@ -133,11 +108,11 @@ "transform-modules-amd": () => _pluginTransformModulesAmd.default, | ||
"transform-new-target": () => _pluginTransformNewTarget.default, | ||
"transform-nullish-coalescing-operator": () => _pluginProposalNullishCoalescingOperator.default, | ||
"transform-numeric-separator": () => _pluginProposalNumericSeparator.default, | ||
"transform-object-rest-spread": () => _pluginProposalObjectRestSpread.default, | ||
"transform-nullish-coalescing-operator": () => _pluginTransformNullishCoalescingOperator.default, | ||
"transform-numeric-separator": () => _pluginTransformNumericSeparator.default, | ||
"transform-object-rest-spread": () => _pluginTransformObjectRestSpread.default, | ||
"transform-object-super": () => _pluginTransformObjectSuper.default, | ||
"transform-optional-catch-binding": () => _pluginProposalOptionalCatchBinding.default, | ||
"transform-optional-chaining": () => _pluginProposalOptionalChaining.default, | ||
"transform-optional-catch-binding": () => _pluginTransformOptionalCatchBinding.default, | ||
"transform-optional-chaining": () => _pluginTransformOptionalChaining.default, | ||
"transform-parameters": () => _pluginTransformParameters.default, | ||
"transform-private-methods": () => _pluginProposalPrivateMethods.default, | ||
"transform-private-property-in-object": () => _pluginProposalPrivatePropertyInObject.default, | ||
"transform-private-methods": () => _pluginTransformPrivateMethods.default, | ||
"transform-private-property-in-object": () => _pluginTransformPrivatePropertyInObject.default, | ||
"transform-property-literals": () => _pluginTransformPropertyLiterals.default, | ||
@@ -152,13 +127,38 @@ "transform-regenerator": () => _pluginTransformRegenerator.default, | ||
"transform-unicode-escapes": () => _pluginTransformUnicodeEscapes.default, | ||
"transform-unicode-property-regex": () => _pluginProposalUnicodePropertyRegex.default, | ||
"transform-unicode-regex": () => _pluginTransformUnicodeRegex.default | ||
"transform-unicode-property-regex": () => _pluginTransformUnicodePropertyRegex.default, | ||
"transform-unicode-regex": () => _pluginTransformUnicodeRegex.default, | ||
"transform-unicode-sets-regex": () => _pluginTransformUnicodeSetsRegex.default | ||
}; | ||
exports.default = _default; | ||
const minVersions = { | ||
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": "7.16.0", | ||
"transform-class-static-block": "7.12.0", | ||
"transform-private-property-in-object": "7.10.0" | ||
}; | ||
exports.minVersions = minVersions; | ||
const minVersions = exports.minVersions = {}; | ||
{ | ||
Object.assign(minVersions, { | ||
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": "7.16.0", | ||
"bugfix/transform-v8-static-class-fields-redefine-readonly": "7.12.0", | ||
"syntax-import-attributes": "7.22.0", | ||
"transform-class-static-block": "7.12.0", | ||
"transform-private-property-in-object": "7.10.0" | ||
}); | ||
const e = () => () => () => ({}); | ||
Object.assign(availablePlugins, { | ||
"syntax-async-generators": () => require("@babel/plugin-syntax-async-generators"), | ||
"syntax-class-properties": () => require("@babel/plugin-syntax-class-properties"), | ||
"syntax-class-static-block": () => require("@babel/plugin-syntax-class-static-block"), | ||
"syntax-dynamic-import": () => require("@babel/plugin-syntax-dynamic-import"), | ||
"syntax-export-namespace-from": () => require("@babel/plugin-syntax-export-namespace-from"), | ||
"syntax-import-meta": () => require("@babel/plugin-syntax-import-meta"), | ||
"syntax-json-strings": () => require("@babel/plugin-syntax-json-strings"), | ||
"syntax-logical-assignment-operators": () => require("@babel/plugin-syntax-logical-assignment-operators"), | ||
"syntax-nullish-coalescing-operator": () => require("@babel/plugin-syntax-nullish-coalescing-operator"), | ||
"syntax-numeric-separator": () => require("@babel/plugin-syntax-numeric-separator"), | ||
"syntax-object-rest-spread": () => require("@babel/plugin-syntax-object-rest-spread"), | ||
"syntax-optional-catch-binding": () => require("@babel/plugin-syntax-optional-catch-binding"), | ||
"syntax-optional-chaining": () => require("@babel/plugin-syntax-optional-chaining"), | ||
"syntax-private-property-in-object": () => require("@babel/plugin-syntax-private-property-in-object"), | ||
"syntax-top-level-await": () => require("@babel/plugin-syntax-top-level-await") | ||
}); | ||
{ | ||
availablePlugins["unicode-sets-regex"] = () => require("@babel/plugin-syntax-unicode-sets-regex"); | ||
} | ||
} | ||
//# sourceMappingURL=available-plugins.js.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _semver = require("semver"); | ||
var _availablePlugins = require("./available-plugins"); | ||
var _availablePlugins = require("./available-plugins.js"); | ||
const has = Function.call.bind(Object.hasOwnProperty); | ||
@@ -21,3 +21,3 @@ function addProposalSyntaxPlugins(items, proposalSyntaxPlugins) { | ||
var _overlapping$item; | ||
(_overlapping$item = overlapping[item]) == null ? void 0 : _overlapping$item.forEach(name => items.delete(name)); | ||
(_overlapping$item = overlapping[item]) == null || _overlapping$item.forEach(name => items.delete(name)); | ||
}); | ||
@@ -24,0 +24,0 @@ } |
266
lib/index.js
@@ -6,24 +6,19 @@ "use strict"; | ||
}); | ||
exports.getPolyfillPlugins = exports.getModulesPluginNames = exports.default = void 0; | ||
exports.default = void 0; | ||
exports.isPluginRequired = isPluginRequired; | ||
exports.transformIncludesAndExcludes = void 0; | ||
var _semver = require("semver"); | ||
var _debug = require("./debug"); | ||
var _getOptionSpecificExcludes = require("./get-option-specific-excludes"); | ||
var _filterItems = require("./filter-items"); | ||
var _moduleTransformations = require("./module-transformations"); | ||
var _normalizeOptions = require("./normalize-options"); | ||
var _shippedProposals = require("./shipped-proposals"); | ||
var _pluginsCompatData = require("./plugins-compat-data"); | ||
var _regenerator = require("./polyfills/regenerator"); | ||
var _babelPolyfill = require("./polyfills/babel-polyfill"); | ||
var _babelPluginPolyfillCorejs = require("babel-plugin-polyfill-corejs2"); | ||
var _babelPluginPolyfillCorejs2 = require("babel-plugin-polyfill-corejs3"); | ||
var _babelPluginPolyfillRegenerator = require("babel-plugin-polyfill-regenerator"); | ||
var _debug = require("./debug.js"); | ||
var _getOptionSpecificExcludes = require("./get-option-specific-excludes.js"); | ||
var _filterItems = require("./filter-items.js"); | ||
var _moduleTransformations = require("./module-transformations.js"); | ||
var _normalizeOptions = require("./normalize-options.js"); | ||
var _shippedProposals = require("./shipped-proposals.js"); | ||
var _pluginsCompatData = require("./plugins-compat-data.js"); | ||
var _babelPluginPolyfillCorejs = require("babel-plugin-polyfill-corejs3"); | ||
var _babel7Plugins = require("./polyfills/babel-7-plugins.cjs"); | ||
var _helperCompilationTargets = require("@babel/helper-compilation-targets"); | ||
var _availablePlugins = require("./available-plugins"); | ||
var _availablePlugins = require("./available-plugins.js"); | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
const pluginCoreJS2 = _babelPluginPolyfillCorejs.default || _babelPluginPolyfillCorejs; | ||
const pluginCoreJS3 = _babelPluginPolyfillCorejs2.default || _babelPluginPolyfillCorejs2; | ||
const pluginRegenerator = _babelPluginPolyfillRegenerator.default || _babelPluginPolyfillRegenerator; | ||
const pluginCoreJS3 = _babelPluginPolyfillCorejs.default || _babelPluginPolyfillCorejs; | ||
function isPluginRequired(targets, support) { | ||
@@ -80,39 +75,24 @@ return (0, _helperCompilationTargets.isRequired)("fake-name", targets, { | ||
exports.transformIncludesAndExcludes = transformIncludesAndExcludes; | ||
const getModulesPluginNames = ({ | ||
modules, | ||
transformations, | ||
shouldTransformESM, | ||
shouldTransformDynamicImport, | ||
shouldTransformExportNamespaceFrom, | ||
shouldParseTopLevelAwait | ||
}) => { | ||
function getSpecialModulesPluginNames(modules, shouldTransformDynamicImport) { | ||
const modulesPluginNames = []; | ||
if (modules !== false && transformations[modules]) { | ||
if (shouldTransformESM) { | ||
modulesPluginNames.push(transformations[modules]); | ||
} | ||
if (shouldTransformDynamicImport && shouldTransformESM && modules !== "umd") { | ||
if (modules) { | ||
modulesPluginNames.push(_moduleTransformations.default[modules]); | ||
} | ||
if (shouldTransformDynamicImport) { | ||
if (modules && modules !== "umd") { | ||
modulesPluginNames.push("transform-dynamic-import"); | ||
} else { | ||
if (shouldTransformDynamicImport) { | ||
console.warn("Dynamic import can only be supported when transforming ES modules" + " to AMD, CommonJS or SystemJS. Only the parser plugin will be enabled."); | ||
} | ||
console.warn("Dynamic import can only be transformed when transforming ES" + " modules to AMD, CommonJS or SystemJS."); | ||
} | ||
} | ||
{ | ||
if (!shouldTransformDynamicImport) { | ||
modulesPluginNames.push("syntax-dynamic-import"); | ||
} | ||
} else { | ||
modulesPluginNames.push("syntax-dynamic-import"); | ||
} | ||
if (shouldTransformExportNamespaceFrom) { | ||
modulesPluginNames.push("transform-export-namespace-from"); | ||
} else { | ||
modulesPluginNames.push("syntax-export-namespace-from"); | ||
} | ||
if (shouldParseTopLevelAwait) { | ||
modulesPluginNames.push("syntax-top-level-await"); | ||
modulesPluginNames.push("syntax-import-meta"); | ||
} | ||
modulesPluginNames.push("syntax-import-meta"); | ||
return modulesPluginNames; | ||
}; | ||
exports.getModulesPluginNames = getModulesPluginNames; | ||
const getPolyfillPlugins = ({ | ||
} | ||
const getCoreJSOptions = ({ | ||
useBuiltIns, | ||
@@ -125,46 +105,72 @@ corejs, | ||
shippedProposals, | ||
regenerator, | ||
debug | ||
}) => { | ||
const polyfillPlugins = []; | ||
if (useBuiltIns === "usage" || useBuiltIns === "entry") { | ||
const pluginOptions = { | ||
method: `${useBuiltIns}-global`, | ||
version: corejs ? corejs.toString() : undefined, | ||
targets: polyfillTargets, | ||
include, | ||
exclude, | ||
proposals, | ||
shippedProposals, | ||
debug | ||
}; | ||
if (corejs) { | ||
if (useBuiltIns === "usage") { | ||
if (corejs.major === 2) { | ||
polyfillPlugins.push([pluginCoreJS2, pluginOptions], [_babelPolyfill.default, { | ||
usage: true | ||
}]); | ||
} else { | ||
polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babelPolyfill.default, { | ||
usage: true, | ||
deprecated: true | ||
}]); | ||
} | ||
if (regenerator) { | ||
polyfillPlugins.push([pluginRegenerator, { | ||
method: "usage-global", | ||
debug | ||
}]); | ||
} | ||
} else { | ||
if (corejs.major === 2) { | ||
polyfillPlugins.push([_babelPolyfill.default, { | ||
regenerator | ||
}], [pluginCoreJS2, pluginOptions]); | ||
} else { | ||
polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babelPolyfill.default, { | ||
deprecated: true | ||
}]); | ||
if (!regenerator) { | ||
polyfillPlugins.push([_regenerator.default, pluginOptions]); | ||
}) => ({ | ||
method: `${useBuiltIns}-global`, | ||
version: corejs ? corejs.toString() : undefined, | ||
targets: polyfillTargets, | ||
include, | ||
exclude, | ||
proposals, | ||
shippedProposals, | ||
debug, | ||
"#__secret_key__@babel/preset-env__compatibility": { | ||
noRuntimeName: true | ||
} | ||
}); | ||
{ | ||
var getPolyfillPlugins = ({ | ||
useBuiltIns, | ||
corejs, | ||
polyfillTargets, | ||
include, | ||
exclude, | ||
proposals, | ||
shippedProposals, | ||
regenerator, | ||
debug | ||
}) => { | ||
const polyfillPlugins = []; | ||
if (useBuiltIns === "usage" || useBuiltIns === "entry") { | ||
const pluginOptions = getCoreJSOptions({ | ||
useBuiltIns, | ||
corejs, | ||
polyfillTargets, | ||
include, | ||
exclude, | ||
proposals, | ||
shippedProposals, | ||
debug | ||
}); | ||
if (corejs) { | ||
{ | ||
if (useBuiltIns === "usage") { | ||
if (corejs.major === 2) { | ||
polyfillPlugins.push([_babel7Plugins.pluginCoreJS2, pluginOptions], [_babel7Plugins.legacyBabelPolyfillPlugin, { | ||
usage: true | ||
}]); | ||
} else { | ||
polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babel7Plugins.legacyBabelPolyfillPlugin, { | ||
usage: true, | ||
deprecated: true | ||
}]); | ||
} | ||
if (regenerator) { | ||
polyfillPlugins.push([_babel7Plugins.pluginRegenerator, { | ||
method: "usage-global", | ||
debug | ||
}]); | ||
} | ||
} else { | ||
if (corejs.major === 2) { | ||
polyfillPlugins.push([_babel7Plugins.legacyBabelPolyfillPlugin, { | ||
regenerator | ||
}], [_babel7Plugins.pluginCoreJS2, pluginOptions]); | ||
} else { | ||
polyfillPlugins.push([pluginCoreJS3, pluginOptions], [_babel7Plugins.legacyBabelPolyfillPlugin, { | ||
deprecated: true | ||
}]); | ||
if (!regenerator) { | ||
polyfillPlugins.push([_babel7Plugins.removeRegeneratorEntryPlugin, pluginOptions]); | ||
} | ||
} | ||
} | ||
@@ -174,6 +180,8 @@ } | ||
} | ||
return polyfillPlugins; | ||
}; | ||
{ | ||
exports.getPolyfillPlugins = getPolyfillPlugins; | ||
} | ||
return polyfillPlugins; | ||
}; | ||
exports.getPolyfillPlugins = getPolyfillPlugins; | ||
} | ||
function getLocalTargets(optionsTargets, ignoreBrowserslistConfig, configPath, browserslistEnv) { | ||
@@ -201,6 +209,3 @@ if (optionsTargets != null && optionsTargets.esmodules && optionsTargets.browsers) { | ||
} | ||
function supportsTopLevelAwait(caller) { | ||
return !!(caller != null && caller.supportsTopLevelAwait); | ||
} | ||
var _default = (0, _helperPluginUtils.declarePreset)((api, opts) => { | ||
var _default = exports.default = (0, _helperPluginUtils.declarePreset)((api, opts) => { | ||
api.assertVersion(7); | ||
@@ -217,3 +222,3 @@ const babelTargets = api.targets(); | ||
loose, | ||
modules, | ||
modules: optionsModules, | ||
shippedProposals, | ||
@@ -248,23 +253,15 @@ spec, | ||
const compatData = getPluginList(shippedProposals, bugfixes); | ||
const shouldSkipExportNamespaceFrom = modules === "auto" && (api.caller == null ? void 0 : api.caller(supportsExportNamespaceFrom)) || modules === false && !(0, _helperCompilationTargets.isRequired)("transform-export-namespace-from", transformTargets, { | ||
compatData, | ||
includes: include.plugins, | ||
excludes: exclude.plugins | ||
}); | ||
const modulesPluginNames = getModulesPluginNames({ | ||
modules, | ||
transformations: _moduleTransformations.default, | ||
shouldTransformESM: modules !== "auto" || !(api.caller != null && api.caller(supportsStaticESM)), | ||
shouldTransformDynamicImport: modules !== "auto" || !(api.caller != null && api.caller(supportsDynamicImport)), | ||
shouldTransformExportNamespaceFrom: !shouldSkipExportNamespaceFrom, | ||
shouldParseTopLevelAwait: !api.caller || api.caller(supportsTopLevelAwait) | ||
}); | ||
const pluginNames = (0, _helperCompilationTargets.filterItems)(compatData, include.plugins, exclude.plugins, transformTargets, modulesPluginNames, (0, _getOptionSpecificExcludes.default)({ | ||
const modules = optionsModules === "auto" ? api.caller(supportsStaticESM) ? false : "commonjs" : optionsModules; | ||
const shouldTransformDynamicImport = optionsModules === "auto" ? !api.caller(supportsDynamicImport) : !!modules; | ||
if (optionsModules === "auto" && !api.caller(supportsExportNamespaceFrom) && !exclude.plugins.has("transform-export-namespace-from")) { | ||
include.plugins.add("transform-export-namespace-from"); | ||
} | ||
const pluginNames = (0, _helperCompilationTargets.filterItems)(compatData, include.plugins, exclude.plugins, transformTargets, getSpecialModulesPluginNames(modules, shouldTransformDynamicImport), (0, _getOptionSpecificExcludes.default)({ | ||
loose | ||
}), _shippedProposals.pluginSyntaxMap); | ||
(0, _filterItems.removeUnnecessaryItems)(pluginNames, _pluginsCompatData.overlappingPlugins); | ||
(0, _filterItems.removeUnsupportedItems)(pluginNames, api.version); | ||
if (shippedProposals) { | ||
(0, _filterItems.addProposalSyntaxPlugins)(pluginNames, _shippedProposals.proposalSyntaxPlugins); | ||
} | ||
(0, _filterItems.removeUnsupportedItems)(pluginNames, api.version); | ||
(0, _filterItems.removeUnnecessaryItems)(pluginNames, _pluginsCompatData.overlappingPlugins); | ||
const polyfillPlugins = getPolyfillPlugins({ | ||
@@ -288,2 +285,7 @@ useBuiltIns, | ||
} | ||
if (pluginName === "syntax-import-attributes") { | ||
return [getPlugin(pluginName), { | ||
deprecatedAssertSyntax: true | ||
}]; | ||
} | ||
return [getPlugin(pluginName), { | ||
@@ -299,3 +301,3 @@ spec, | ||
console.log(JSON.stringify((0, _helperCompilationTargets.prettifyTargets)(targets), null, 2)); | ||
console.log(`\nUsing modules transform: ${modules.toString()}`); | ||
console.log(`\nUsing modules transform: ${optionsModules.toString()}`); | ||
console.log("\nUsing plugins:"); | ||
@@ -313,4 +315,38 @@ pluginNames.forEach(pluginName => { | ||
}); | ||
exports.default = _default; | ||
{ | ||
exports.getModulesPluginNames = ({ | ||
modules, | ||
transformations, | ||
shouldTransformESM, | ||
shouldTransformDynamicImport, | ||
shouldTransformExportNamespaceFrom | ||
}) => { | ||
const modulesPluginNames = []; | ||
if (modules !== false && transformations[modules]) { | ||
if (shouldTransformESM) { | ||
modulesPluginNames.push(transformations[modules]); | ||
} | ||
if (shouldTransformDynamicImport) { | ||
if (shouldTransformESM && modules !== "umd") { | ||
modulesPluginNames.push("transform-dynamic-import"); | ||
} else { | ||
console.warn("Dynamic import can only be transformed when transforming ES" + " modules to AMD, CommonJS or SystemJS."); | ||
} | ||
} | ||
} | ||
if (shouldTransformExportNamespaceFrom) { | ||
modulesPluginNames.push("transform-export-namespace-from"); | ||
} | ||
if (!shouldTransformDynamicImport) { | ||
modulesPluginNames.push("syntax-dynamic-import"); | ||
} | ||
if (!shouldTransformExportNamespaceFrom) { | ||
modulesPluginNames.push("syntax-export-namespace-from"); | ||
} | ||
modulesPluginNames.push("syntax-top-level-await"); | ||
modulesPluginNames.push("syntax-import-meta"); | ||
return modulesPluginNames; | ||
}; | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -7,4 +7,3 @@ "use strict"; | ||
exports.default = void 0; | ||
var _default = { | ||
auto: "transform-modules-commonjs", | ||
var _default = exports.default = { | ||
amd: "transform-modules-amd", | ||
@@ -16,4 +15,3 @@ commonjs: "transform-modules-commonjs", | ||
}; | ||
exports.default = _default; | ||
//# sourceMappingURL=module-transformations.js.map |
@@ -12,6 +12,6 @@ "use strict"; | ||
var _corejs2BuiltIns = require("@babel/compat-data/corejs2-built-ins"); | ||
var _coreJsCompat = require("../data/core-js-compat"); | ||
var _pluginsCompatData = require("./plugins-compat-data"); | ||
var _moduleTransformations = require("./module-transformations"); | ||
var _options = require("./options"); | ||
var _coreJsCompat = require("../data/core-js-compat.js"); | ||
var _pluginsCompatData = require("./plugins-compat-data.js"); | ||
var _moduleTransformations = require("./module-transformations.js"); | ||
var _options = require("./options.js"); | ||
var _helperValidatorOption = require("@babel/helper-validator-option"); | ||
@@ -22,3 +22,17 @@ const corejs2DefaultWebIncludes = ["web.timers", "web.immediate", "web.dom.iterable"]; | ||
const modulePlugins = ["transform-dynamic-import", ...Object.keys(_moduleTransformations.default).map(m => _moduleTransformations.default[m])]; | ||
const getValidIncludesAndExcludes = (type, corejs) => Array.from(new Set([...allPluginsList, ...(type === "exclude" ? modulePlugins : []), ...(corejs ? corejs == 2 ? [...Object.keys(_corejs2BuiltIns), ...corejs2DefaultWebIncludes] : Object.keys(_coreJsCompat) : [])])); | ||
const getValidIncludesAndExcludes = (type, corejs) => { | ||
const set = new Set(allPluginsList); | ||
if (type === "exclude") modulePlugins.map(set.add, set); | ||
if (corejs) { | ||
{ | ||
if (corejs === 2) { | ||
Object.keys(_corejs2BuiltIns).map(set.add, set); | ||
corejs2DefaultWebIncludes.map(set.add, set); | ||
} else { | ||
Object.keys(_coreJsCompat).map(set.add, set); | ||
} | ||
} | ||
} | ||
return Array.from(set); | ||
}; | ||
function flatMap(array, fn) { | ||
@@ -86,4 +100,6 @@ return Array.prototype.concat.apply([], array.map(fn)); | ||
if (useBuiltIns && corejs === undefined) { | ||
rawVersion = 2; | ||
console.warn("\nWARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a " + "core-js version. Currently, we assume version 2.x when no version " + "is passed. Since this default version will likely change in future " + "versions of Babel, we recommend explicitly setting the core-js version " + "you are using via the `corejs` option.\n" + "\nYou should also be sure that the version you pass to the `corejs` " + "option matches the version specified in your `package.json`'s " + "`dependencies` section. If it doesn't, you need to run one of the " + "following commands:\n\n" + " npm install --save core-js@2 npm install --save core-js@3\n" + " yarn add core-js@2 yarn add core-js@3\n\n" + "More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins\n" + "More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs"); | ||
{ | ||
rawVersion = 2; | ||
console.warn("\nWARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a " + `core-js version. Currently, we assume version 2.x when no version ` + "is passed. Since this default version will likely change in future " + "versions of Babel, we recommend explicitly setting the core-js version " + "you are using via the `corejs` option.\n" + "\nYou should also be sure that the version you pass to the `corejs` " + "option matches the version specified in your `package.json`'s " + "`dependencies` section. If it doesn't, you need to run one of the " + "following commands:\n\n" + " npm install --save core-js@2 npm install --save core-js@3\n" + " yarn add core-js@2 yarn add core-js@3\n\n" + "More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins\n" + "More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs"); | ||
} | ||
} else if (typeof corejs === "object" && corejs !== null) { | ||
@@ -96,8 +112,13 @@ rawVersion = corejs.version; | ||
const version = rawVersion ? _semver.coerce(String(rawVersion)) : false; | ||
if (!useBuiltIns && version) { | ||
console.warn("\nWARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n"); | ||
if (version) { | ||
if (useBuiltIns) { | ||
{ | ||
if (version.major < 2 || version.major > 3) { | ||
throw new RangeError("Invalid Option: The version passed to `corejs` is invalid. Currently, " + "only core-js@2 and core-js@3 are supported."); | ||
} | ||
} | ||
} else { | ||
console.warn("\nWARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n"); | ||
} | ||
} | ||
if (useBuiltIns && (!version || version.major < 2 || version.major > 3)) { | ||
throw new RangeError("Invalid Option: The version passed to `corejs` is invalid. Currently, " + "only core-js@2 and core-js@3 are supported."); | ||
} | ||
return { | ||
@@ -104,0 +125,0 @@ version, |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.UseBuiltInsOption = exports.TopLevelOptions = exports.ModulesOption = void 0; | ||
const TopLevelOptions = { | ||
const TopLevelOptions = exports.TopLevelOptions = { | ||
bugfixes: "bugfixes", | ||
@@ -25,4 +25,3 @@ configPath: "configPath", | ||
}; | ||
exports.TopLevelOptions = TopLevelOptions; | ||
const ModulesOption = { | ||
const ModulesOption = exports.ModulesOption = { | ||
false: false, | ||
@@ -36,4 +35,3 @@ auto: "auto", | ||
}; | ||
exports.ModulesOption = ModulesOption; | ||
const UseBuiltInsOption = { | ||
const UseBuiltInsOption = exports.UseBuiltInsOption = { | ||
false: false, | ||
@@ -43,4 +41,3 @@ entry: "entry", | ||
}; | ||
exports.UseBuiltInsOption = UseBuiltInsOption; | ||
//# sourceMappingURL=options.js.map |
@@ -10,10 +10,8 @@ "use strict"; | ||
var _overlappingPlugins = require("@babel/compat-data/overlapping-plugins"); | ||
var _availablePlugins = require("./available-plugins"); | ||
var _availablePlugins = require("./available-plugins.js"); | ||
const keys = Object.keys; | ||
const plugins = filterAvailable(_plugins); | ||
exports.plugins = plugins; | ||
const pluginsBugfixes = filterAvailable(_pluginBugfixes); | ||
exports.pluginsBugfixes = pluginsBugfixes; | ||
const overlappingPlugins = filterAvailable(_overlappingPlugins); | ||
exports.overlappingPlugins = overlappingPlugins; | ||
const plugins = exports.plugins = filterAvailable(_plugins); | ||
const pluginsBugfixes = exports.pluginsBugfixes = filterAvailable(_pluginBugfixes); | ||
const overlappingPlugins = exports.overlappingPlugins = filterAvailable(_overlappingPlugins); | ||
overlappingPlugins["syntax-import-attributes"] = ["syntax-import-assertions"]; | ||
function filterAvailable(data) { | ||
@@ -20,0 +18,0 @@ const result = {}; |
@@ -7,6 +7,4 @@ "use strict"; | ||
exports.proposalSyntaxPlugins = exports.proposalPlugins = exports.pluginSyntaxMap = void 0; | ||
const proposalPlugins = new Set(); | ||
exports.proposalPlugins = proposalPlugins; | ||
const proposalSyntaxPlugins = ["syntax-import-assertions"]; | ||
exports.proposalSyntaxPlugins = proposalSyntaxPlugins; | ||
const proposalPlugins = exports.proposalPlugins = new Set(); | ||
const proposalSyntaxPlugins = exports.proposalSyntaxPlugins = ["syntax-import-assertions", "syntax-import-attributes"]; | ||
const pluginSyntaxObject = { | ||
@@ -16,2 +14,3 @@ "transform-async-generator-functions": "syntax-async-generators", | ||
"transform-class-static-block": "syntax-class-static-block", | ||
"transform-export-namespace-from": "syntax-export-namespace-from", | ||
"transform-json-strings": "syntax-json-strings", | ||
@@ -30,5 +29,4 @@ "transform-nullish-coalescing-operator": "syntax-nullish-coalescing-operator", | ||
}); | ||
const pluginSyntaxMap = new Map(pluginSyntaxEntries); | ||
exports.pluginSyntaxMap = pluginSyntaxMap; | ||
const pluginSyntaxMap = exports.pluginSyntaxMap = new Map(pluginSyntaxEntries); | ||
//# sourceMappingURL=shipped-proposals.js.map |
134
package.json
{ | ||
"name": "@babel/preset-env", | ||
"version": "7.21.5", | ||
"version": "7.23.3", | ||
"description": "A Babel preset for each environment.", | ||
@@ -19,23 +19,10 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/compat-data": "^7.21.5", | ||
"@babel/helper-compilation-targets": "^7.21.5", | ||
"@babel/helper-plugin-utils": "^7.21.5", | ||
"@babel/helper-validator-option": "^7.21.0", | ||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", | ||
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.20.7", | ||
"@babel/plugin-proposal-async-generator-functions": "^7.20.7", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-proposal-class-static-block": "^7.21.0", | ||
"@babel/plugin-proposal-dynamic-import": "^7.18.6", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.18.9", | ||
"@babel/plugin-proposal-json-strings": "^7.18.6", | ||
"@babel/plugin-proposal-logical-assignment-operators": "^7.20.7", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", | ||
"@babel/plugin-proposal-numeric-separator": "^7.18.6", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.20.7", | ||
"@babel/plugin-proposal-optional-catch-binding": "^7.18.6", | ||
"@babel/plugin-proposal-optional-chaining": "^7.21.0", | ||
"@babel/plugin-proposal-private-methods": "^7.18.6", | ||
"@babel/plugin-proposal-private-property-in-object": "^7.21.0", | ||
"@babel/plugin-proposal-unicode-property-regex": "^7.18.6", | ||
"@babel/compat-data": "^7.23.3", | ||
"@babel/helper-compilation-targets": "^7.22.15", | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
"@babel/helper-validator-option": "^7.22.15", | ||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3", | ||
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3", | ||
"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.23.3", | ||
"@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", | ||
"@babel/plugin-syntax-async-generators": "^7.8.4", | ||
@@ -46,3 +33,4 @@ "@babel/plugin-syntax-class-properties": "^7.12.13", | ||
"@babel/plugin-syntax-export-namespace-from": "^7.8.3", | ||
"@babel/plugin-syntax-import-assertions": "^7.20.0", | ||
"@babel/plugin-syntax-import-assertions": "^7.23.3", | ||
"@babel/plugin-syntax-import-attributes": "^7.23.3", | ||
"@babel/plugin-syntax-import-meta": "^7.10.4", | ||
@@ -58,41 +46,57 @@ "@babel/plugin-syntax-json-strings": "^7.8.3", | ||
"@babel/plugin-syntax-top-level-await": "^7.14.5", | ||
"@babel/plugin-transform-arrow-functions": "^7.21.5", | ||
"@babel/plugin-transform-async-to-generator": "^7.20.7", | ||
"@babel/plugin-transform-block-scoped-functions": "^7.18.6", | ||
"@babel/plugin-transform-block-scoping": "^7.21.0", | ||
"@babel/plugin-transform-classes": "^7.21.0", | ||
"@babel/plugin-transform-computed-properties": "^7.21.5", | ||
"@babel/plugin-transform-destructuring": "^7.21.3", | ||
"@babel/plugin-transform-dotall-regex": "^7.18.6", | ||
"@babel/plugin-transform-duplicate-keys": "^7.18.9", | ||
"@babel/plugin-transform-exponentiation-operator": "^7.18.6", | ||
"@babel/plugin-transform-for-of": "^7.21.5", | ||
"@babel/plugin-transform-function-name": "^7.18.9", | ||
"@babel/plugin-transform-literals": "^7.18.9", | ||
"@babel/plugin-transform-member-expression-literals": "^7.18.6", | ||
"@babel/plugin-transform-modules-amd": "^7.20.11", | ||
"@babel/plugin-transform-modules-commonjs": "^7.21.5", | ||
"@babel/plugin-transform-modules-systemjs": "^7.20.11", | ||
"@babel/plugin-transform-modules-umd": "^7.18.6", | ||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.20.5", | ||
"@babel/plugin-transform-new-target": "^7.18.6", | ||
"@babel/plugin-transform-object-super": "^7.18.6", | ||
"@babel/plugin-transform-parameters": "^7.21.3", | ||
"@babel/plugin-transform-property-literals": "^7.18.6", | ||
"@babel/plugin-transform-regenerator": "^7.21.5", | ||
"@babel/plugin-transform-reserved-words": "^7.18.6", | ||
"@babel/plugin-transform-shorthand-properties": "^7.18.6", | ||
"@babel/plugin-transform-spread": "^7.20.7", | ||
"@babel/plugin-transform-sticky-regex": "^7.18.6", | ||
"@babel/plugin-transform-template-literals": "^7.18.9", | ||
"@babel/plugin-transform-typeof-symbol": "^7.18.9", | ||
"@babel/plugin-transform-unicode-escapes": "^7.21.5", | ||
"@babel/plugin-transform-unicode-regex": "^7.18.6", | ||
"@babel/preset-modules": "^0.1.5", | ||
"@babel/types": "^7.21.5", | ||
"babel-plugin-polyfill-corejs2": "^0.3.3", | ||
"babel-plugin-polyfill-corejs3": "^0.6.0", | ||
"babel-plugin-polyfill-regenerator": "^0.4.1", | ||
"core-js-compat": "^3.25.1", | ||
"semver": "^6.3.0" | ||
"@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", | ||
"@babel/plugin-transform-arrow-functions": "^7.23.3", | ||
"@babel/plugin-transform-async-generator-functions": "^7.23.3", | ||
"@babel/plugin-transform-async-to-generator": "^7.23.3", | ||
"@babel/plugin-transform-block-scoped-functions": "^7.23.3", | ||
"@babel/plugin-transform-block-scoping": "^7.23.3", | ||
"@babel/plugin-transform-class-properties": "^7.23.3", | ||
"@babel/plugin-transform-class-static-block": "^7.23.3", | ||
"@babel/plugin-transform-classes": "^7.23.3", | ||
"@babel/plugin-transform-computed-properties": "^7.23.3", | ||
"@babel/plugin-transform-destructuring": "^7.23.3", | ||
"@babel/plugin-transform-dotall-regex": "^7.23.3", | ||
"@babel/plugin-transform-duplicate-keys": "^7.23.3", | ||
"@babel/plugin-transform-dynamic-import": "^7.23.3", | ||
"@babel/plugin-transform-exponentiation-operator": "^7.23.3", | ||
"@babel/plugin-transform-export-namespace-from": "^7.23.3", | ||
"@babel/plugin-transform-for-of": "^7.23.3", | ||
"@babel/plugin-transform-function-name": "^7.23.3", | ||
"@babel/plugin-transform-json-strings": "^7.23.3", | ||
"@babel/plugin-transform-literals": "^7.23.3", | ||
"@babel/plugin-transform-logical-assignment-operators": "^7.23.3", | ||
"@babel/plugin-transform-member-expression-literals": "^7.23.3", | ||
"@babel/plugin-transform-modules-amd": "^7.23.3", | ||
"@babel/plugin-transform-modules-commonjs": "^7.23.3", | ||
"@babel/plugin-transform-modules-systemjs": "^7.23.3", | ||
"@babel/plugin-transform-modules-umd": "^7.23.3", | ||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", | ||
"@babel/plugin-transform-new-target": "^7.23.3", | ||
"@babel/plugin-transform-nullish-coalescing-operator": "^7.23.3", | ||
"@babel/plugin-transform-numeric-separator": "^7.23.3", | ||
"@babel/plugin-transform-object-rest-spread": "^7.23.3", | ||
"@babel/plugin-transform-object-super": "^7.23.3", | ||
"@babel/plugin-transform-optional-catch-binding": "^7.23.3", | ||
"@babel/plugin-transform-optional-chaining": "^7.23.3", | ||
"@babel/plugin-transform-parameters": "^7.23.3", | ||
"@babel/plugin-transform-private-methods": "^7.23.3", | ||
"@babel/plugin-transform-private-property-in-object": "^7.23.3", | ||
"@babel/plugin-transform-property-literals": "^7.23.3", | ||
"@babel/plugin-transform-regenerator": "^7.23.3", | ||
"@babel/plugin-transform-reserved-words": "^7.23.3", | ||
"@babel/plugin-transform-shorthand-properties": "^7.23.3", | ||
"@babel/plugin-transform-spread": "^7.23.3", | ||
"@babel/plugin-transform-sticky-regex": "^7.23.3", | ||
"@babel/plugin-transform-template-literals": "^7.23.3", | ||
"@babel/plugin-transform-typeof-symbol": "^7.23.3", | ||
"@babel/plugin-transform-unicode-escapes": "^7.23.3", | ||
"@babel/plugin-transform-unicode-property-regex": "^7.23.3", | ||
"@babel/plugin-transform-unicode-regex": "^7.23.3", | ||
"@babel/plugin-transform-unicode-sets-regex": "^7.23.3", | ||
"@babel/preset-modules": "0.1.6-no-external-plugins", | ||
"babel-plugin-polyfill-corejs2": "^0.4.6", | ||
"babel-plugin-polyfill-corejs3": "^0.8.5", | ||
"babel-plugin-polyfill-regenerator": "^0.5.3", | ||
"core-js-compat": "^3.31.0", | ||
"semver": "^6.3.1" | ||
}, | ||
@@ -103,6 +107,6 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.21.5", | ||
"@babel/core": "^7.23.3", | ||
"@babel/core-7.12": "npm:@babel/core@7.12.9", | ||
"@babel/helper-plugin-test-runner": "^7.18.6", | ||
"@babel/traverse": "^7.21.5" | ||
"@babel/helper-plugin-test-runner": "^7.22.5", | ||
"@babel/traverse": "^7.23.3" | ||
}, | ||
@@ -109,0 +113,0 @@ "engines": { |
@@ -5,3 +5,3 @@ # @babel/preset-env | ||
See our website [@babel/preset-env](https://babeljs.io/docs/en/babel-preset-env) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20preset-env%22+is%3Aopen) associated with this package. | ||
See our website [@babel/preset-env](https://babeljs.io/docs/babel-preset-env) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20preset-env%22+is%3Aopen) associated with this package. | ||
@@ -8,0 +8,0 @@ ## Install |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
147314
45
1017
81
+ Added@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.23.3
+ Added@babel/plugin-transform-async-generator-functions@^7.23.3
+ Added@babel/plugin-transform-export-namespace-from@^7.23.3
+ Added@babel/plugin-transform-logical-assignment-operators@^7.23.3
+ Added@babel/plugin-transform-nullish-coalescing-operator@^7.23.3
+ Added@babel/plugin-transform-optional-catch-binding@^7.23.3
+ Added@babel/plugin-transform-private-property-in-object@^7.23.3
+ Added@babel/plugin-transform-unicode-property-regex@^7.23.3
+ Added@babel/helper-define-polyfill-provider@0.4.40.5.00.6.2(transitive)
+ Added@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.25.9(transitive)
+ Added@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(transitive)
+ Added@babel/plugin-syntax-import-attributes@7.26.0(transitive)
+ Added@babel/plugin-syntax-unicode-sets-regex@7.18.6(transitive)
+ Added@babel/plugin-transform-async-generator-functions@7.25.9(transitive)
+ Added@babel/plugin-transform-class-properties@7.25.9(transitive)
+ Added@babel/plugin-transform-class-static-block@7.26.0(transitive)
+ Added@babel/plugin-transform-dynamic-import@7.25.9(transitive)
+ Added@babel/plugin-transform-export-namespace-from@7.25.9(transitive)
+ Added@babel/plugin-transform-json-strings@7.25.9(transitive)
+ Added@babel/plugin-transform-logical-assignment-operators@7.25.9(transitive)
+ Added@babel/plugin-transform-nullish-coalescing-operator@7.25.9(transitive)
+ Added@babel/plugin-transform-numeric-separator@7.25.9(transitive)
+ Added@babel/plugin-transform-object-rest-spread@7.25.9(transitive)
+ Added@babel/plugin-transform-optional-catch-binding@7.25.9(transitive)
+ Added@babel/plugin-transform-private-methods@7.25.9(transitive)
+ Added@babel/plugin-transform-private-property-in-object@7.25.9(transitive)
+ Added@babel/plugin-transform-unicode-property-regex@7.25.9(transitive)
+ Added@babel/plugin-transform-unicode-sets-regex@7.25.9(transitive)
+ Added@babel/preset-modules@0.1.6-no-external-plugins(transitive)
+ Addedbabel-plugin-polyfill-corejs2@0.4.11(transitive)
+ Addedbabel-plugin-polyfill-corejs3@0.8.7(transitive)
+ Addedbabel-plugin-polyfill-regenerator@0.5.5(transitive)
+ Addedcore-js-compat@3.39.0(transitive)
- Removed@babel/plugin-proposal-async-generator-functions@^7.20.7
- Removed@babel/plugin-proposal-export-namespace-from@^7.18.9
- Removed@babel/plugin-proposal-logical-assignment-operators@^7.20.7
- Removed@babel/plugin-proposal-nullish-coalescing-operator@^7.18.6
- Removed@babel/plugin-proposal-optional-catch-binding@^7.18.6
- Removed@babel/plugin-proposal-unicode-property-regex@^7.18.6
- Removed@babel/types@^7.21.5
- Removed@babel/helper-define-polyfill-provider@0.3.3(transitive)
- Removed@babel/helper-environment-visitor@7.24.7(transitive)
- Removed@babel/plugin-proposal-async-generator-functions@7.20.7(transitive)
- Removed@babel/plugin-proposal-class-properties@7.18.6(transitive)
- Removed@babel/plugin-proposal-class-static-block@7.21.0(transitive)
- Removed@babel/plugin-proposal-dynamic-import@7.18.6(transitive)
- Removed@babel/plugin-proposal-export-namespace-from@7.18.9(transitive)
- Removed@babel/plugin-proposal-json-strings@7.18.6(transitive)
- Removed@babel/plugin-proposal-logical-assignment-operators@7.20.7(transitive)
- Removed@babel/plugin-proposal-nullish-coalescing-operator@7.18.6(transitive)
- Removed@babel/plugin-proposal-numeric-separator@7.18.6(transitive)
- Removed@babel/plugin-proposal-object-rest-spread@7.20.7(transitive)
- Removed@babel/plugin-proposal-optional-catch-binding@7.18.6(transitive)
- Removed@babel/plugin-proposal-optional-chaining@7.21.0(transitive)
- Removed@babel/plugin-proposal-private-methods@7.18.6(transitive)
- Removed@babel/plugin-proposal-private-property-in-object@7.21.11(transitive)
- Removed@babel/plugin-proposal-unicode-property-regex@7.18.6(transitive)
- Removed@babel/preset-modules@0.1.6(transitive)
- Removedbabel-plugin-polyfill-corejs2@0.3.3(transitive)
- Removedbabel-plugin-polyfill-corejs3@0.6.0(transitive)
- Removedbabel-plugin-polyfill-regenerator@0.4.1(transitive)
- Removedcore-js-compat@3.38.1(transitive)
Updated@babel/compat-data@^7.23.3
Updated@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.23.3
Updated@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.23.3
Updated@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2
Updated@babel/plugin-transform-block-scoped-functions@^7.23.3
Updated@babel/plugin-transform-exponentiation-operator@^7.23.3
Updated@babel/plugin-transform-member-expression-literals@^7.23.3
Updated@babel/plugin-transform-named-capturing-groups-regex@^7.22.5
Updatedcore-js-compat@^3.31.0
Updatedsemver@^6.3.1