Packages

@babel/preset-typescript

8.0.7 · 7 Oct 2026MIT79.9M / weekRepositoryHomepagenpmAtom feed

Your version

7.21.0

20 Feb 2023Where it was published

7.29.7 is the newest release of 7.x.

In short

9 new4 fixed3 changed

Release note

Thanks @azizghuloum, @ehoogeveen-medweb, @fwienber, and @Lioness100 for your first PRs!

:rocket: New Feature

  • babel-core, babel-helper-create-class-features-plugin, babel-plugin-proposal-class-properties, babel-plugin-proposal-private-methods, babel-plugin-proposal-private-property-in-object: feat: Implement privateFieldsAsSymbols assumption for classes (@fwienber)

  • babel-helper-create-regexp-features-plugin, babel-plugin-proposal-regexp-modifiers, babel-standalone: feat: Support regexp modifiers proposal (@liuxingbaoyu)

  • babel-cli, babel-core, babel-generator, babel-plugin-transform-destructuring, babel-plugin-transform-modules-commonjs, babel-plugin-transform-react-jsx, babel-traverse: feat: Generate sourcemaps of friendly call frames (@liuxingbaoyu)

  • babel-parser, babel-types: [ts] Support const modifier in type parameters (@nicolo-ribaudo)

  • babel-generator, babel-helpers, babel-parser, babel-plugin-proposal-decorators, babel-plugin-syntax-decorators, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime: Implement decorators as presented at 2023-01 TC39 meeting (@nicolo-ribaudo)

  • babel-parser: Parser option to allow new.target outside functions (@overlookmotel)

  • babel-parser: Add annexb: false parser option to disable Annex B (@nicolo-ribaudo)

  • babel-core: feat: Support .cts as configuration file (@liuxingbaoyu)

  • babel-generator, babel-parser, babel-plugin-transform-typescript: [ts] Support export type * from (@nicolo-ribaudo)

:bug: Bug Fix

  • babel-plugin-transform-typescript: [ts5.0] Better inlining of constants in enums (@liuxingbaoyu)

  • babel-core: handling circular/shared structures in deep-clone (@azizghuloum)

  • babel-helper-create-class-features-plugin, babel-plugin-proposal-class-properties, babel-plugin-proposal-class-static-block, babel-plugin-proposal-private-methods, babel-plugin-transform-classes, babel-plugin-transform-new-target: Preserve class elements comments in class transform (@JLHwung)

  • babel-parser, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types, babel-types: [ts] Fix restrictions for optional parameters (@nicolo-ribaudo)

:nail_care: Polish

  • babel-parser: polish: improve "await as identifier" error in modules (@JLHwung)

:house: Internal

:microscope: Output optimization

  • babel-plugin-transform-typescript: [ts] Handle exponentiation operator in constant folding (@ehoogeveen-medweb)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.