@babel/preset-typescript
8.0.7 · 7 Oct 2026MIT79.9M / weekRepositoryHomepagenpmAtom feed
7.29.7 is the newest release of 7.x.
In short
3 new1 faster25 fixed7 changed3 internal
Release note
Thanks @bradzacher, @bz2, @ChALkeR, @FauxFaux, @fedeci, @karansapolia, @panzarino, @shrinktofit, and @Zalathar for your first PRs!
:eyeglasses: Spec Compliance
babel-parser: spec: disable await binding identifier within static block (@JLHwung)
babel-helper-create-class-features-plugin, babel-helpers, babel-plugin-proposal-private-methods, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime: fix: throw error when accessing private method without a getter (@fedeci)
babel-plugin-transform-computed-properties, babel-plugin-transform-shorthand-properties: fix: correctly transform
__proto__properties (@ExE-Boss)
:bug: Bug Fix
babel-plugin-proposal-class-properties, babel-traverse: Fix class fields when
super()is in a default param (@nicolo-ribaudo)babel-plugin-proposal-class-properties, babel-plugin-transform-classes: Define class elements in the correct order (@nicolo-ribaudo)
babel-parser, babel-template: Permit %%placeholder%% in left-hand-side of a let declaration (@Zalathar)
babel-core, babel-helper-transform-fixture-test-runner, babel-register: Don't use
require()in ESM files (@nicolo-ribaudo)babel-parser: (ts) Raise syntax error for an abstract method in non-abstract class (@sosukesuzuki)
babel-parser: fix(parser): throw error with wrong typescript 'export declare' (@fedeci)
babel-parser: Raise recoverable error for await expressions in sync functions (@sosukesuzuki)
babel-parser: fix: start TypePredicate node after returnToken (@JLHwung)
babel-parser: @babel/preset-typescript: fix tsx assigment issue (@Zzzen)
babel-parser: [ts]Add optional property to OptionalCallExpression node that has type arguments (@sosukesuzuki)
babel-helpers, babel-plugin-transform-classes: Avoid hitting
__proto__in_inheritsLoose(@ChALkeR)babel-generator: fix: avoid line breaks between class members head and key (@JLHwung)
babel-register: fix: babel-register transform internal dependencies (@overlookmotel)
babel-node: fix: place _babel-node after process.execArgv (@JLHwung)
babel-types: fix: cloneNode(deep, withoutLoc) handles absent comments (@FauxFaux)
babel-types: Use isIdentifierChar instead of regex for toIdentifier (@mischnic)
babel-plugin-transform-modules-systemjs: [systemjs] Fix: export star alongside with named export (@shrinktofit)
babel-plugin-transform-for-of: Transform labeled
for-ofinside bracelessifstatement (@nicolo-ribaudo)babel-helper-create-class-features-plugin, babel-helper-replace-supers, babel-plugin-transform-classes: Correctly access shadowed class binding in
super.*(@Zzzen)babel-helper-module-imports, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-jsx: Load
jsx-runtimeafter existing imports (@nicolo-ribaudo)
:nail_care: Polish
babel-helper-transform-fixture-test-runner, babel-parser, babel-preset-env: refactor: raise AwaitNotInAsyncContext when an AwaitExpression will be parsed (@JLHwung)
babel-cli, babel-core, babel-parser: Recover from "missing semicolon" errors (@nicolo-ribaudo)
babel-helper-create-class-features-plugin, babel-plugin-proposal-private-methods: Add
#to the private name in "write-only" errors (@nicolo-ribaudo)babel-helper-compilation-targets, babel-preset-env: fix: print warning messages to stderr (@JLHwung)
babel-code-frame: fix(code-frame): do not pad gutter of empty lines (@SimenB)
:memo: Documentation
Other
Add " 📢 Deprecation" to the changelog labels (@nicolo-ribaudo)
Every package
docs: add package-specific documentation links (@DanArthurGallagher)
:house: Internal
babel-traverse, babel-types: Use native ESM for dev scripts (@karansapolia)
babel-register: babel-register run default register with global module cache (@overlookmotel)
Other
Add
yarn-plugin-conditionsto update Babel 8 dependencies (@nicolo-ribaudo)test: reuse lodash library within eslint tests (@armano2)
Remove remaining references to lerna (@nicolo-ribaudo)
babel-generator, babel-preset-env: fix: allow to execute util scripts (@armano2)
babel-core, babel-helper-compilation-targets, babel-plugin-transform-classes, babel-plugin-transform-function-name, babel-plugin-transform-parameters, babel-plugin-transform-regenerator, babel-preset-env: Tweak helper compilation targets (@JLHwung)
:microscope: Output optimization
babel-plugin-transform-modules-commonjs, babel-plugin-transform-template-literals, babel-plugin-transform-unicode-escapes, babel-preset-env: Declare template objects inline (@nicolo-ribaudo)
babel-plugin-transform-react-jsx: Optimize jsx spreads of object expressions (@bz2)
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.