Area restrita - Questionario
This commit is contained in:
+6
-5
@@ -2,13 +2,13 @@
|
||||
|
||||
## Adding a new plugin or polyfill to support (when approved in the next ECMAScript version)
|
||||
|
||||
### Update [`plugin-features.js`](https://github.com/babel/babel/blob/main/packages/babel-compat-data/scripts/data/plugin-features.js)
|
||||
### Update [`plugin-features.mjs`](../babel-compat-data/scripts/data/plugin-features.mjs)
|
||||
|
||||
*Example:*
|
||||
|
||||
If you were going to add `**` which is in ES2016:
|
||||
|
||||
Find the relevant entries on [compat-table](https://kangax.github.io/compat-table/es2016plus/#test-exponentiation_(**)_operator):
|
||||
Find the relevant entries on [compat-table](https://compat-table.github.io/compat-table/es2016plus/#test-exponentiation_(**)_operator):
|
||||
|
||||
`exponentiation (**) operator`
|
||||
|
||||
@@ -61,7 +61,7 @@ If you want to transform a new built-in by `useBuiltIns: 'usage'`, add mapping t
|
||||
|
||||
If you want to mark a new proposal as shipped, add it to [this list](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs3/shipped-proposals.js).
|
||||
|
||||
### Update [`plugins.json`](https://github.com/babel/babel/blob/main/packages/babel-preset-env/data/plugins.json)
|
||||
### Update [`plugins.json`](../babel-compat-data/data/plugins.json)
|
||||
|
||||
Until `compat-table` is a standalone npm module for data we are using the git commit in `packages/babel-compat-data/scripts/download-compat-table.sh`
|
||||
|
||||
@@ -72,7 +72,8 @@ So we update and then run `npm run build-data`. If there are no changes, then `p
|
||||
## Tests
|
||||
|
||||
### Running tests
|
||||
See general [CONTRIBUTING.md](https://github.com/babel/babel/blob/main/CONTRIBUTING.md#running-lintingtests).
|
||||
|
||||
See general [CONTRIBUTING.md](../../CONTRIBUTING.md#running-lintingtests).
|
||||
|
||||
### Writing tests
|
||||
|
||||
@@ -80,7 +81,7 @@ See general [CONTRIBUTING.md](https://github.com/babel/babel/blob/main/CONTRIBUT
|
||||
|
||||
All the tests for `@babel/preset-env` exist in the `test/fixtures` folder. The
|
||||
test setup and conventions are exactly the same as testing a Babel plugin, so
|
||||
please read our [documentation on writing tests](https://github.com/babel/babel/blob/main/CONTRIBUTING.md#babel-plugin-x).
|
||||
please read our [documentation on writing tests](../../CONTRIBUTING.md#babel-plugin-x).
|
||||
|
||||
#### Testing the `debug` option
|
||||
|
||||
|
||||
+2
@@ -65,6 +65,7 @@ var _index4 = require("@babel/preset-modules/lib/plugins/transform-tagged-templa
|
||||
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 _pluginBugfixSafariRestDestructuringRhsArray = require("@babel/plugin-bugfix-safari-rest-destructuring-rhs-array");
|
||||
var _pluginBugfixSafariClassFieldInitializerScope = require("@babel/plugin-bugfix-safari-class-field-initializer-scope");
|
||||
var _pluginBugfixV8SpreadParametersInOptionalChaining = require("@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining");
|
||||
var _pluginBugfixV8StaticClassFieldsRedefineReadonly = require("@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly");
|
||||
@@ -77,6 +78,7 @@ const availablePlugins = exports.default = {
|
||||
"bugfix/transform-safari-class-field-initializer-scope": () => _pluginBugfixSafariClassFieldInitializerScope.default,
|
||||
"bugfix/transform-safari-for-shadowing": () => _index6,
|
||||
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": () => _pluginBugfixSafariIdDestructuringCollisionInFunctionExpression.default,
|
||||
"bugfix/transform-safari-rest-destructuring-rhs-array": () => _pluginBugfixSafariRestDestructuringRhsArray.default,
|
||||
"bugfix/transform-tagged-template-caching": () => _index4,
|
||||
"bugfix/transform-v8-spread-parameters-in-optional-chaining": () => _pluginBugfixV8SpreadParametersInOptionalChaining.default,
|
||||
"bugfix/transform-v8-static-class-fields-redefine-readonly": () => _pluginBugfixV8StaticClassFieldsRedefineReadonly.default,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -15,7 +15,7 @@ var _helperValidatorOption = require("@babel/helper-validator-option");
|
||||
var _babel7Plugins = require("./polyfills/babel-7-plugins.cjs");
|
||||
const corejs3Polyfills = require("core-js-compat/data.json");
|
||||
const v = new _helperValidatorOption.OptionValidator("@babel/preset-env");
|
||||
const allPluginsList = Object.keys(_pluginsCompatData.plugins);
|
||||
const allPluginsList = [...Object.keys(_pluginsCompatData.plugins), ...Object.keys(_pluginsCompatData.pluginsBugfixes)];
|
||||
const modulePlugins = ["transform-dynamic-import", ...Object.keys(_moduleTransformations.default).map(m => _moduleTransformations.default[m])];
|
||||
const getValidIncludesAndExcludes = (type, corejs) => {
|
||||
const set = new Set(allPluginsList);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+71
-70
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/preset-env",
|
||||
"version": "7.28.6",
|
||||
"version": "7.29.7",
|
||||
"description": "A Babel preset for each environment.",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-preset-env",
|
||||
@@ -16,85 +16,86 @@
|
||||
},
|
||||
"main": "./lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/compat-data": "^7.28.6",
|
||||
"@babel/helper-compilation-targets": "^7.28.6",
|
||||
"@babel/helper-plugin-utils": "^7.28.6",
|
||||
"@babel/helper-validator-option": "^7.27.1",
|
||||
"@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.28.5",
|
||||
"@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.27.1",
|
||||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.27.1",
|
||||
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.27.1",
|
||||
"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.28.6",
|
||||
"@babel/compat-data": "^7.29.7",
|
||||
"@babel/helper-compilation-targets": "^7.29.7",
|
||||
"@babel/helper-plugin-utils": "^7.29.7",
|
||||
"@babel/helper-validator-option": "^7.29.7",
|
||||
"@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.29.7",
|
||||
"@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.29.7",
|
||||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.29.7",
|
||||
"@babel/plugin-bugfix-safari-rest-destructuring-rhs-array": "^7.29.7",
|
||||
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.29.7",
|
||||
"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.29.7",
|
||||
"@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",
|
||||
"@babel/plugin-syntax-import-assertions": "^7.28.6",
|
||||
"@babel/plugin-syntax-import-attributes": "^7.28.6",
|
||||
"@babel/plugin-syntax-import-assertions": "^7.29.7",
|
||||
"@babel/plugin-syntax-import-attributes": "^7.29.7",
|
||||
"@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
|
||||
"@babel/plugin-transform-arrow-functions": "^7.27.1",
|
||||
"@babel/plugin-transform-async-generator-functions": "^7.28.6",
|
||||
"@babel/plugin-transform-async-to-generator": "^7.28.6",
|
||||
"@babel/plugin-transform-block-scoped-functions": "^7.27.1",
|
||||
"@babel/plugin-transform-block-scoping": "^7.28.6",
|
||||
"@babel/plugin-transform-class-properties": "^7.28.6",
|
||||
"@babel/plugin-transform-class-static-block": "^7.28.6",
|
||||
"@babel/plugin-transform-classes": "^7.28.6",
|
||||
"@babel/plugin-transform-computed-properties": "^7.28.6",
|
||||
"@babel/plugin-transform-destructuring": "^7.28.5",
|
||||
"@babel/plugin-transform-dotall-regex": "^7.28.6",
|
||||
"@babel/plugin-transform-duplicate-keys": "^7.27.1",
|
||||
"@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.28.6",
|
||||
"@babel/plugin-transform-dynamic-import": "^7.27.1",
|
||||
"@babel/plugin-transform-explicit-resource-management": "^7.28.6",
|
||||
"@babel/plugin-transform-exponentiation-operator": "^7.28.6",
|
||||
"@babel/plugin-transform-export-namespace-from": "^7.27.1",
|
||||
"@babel/plugin-transform-for-of": "^7.27.1",
|
||||
"@babel/plugin-transform-function-name": "^7.27.1",
|
||||
"@babel/plugin-transform-json-strings": "^7.28.6",
|
||||
"@babel/plugin-transform-literals": "^7.27.1",
|
||||
"@babel/plugin-transform-logical-assignment-operators": "^7.28.6",
|
||||
"@babel/plugin-transform-member-expression-literals": "^7.27.1",
|
||||
"@babel/plugin-transform-modules-amd": "^7.27.1",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.28.6",
|
||||
"@babel/plugin-transform-modules-systemjs": "^7.28.5",
|
||||
"@babel/plugin-transform-modules-umd": "^7.27.1",
|
||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.27.1",
|
||||
"@babel/plugin-transform-new-target": "^7.27.1",
|
||||
"@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6",
|
||||
"@babel/plugin-transform-numeric-separator": "^7.28.6",
|
||||
"@babel/plugin-transform-object-rest-spread": "^7.28.6",
|
||||
"@babel/plugin-transform-object-super": "^7.27.1",
|
||||
"@babel/plugin-transform-optional-catch-binding": "^7.28.6",
|
||||
"@babel/plugin-transform-optional-chaining": "^7.28.6",
|
||||
"@babel/plugin-transform-parameters": "^7.27.7",
|
||||
"@babel/plugin-transform-private-methods": "^7.28.6",
|
||||
"@babel/plugin-transform-private-property-in-object": "^7.28.6",
|
||||
"@babel/plugin-transform-property-literals": "^7.27.1",
|
||||
"@babel/plugin-transform-regenerator": "^7.28.6",
|
||||
"@babel/plugin-transform-regexp-modifiers": "^7.28.6",
|
||||
"@babel/plugin-transform-reserved-words": "^7.27.1",
|
||||
"@babel/plugin-transform-shorthand-properties": "^7.27.1",
|
||||
"@babel/plugin-transform-spread": "^7.28.6",
|
||||
"@babel/plugin-transform-sticky-regex": "^7.27.1",
|
||||
"@babel/plugin-transform-template-literals": "^7.27.1",
|
||||
"@babel/plugin-transform-typeof-symbol": "^7.27.1",
|
||||
"@babel/plugin-transform-unicode-escapes": "^7.27.1",
|
||||
"@babel/plugin-transform-unicode-property-regex": "^7.28.6",
|
||||
"@babel/plugin-transform-unicode-regex": "^7.27.1",
|
||||
"@babel/plugin-transform-unicode-sets-regex": "^7.28.6",
|
||||
"@babel/plugin-transform-arrow-functions": "^7.29.7",
|
||||
"@babel/plugin-transform-async-generator-functions": "^7.29.7",
|
||||
"@babel/plugin-transform-async-to-generator": "^7.29.7",
|
||||
"@babel/plugin-transform-block-scoped-functions": "^7.29.7",
|
||||
"@babel/plugin-transform-block-scoping": "^7.29.7",
|
||||
"@babel/plugin-transform-class-properties": "^7.29.7",
|
||||
"@babel/plugin-transform-class-static-block": "^7.29.7",
|
||||
"@babel/plugin-transform-classes": "^7.29.7",
|
||||
"@babel/plugin-transform-computed-properties": "^7.29.7",
|
||||
"@babel/plugin-transform-destructuring": "^7.29.7",
|
||||
"@babel/plugin-transform-dotall-regex": "^7.29.7",
|
||||
"@babel/plugin-transform-duplicate-keys": "^7.29.7",
|
||||
"@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.29.7",
|
||||
"@babel/plugin-transform-dynamic-import": "^7.29.7",
|
||||
"@babel/plugin-transform-explicit-resource-management": "^7.29.7",
|
||||
"@babel/plugin-transform-exponentiation-operator": "^7.29.7",
|
||||
"@babel/plugin-transform-export-namespace-from": "^7.29.7",
|
||||
"@babel/plugin-transform-for-of": "^7.29.7",
|
||||
"@babel/plugin-transform-function-name": "^7.29.7",
|
||||
"@babel/plugin-transform-json-strings": "^7.29.7",
|
||||
"@babel/plugin-transform-literals": "^7.29.7",
|
||||
"@babel/plugin-transform-logical-assignment-operators": "^7.29.7",
|
||||
"@babel/plugin-transform-member-expression-literals": "^7.29.7",
|
||||
"@babel/plugin-transform-modules-amd": "^7.29.7",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.29.7",
|
||||
"@babel/plugin-transform-modules-systemjs": "^7.29.7",
|
||||
"@babel/plugin-transform-modules-umd": "^7.29.7",
|
||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.29.7",
|
||||
"@babel/plugin-transform-new-target": "^7.29.7",
|
||||
"@babel/plugin-transform-nullish-coalescing-operator": "^7.29.7",
|
||||
"@babel/plugin-transform-numeric-separator": "^7.29.7",
|
||||
"@babel/plugin-transform-object-rest-spread": "^7.29.7",
|
||||
"@babel/plugin-transform-object-super": "^7.29.7",
|
||||
"@babel/plugin-transform-optional-catch-binding": "^7.29.7",
|
||||
"@babel/plugin-transform-optional-chaining": "^7.29.7",
|
||||
"@babel/plugin-transform-parameters": "^7.29.7",
|
||||
"@babel/plugin-transform-private-methods": "^7.29.7",
|
||||
"@babel/plugin-transform-private-property-in-object": "^7.29.7",
|
||||
"@babel/plugin-transform-property-literals": "^7.29.7",
|
||||
"@babel/plugin-transform-regenerator": "^7.29.7",
|
||||
"@babel/plugin-transform-regexp-modifiers": "^7.29.7",
|
||||
"@babel/plugin-transform-reserved-words": "^7.29.7",
|
||||
"@babel/plugin-transform-shorthand-properties": "^7.29.7",
|
||||
"@babel/plugin-transform-spread": "^7.29.7",
|
||||
"@babel/plugin-transform-sticky-regex": "^7.29.7",
|
||||
"@babel/plugin-transform-template-literals": "^7.29.7",
|
||||
"@babel/plugin-transform-typeof-symbol": "^7.29.7",
|
||||
"@babel/plugin-transform-unicode-escapes": "^7.29.7",
|
||||
"@babel/plugin-transform-unicode-property-regex": "^7.29.7",
|
||||
"@babel/plugin-transform-unicode-regex": "^7.29.7",
|
||||
"@babel/plugin-transform-unicode-sets-regex": "^7.29.7",
|
||||
"@babel/preset-modules": "0.1.6-no-external-plugins",
|
||||
"babel-plugin-polyfill-corejs2": "^0.4.14",
|
||||
"babel-plugin-polyfill-corejs3": "^0.13.0",
|
||||
"babel-plugin-polyfill-regenerator": "^0.6.5",
|
||||
"core-js-compat": "^3.43.0",
|
||||
"babel-plugin-polyfill-corejs2": "^0.4.15",
|
||||
"babel-plugin-polyfill-corejs3": "^0.14.0",
|
||||
"babel-plugin-polyfill-regenerator": "^0.6.6",
|
||||
"core-js-compat": "^3.48.0",
|
||||
"semver": "^6.3.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0-0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.28.6",
|
||||
"@babel/core": "^7.29.7",
|
||||
"@babel/core-7.12": "npm:@babel/core@7.12.9",
|
||||
"@babel/helper-plugin-test-runner": "^7.27.1",
|
||||
"@babel/traverse": "^7.28.6"
|
||||
"@babel/helper-plugin-test-runner": "^7.29.7",
|
||||
"@babel/traverse": "^7.29.7"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
|
||||
Reference in New Issue
Block a user