/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/babel-compat-data/scripts/data/plugin-bugfixes.mjs
55 строк
2 KB
Huáng Jùnliàng
Add bugfix plugin for Safari array rest destructuring bug (#17788)
08 мар 2026, 02:21
Не верифицирован
08 мар 2026, 02:21
f1a708c
Код
Авторство
О чём код?
/* eslint sort-keys: "error" */ export default { "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-safari-id-destructuring-collision-in-function-expression": { features: ["destructuring, parameters / duplicate identifier"], replaces: "transform-parameters", }, "bugfix/transform-safari-rest-destructuring-rhs-array": { features: [ "destructuring, assignment / rest with identical number of elements in RHS", "destructuring, declarations / rest with identical number of elements in RHS", ], replaces: "transform-destructuring", }, "bugfix/transform-tagged-template-caching": { features: ["template literals / TemplateStrings permanent caching"], replaces: "transform-template-literals", }, "bugfix/transform-v8-spread-parameters-in-optional-chaining": { features: [ "optional chaining operator (?.) / spread parameters after optional chaining", ], replaces: "transform-optional-chaining", }, };