Packages

@babel/preset-typescript

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

Your version

7.23.0

25 Sep 2023Where it was published

7.29.7 is the newest release of 7.x.

In short

11 new1 fixed3 changed

Release note

Thanks @lorenzoferre and @RajShukla1 for your first PRs!

:rocket: New Feature

  • babel-plugin-proposal-import-wasm-source, babel-plugin-syntax-import-source, babel-plugin-transform-dynamic-import: Support transforming import source for wasm (@nicolo-ribaudo)

  • babel-helper-module-transforms, babel-helpers, babel-plugin-proposal-import-defer, babel-plugin-syntax-import-defer, babel-plugin-transform-modules-commonjs, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime, babel-standalone: Implement import defer proposal transform support (@nicolo-ribaudo)

  • babel-generator, babel-parser, babel-types: Implement import defer parsing support (@nicolo-ribaudo)

  • babel-generator, babel-parser, babel-types: Add parsing support for the "source phase imports" proposal (@nicolo-ribaudo)

  • babel-generator, babel-helper-module-transforms, babel-parser, babel-plugin-transform-dynamic-import, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-systemjs, babel-traverse, babel-types: Add createImportExpressions parser option (@JLHwung)

  • babel-standalone: Pass through nonce to the transformed script element (@JLHwung)

  • babel-helper-function-name, babel-helper-member-expression-to-functions, babel-helpers, babel-parser, babel-plugin-proposal-destructuring-private, babel-plugin-proposal-optional-chaining-assign, babel-plugin-syntax-optional-chaining-assign, babel-plugin-transform-destructuring, babel-plugin-transform-optional-chaining, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime, babel-standalone, babel-types: Add support for optional chain in assignments (@nicolo-ribaudo)

  • babel-helpers, babel-plugin-proposal-decorators: Implement the "decorator metadata" proposal (@nicolo-ribaudo)

  • babel-traverse, babel-types: Add t.buildUndefinedNode (@liuxingbaoyu)

  • babel-preset-typescript: Add rewriteImportExtensions option to TS preset (@nicolo-ribaudo)

  • babel-parser: Allow TS tuples to have both labeled and unlabeled elements (@yukukotani)

:bug: Bug Fix

  • babel-plugin-transform-block-scoping: fix: transform-block-scoping captures the variables of the method in the loop (@liuxingbaoyu)

:nail_care: Polish

:microscope: Output optimization

  • babel-core, babel-helper-module-transforms, babel-plugin-transform-async-to-generator, babel-plugin-transform-classes, babel-plugin-transform-dynamic-import, babel-plugin-transform-function-name, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-umd, babel-plugin-transform-parameters, babel-plugin-transform-react-constant-elements, babel-plugin-transform-react-inline-elements, babel-plugin-transform-runtime, babel-plugin-transform-typescript, babel-preset-env: Inline exports.XXX = update in simple variable declarations (@nicolo-ribaudo)

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.