@babel/highlight
7.25.9 · 22 Oct 2024MIT29.1M / weekRepositoryHomepagenpmAtom feed
7.25.9 is the newest release of 7.x.
In short
13 new3 fixed5 changed33 internal
Release note
Blog post: babeljs.io/blog/2020/03/16/7.9.0
:rocket: New Feature
babel-generator,babel-helper-builder-react-jsx-experimental,babel-helper-builder-react-jsx,babel-plugin-transform-block-scoping,babel-plugin-transform-classes,babel-plugin-transform-function-name,babel-plugin-transform-react-constant-elements,babel-plugin-transform-react-inline-elements,babel-plugin-transform-react-jsx-development,babel-plugin-transform-react-jsx,babel-plugin-transform-regenerator,babel-preset-react,babel-preset-typescript,babel-standaloneMark transpiled JSX elements as pure (@nicolo-ribaudo)
babel-helper-builder-react-jsx-experimental,babel-helper-builder-react-jsx,babel-plugin-transform-react-jsx-development,babel-plugin-transform-react-jsx-self,babel-plugin-transform-react-jsx,babel-preset-react,babel-standaloneAdd experimental version of the
babel-plugin-transform-react-jsxtransform (@lunaruan)
babel-compat-data,babel-preset-envInclude preset modules (@nicolo-ribaudo)
Add numeric separator to
shippedProposals(@Wetinee)
babel-core,babel-helpers,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-transform-classes,babel-plugin-transform-function-name,babel-plugin-transform-parameters,babel-plugin-transform-react-jsx,babel-plugin-transform-runtime,babel-plugin-transform-typescript,babel-preset-envAllow extending untranspiled classes (@nicolo-ribaudo)
babel-core,babel-helper-module-transforms,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-systemjs,babel-plugin-transform-modules-umdAllow defining the moduleIds-related option in the transform plugins (@nicolo-ribaudo)
babel-core,babel-generator,babel-parser,babel-plugin-syntax-record-and-tuple,babel-typesAdded support for record and tuple syntax. (@rickbutton)
babel-generator,babel-parser,babel-plugin-transform-flow-strip-types,babel-preset-flowImplement support for
declareon class fields with Flow (@nicolo-ribaudo)
babel-typesAdd cloneDeepWithoutLoc (@Taym95)
babel-generatorAdded jsescOptions to Numeric Literals (@sidntrivedi012)
babel-generator,babel-parser,babel-typesAdd support for flow's SymbolTypeAnnotation (@existentialism)
babel-parserParse BigInts by default (@nicolo-ribaudo)
Add estree parsing support for
export * as A(@existentialism)feat: align ID_Start/ID_Continue regex to Unicode 13.0.0 (@JLHwung)
babel-plugin-transform-react-jsx-source,babel-preset-reactfeat(react-jsx-source): add columnNumber property (@motiz88)
babel-generator,babel-parser,babel-plugin-transform-typescript,babel-preset-typescript,babel-typesAdd
import typeandexport typesupport to TypeScript (@nicolo-ribaudo)
:bug: Bug Fix
babel-helper-builder-react-jsx-experimental,babel-helper-builder-react-jsx,babel-helper-validator-identifier,babel-highlight,babel-parser,babel-typesAdd @babel/helper-validator-identifier (@JLHwung)
babel-plugin-proposal-optional-chainingMemoize call expressions in optional chains in loose mode (@oliverdunk)
babel-plugin-transform-react-jsx-self,babel-preset-reactPass the correct
thisto JSX's__selfwith the old plugin (@nicolo-ribaudo)
babel-helper-builder-react-jsx-experimental,babel-plugin-transform-react-jsx-development,babel-plugin-transform-react-jsxUse the correct
thisin__selffor JSX elements in arrows (@nicolo-ribaudo)
babel-compat-data,babel-preset-envMove
object-rest-spreadaftertransform-parameters(@JLHwung)
babel-helpers,babel-plugin-transform-for-of,babel-preset-envAllow for-of on polyfilled or builtin iterables without
Symbolsupport (@nicolo-ribaudo)Add for-of fallback for arrays in browsers without symbol support (@nicolo-ribaudo)
babel-plugin-proposal-object-rest-spreadfix: object-rest-spread should not transform export array rest (@JLHwung)
babel-registerAdd path separator to
@babel/registersourceRoot (@andrewdotn)
babel-core,babel-helpers,babel-plugin-transform-runtimeCreate File class for babel helpers (@JLHwung)
babel-helpers,babel-plugin-transform-modules-commonjs,babel-preset-env,babel-runtime-corejs2,babel-runtimeAllow rest/spread on polyfilled or builtin iterables without
Symbolsupport (@nicolo-ribaudo)
babel-parserAllow await when it is not in AsyncArrowHead (@arku)
babel-helpers,babel-plugin-proposal-object-rest-spread,babel-runtime-corejs2,babel-runtimefix(rest-spread): Do not require
Symbol.iteratorfor strings (@clshortfuse)
babel-generatorFix printing edge cases in Nullish Coalescing and Optional Chaining (@jridgewell)
:nail_care: Polish
babel-parserRephrase parser error message (@JLHwung)
babel-helpers,babel-plugin-transform-destructuring,babel-plugin-transform-modules-commonjs,babel-plugin-transform-spread,babel-preset-env,babel-runtime-corejs2,babel-runtimeThrow better errors for non-iterables when Symbol doesn't exist. (@nicolo-ribaudo)
:house: Internal
babel-helper-builder-react-jsx-experimental,babel-helper-builder-react-jsx,babel-helper-validator-identifier,babel-highlight,babel-parser,babel-typesAdd @babel/helper-validator-identifier (@JLHwung)
babel-compat-data,babel-preset-envUpdate compat-data (@existentialism)
babel-corechore: bump json5 and minimist (@JLHwung)
babel-typesAdd stricter Optional Chain node validation (@jridgewell)
Update Purish aliases (@jridgewell)
babel-helpers,babel-plugin-transform-block-scoping,babel-plugin-transform-for-of,babel-plugin-transform-parameters,babel-plugin-transform-runtime,babel-preset-envExtract for-of iterator handling to a helper (@nicolo-ribaudo)
babel-core,babel-plugin-proposal-decorators,babel-plugin-proposal-logical-assignment-operators,babel-plugin-proposal-object-rest-spread,babel-plugin-proposal-partial-application,babel-plugin-proposal-pipeline-operator,babel-plugin-transform-parameters,babel-traverseSupport more node types in generateUidBasedOnNode (@jridgewell)
Other
Remove unused
gulp-rename(@existentialism)