Packages

@babel/preset-typescript

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

Your version

7.16.0

29 Oct 2021Where it was published

7.29.7 is the newest release of 7.x.

In short

9 new1 faster6 fixed8 changed

Release note

:eyeglasses: Spec Compliance

  • babel-helpers, babel-plugin-proposal-async-generator-functions, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime: Await promises from sync iterators with for-await (@nicolo-ribaudo)

:rocket: New Feature

  • babel-generator, babel-parser, babel-plugin-transform-typescript, babel-types: Support TypeScript 4.5 type-only import/export specifiers (@sosukesuzuki)

  • babel-parser: feat: support startColumn option (@JLHwung)

  • babel-helper-fixtures, babel-helper-transform-fixture-test-runner, babel-parser, babel-plugin-syntax-typescript, babel-preset-typescript: Handle .mts and .cts files in @babel/preset-typescript (@nicolo-ribaudo)

  • Other

  • babel-generator, babel-parser, babel-plugin-proposal-pipeline-operator, babel-plugin-syntax-pipeline-operator: Caret topic (pipe operator) (@js-choi)

  • babel-compat-data, babel-generator, babel-parser, babel-preset-env, babel-types: Enable class static blocks by default (@sosukesuzuki)

  • babel-helper-skip-transparent-expression-wrappers, babel-plugin-proposal-optional-chaining: add skipTransparentExprWrapperNodes helper (@lightmare)

  • babel-traverse, babel-types: Add aliases for Standardized, TypeScript, and Flow (@jridgewell)

:bug: Bug Fix

  • babel-parser, babel-plugin-transform-typescript: [ts] Support private methods overloads (@nicolo-ribaudo)

  • babel-plugin-transform-typescript: fix: allow enum member without initializer after non-literal member (@lightmare)

  • babel-core, babel-helper-create-class-features-plugin, babel-plugin-transform-typescript: Don't transform declare class in plugin-proposal-class-properties (@forivall)

  • babel-compat-data, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-transform-react-constant-elements, babel-preset-env, babel-traverse: Implement @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression (@JLHwung)

  • babel-plugin-proposal-async-generator-functions, babel-traverse: Restore traversal context after enter / traverse (@JLHwung)

  • babel-traverse, babel-types: Mark static block as FunctionParent (@JLHwung)

  • babel-generator: Fix missing inner comments in function expressions (@overlookmotel)

:house: Internal

  • Every package

  • Other

  • babel-helper-fixtures, babel-plugin-proposal-class-properties, babel-plugin-transform-runtime, babel-preset-react: Force loading plugins/presets from the monorepo in tests (@nicolo-ribaudo)

  • babel-types: [ts] precise return type on createTypeAnnotationBasedOnTypeof (babel-types) (@lightmare)

  • babel-helpers: minor: remove ineffectual helper names filter (@lightmare)

  • babel-core, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-jsx, babel-types: Improve transform-react-jsx typings (@JLHwung)

:running_woman: Performance

  • babel-types: Simplify (transpiled) babel-types builder wrappers (@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.