Packages

@babel/preset-typescript

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

Your version

7.16.5

13 Dec 2021Where it was published

7.29.7 is the newest release of 7.x.

In short

1 faster9 fixed7 changed2 internal

Release note

Thanks @chimurai and @krosenberg for your first PRs!

:eyeglasses: Spec Compliance

  • babel-cli, babel-core, babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-proposal-decorators, babel-plugin-transform-classes, babel-plugin-transform-jscript, babel-plugin-transform-parameters, babel-plugin-transform-runtime, babel-plugin-transform-spread, babel-plugin-transform-typescript, babel-preset-env: Mark class prototype as read-only (@wentout)

:bug: Bug Fix

  • babel-plugin-transform-parameters: Fix: default rest argument array elements as undefined (@The-x-Theorist)

  • babel-plugin-transform-arrow-functions, babel-traverse: Don't resolve shadowed arguments variables from functions (@The-x-Theorist)

  • babel-parser: maintain estree string literal shape when cloned (@JLHwung)

  • babel-traverse: Fix duplicate declaration error on ambient class declarations (@The-x-Theorist)

  • babel-generator: Support flow function type annotation with no parent (@krosenberg)

  • babel-plugin-transform-react-jsx: Fix JSX pragma anywhere in comment (@The-x-Theorist)

  • babel-helper-create-class-features-plugin, babel-helper-environment-visitor, babel-helper-member-expression-to-functions, babel-helper-module-transforms, babel-helper-replace-supers, babel-plugin-transform-classes, babel-traverse: Fix handling of this&co in computed keys in arrows transform (@nicolo-ribaudo)

:nail_care: Polish

  • babel-parser: Recover from shorthand assign exprs (@JLHwung)

  • babel-parser: fix: update UnexpectedPrivateField error message (@JLHwung)

:memo: Documentation

:house: Internal

  • Every package

  • babel-parser: Extend hasPlugin to accept plugin-configuration array pairs (@js-choi)

  • babel-helpers: Don't use ESM for required files in @babel/helpers tests (@nicolo-ribaudo)

  • babel-plugin-proposal-object-rest-spread, babel-traverse: Convert proposal-object-rest-spread to TS (@JLHwung)

  • babel-parser, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-optional-chaining, babel-preset-react, babel-preset-typescript: Only bundle the release build, and don't import src in tests (@nicolo-ribaudo)

  • Other

:running_woman: Performance

  • babel-parser: Improve template tokenizing (@JLHwung)

:microscope: Output optimization

  • babel-helpers, babel-plugin-proposal-async-generator-functions, babel-plugin-transform-runtime, babel-preset-env, babel-runtime-corejs2, babel-runtime: minify helpers-generated.ts (@lightmare)

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.