Include preset modules (#11083)
* Prepare preset-env and compat-data for preset-modules
* Add transform-edge-default-parameters from preset-modules
* AUtomatically generate data from compat-table
* Add compat data for other plugins
* Updates after rebase
* Add more bugfixes to preset-env
* Update tests
* Add bugfix/transform-safari-for-shadowing
* Fix build script
* bugfix/transform-safari-block-shadowing
* Fix flow
* Include changes from 7127330f02
* Fix check-compat-data
This commit is contained in:
38
packages/babel-compat-data/scripts/data/plugin-bugfixes.js
Normal file
38
packages/babel-compat-data/scripts/data/plugin-bugfixes.js
Normal file
@@ -0,0 +1,38 @@
|
||||
/* eslint sort-keys: "error" */
|
||||
|
||||
module.exports = {
|
||||
"bugfix/transform-async-arrows-in-class": {
|
||||
features: ["async functions / async arrow functions in methods, classes"],
|
||||
replaces: "transform-async-to-generator",
|
||||
},
|
||||
"bugfix/transform-edge-default-parameters": {
|
||||
features: [
|
||||
"destructuring, parameters / shorthand defaults, arrow function",
|
||||
],
|
||||
replaces: "transform-parameters",
|
||||
},
|
||||
"bugfix/transform-edge-function-name": {
|
||||
features: ['function "name" property / variables (function)'],
|
||||
replaces: "transform-function-name",
|
||||
},
|
||||
"bugfix/transform-safari-block-shadowing": {
|
||||
features: [
|
||||
"const / scope shadow resolution",
|
||||
"const / scope shadow resolution (strict mode)",
|
||||
"let / scope shadow resolution",
|
||||
"let / scope shadow resolution (strict mode)",
|
||||
],
|
||||
replaces: "transform-block-scoping",
|
||||
},
|
||||
"bugfix/transform-safari-for-shadowing": {
|
||||
features: [
|
||||
"let / for-in loop binding shadowing parameter",
|
||||
"let / for-in loop binding shadowing parameter (strict mode)",
|
||||
],
|
||||
replaces: "transform-block-scoping",
|
||||
},
|
||||
"bugfix/transform-tagged-template-caching": {
|
||||
features: ["template literals / TemplateStrings permanent caching"],
|
||||
replaces: "transform-template-literals",
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user