@babel/preset-env
Advanced tools
Comparing version 7.10.4 to 7.11.0
@@ -7,3 +7,2 @@ /* eslint sort-keys: "error" */ | ||
"proposal-class-properties", | ||
"proposal-numeric-separator", | ||
"proposal-private-methods" | ||
@@ -10,0 +9,0 @@ ]); |
@@ -14,4 +14,8 @@ "use strict"; | ||
var _pluginSyntaxExportNamespaceFrom = _interopRequireDefault(require("@babel/plugin-syntax-export-namespace-from")); | ||
var _pluginSyntaxJsonStrings = _interopRequireDefault(require("@babel/plugin-syntax-json-strings")); | ||
var _pluginSyntaxLogicalAssignmentOperators = _interopRequireDefault(require("@babel/plugin-syntax-logical-assignment-operators")); | ||
var _pluginSyntaxNullishCoalescingOperator = _interopRequireDefault(require("@babel/plugin-syntax-nullish-coalescing-operator")); | ||
@@ -35,4 +39,8 @@ | ||
var _pluginProposalExportNamespaceFrom = _interopRequireDefault(require("@babel/plugin-proposal-export-namespace-from")); | ||
var _pluginProposalJsonStrings = _interopRequireDefault(require("@babel/plugin-proposal-json-strings")); | ||
var _pluginProposalLogicalAssignmentOperators = _interopRequireDefault(require("@babel/plugin-proposal-logical-assignment-operators")); | ||
var _pluginProposalNullishCoalescingOperator = _interopRequireDefault(require("@babel/plugin-proposal-nullish-coalescing-operator")); | ||
@@ -140,3 +148,5 @@ | ||
"proposal-dynamic-import": _pluginProposalDynamicImport.default, | ||
"proposal-export-namespace-from": _pluginProposalExportNamespaceFrom.default, | ||
"proposal-json-strings": _pluginProposalJsonStrings.default, | ||
"proposal-logical-assignment-operators": _pluginProposalLogicalAssignmentOperators.default, | ||
"proposal-nullish-coalescing-operator": _pluginProposalNullishCoalescingOperator.default, | ||
@@ -152,3 +162,5 @@ "proposal-numeric-separator": _pluginProposalNumericSeparator.default, | ||
"syntax-dynamic-import": _pluginSyntaxDynamicImport.default, | ||
"syntax-export-namespace-from": _pluginSyntaxExportNamespaceFrom.default, | ||
"syntax-json-strings": _pluginSyntaxJsonStrings.default, | ||
"syntax-logical-assignment-operators": _pluginSyntaxLogicalAssignmentOperators.default, | ||
"syntax-nullish-coalescing-operator": _pluginSyntaxNullishCoalescingOperator.default, | ||
@@ -155,0 +167,0 @@ "syntax-numeric-separator": _pluginSyntaxNumericSeparator.default, |
@@ -109,2 +109,3 @@ "use strict"; | ||
shouldTransformDynamicImport, | ||
shouldTransformExportNamespaceFrom, | ||
shouldParseTopLevelAwait | ||
@@ -132,2 +133,8 @@ }) => { | ||
if (shouldTransformExportNamespaceFrom) { | ||
modulesPluginNames.push("proposal-export-namespace-from"); | ||
} else { | ||
modulesPluginNames.push("syntax-export-namespace-from"); | ||
} | ||
if (shouldParseTopLevelAwait) { | ||
@@ -205,2 +212,6 @@ modulesPluginNames.push("syntax-top-level-await"); | ||
function supportsExportNamespaceFrom(caller) { | ||
return !!(caller == null ? void 0 : caller.supportsExportNamespaceFrom); | ||
} | ||
function supportsTopLevelAwait(caller) { | ||
@@ -258,2 +269,8 @@ return !!(caller == null ? void 0 : caller.supportsTopLevelAwait); | ||
const transformTargets = forceAllTransforms || hasUglifyTarget ? {} : targets; | ||
const compatData = getPluginList(shippedProposals, bugfixes); | ||
const shouldSkipExportNamespaceFrom = modules === "auto" && (api.caller == null ? void 0 : api.caller(supportsExportNamespaceFrom)) || modules === false && !(0, _helperCompilationTargets.isRequired)("proposal-export-namespace-from", transformTargets, { | ||
compatData, | ||
includes: include.plugins, | ||
excludes: exclude.plugins | ||
}); | ||
const modulesPluginNames = getModulesPluginNames({ | ||
@@ -264,5 +281,6 @@ modules, | ||
shouldTransformDynamicImport: modules !== "auto" || !(api.caller == null ? void 0 : api.caller(supportsDynamicImport)), | ||
shouldTransformExportNamespaceFrom: !shouldSkipExportNamespaceFrom, | ||
shouldParseTopLevelAwait: !api.caller || api.caller(supportsTopLevelAwait) | ||
}); | ||
const pluginNames = (0, _helperCompilationTargets.filterItems)(getPluginList(shippedProposals, bugfixes), include.plugins, exclude.plugins, transformTargets, modulesPluginNames, (0, _getOptionSpecificExcludes.default)({ | ||
const pluginNames = (0, _helperCompilationTargets.filterItems)(compatData, include.plugins, exclude.plugins, transformTargets, modulesPluginNames, (0, _getOptionSpecificExcludes.default)({ | ||
loose | ||
@@ -269,0 +287,0 @@ }), _shippedProposals.pluginSyntaxMap); |
{ | ||
"name": "@babel/preset-env", | ||
"version": "7.10.4", | ||
"version": "7.11.0", | ||
"description": "A Babel preset for each environment.", | ||
@@ -18,3 +18,3 @@ "author": "Henry Zhu <hi@henryzoo.com>", | ||
"dependencies": { | ||
"@babel/compat-data": "^7.10.4", | ||
"@babel/compat-data": "^7.11.0", | ||
"@babel/helper-compilation-targets": "^7.10.4", | ||
@@ -26,8 +26,10 @@ "@babel/helper-module-imports": "^7.10.4", | ||
"@babel/plugin-proposal-dynamic-import": "^7.10.4", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.10.4", | ||
"@babel/plugin-proposal-json-strings": "^7.10.4", | ||
"@babel/plugin-proposal-logical-assignment-operators": "^7.11.0", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4", | ||
"@babel/plugin-proposal-numeric-separator": "^7.10.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.10.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.11.0", | ||
"@babel/plugin-proposal-optional-catch-binding": "^7.10.4", | ||
"@babel/plugin-proposal-optional-chaining": "^7.10.4", | ||
"@babel/plugin-proposal-optional-chaining": "^7.11.0", | ||
"@babel/plugin-proposal-private-methods": "^7.10.4", | ||
@@ -38,3 +40,5 @@ "@babel/plugin-proposal-unicode-property-regex": "^7.10.4", | ||
"@babel/plugin-syntax-dynamic-import": "^7.8.0", | ||
"@babel/plugin-syntax-export-namespace-from": "^7.8.3", | ||
"@babel/plugin-syntax-json-strings": "^7.8.0", | ||
"@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", | ||
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0", | ||
@@ -72,3 +76,3 @@ "@babel/plugin-syntax-numeric-separator": "^7.10.4", | ||
"@babel/plugin-transform-shorthand-properties": "^7.10.4", | ||
"@babel/plugin-transform-spread": "^7.10.4", | ||
"@babel/plugin-transform-spread": "^7.11.0", | ||
"@babel/plugin-transform-sticky-regex": "^7.10.4", | ||
@@ -80,3 +84,3 @@ "@babel/plugin-transform-template-literals": "^7.10.4", | ||
"@babel/preset-modules": "^0.1.3", | ||
"@babel/types": "^7.10.4", | ||
"@babel/types": "^7.11.0", | ||
"browserslist": "^4.12.0", | ||
@@ -93,8 +97,7 @@ "core-js-compat": "^3.6.2", | ||
"@babel/cli": "^7.10.4", | ||
"@babel/core": "^7.10.4", | ||
"@babel/core": "^7.11.0", | ||
"@babel/helper-fixtures": "^7.10.4", | ||
"@babel/helper-plugin-test-runner": "^7.10.4", | ||
"@babel/plugin-syntax-dynamic-import": "^7.2.0" | ||
}, | ||
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df" | ||
} | ||
} |
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
94229
1975
69
+ Added@babel/plugin-proposal-logical-assignment-operators@^7.11.0
+ Added@babel/plugin-syntax-logical-assignment-operators@^7.10.4
+ Added@babel/plugin-proposal-export-namespace-from@7.18.9(transitive)
+ Added@babel/plugin-proposal-logical-assignment-operators@7.20.7(transitive)
+ Added@babel/plugin-syntax-export-namespace-from@7.8.3(transitive)
+ Added@babel/plugin-syntax-logical-assignment-operators@7.10.4(transitive)
Updated@babel/compat-data@^7.11.0
Updated@babel/types@^7.11.0