@babel/preset-typescript
8.0.7 · 7 Oct 2026MIT79.9M / weekRepositoryHomepagenpmAtom feed
7.29.7 is the newest release of 7.x.
In short
17 new1 faster18 fixed11 changed2 internal
Release note
:eyeglasses: Spec Compliance
babel-types: throw a TypeError if identifier validation fails. (@dentrado)
babel-parser: fix: Exclude catch clause from let identifier error. (@gonzarodriguezt)
babel-parser: [parser] Exception to 8 and 9 in tagged template. (@pnowak)
babel-parser: Allow duplicate
__proto__keys in patterns, simple case (#6705). (@alejo90)
:rocket: New Feature
babel-generator, babel-helper-create-class-features-plugin, babel-parser, babel-plugin-transform-typescript, babel-preset-typescript, babel-types: Add support for TS declare modifier on fields. (@nicolo-ribaudo)
babel-core, babel-parser, babel-preset-typescript: @babel/parser error recovery. (@nicolo-ribaudo)
babel-core: Add support for .cjs config files. (@nicolo-ribaudo)
babel-core: Add support for babel.config.json. (@devongovett)
babel-core: feat: if code frame error is on a single line, highlight the whole path. (@SimenB)
babel-plugin-syntax-top-level-await, babel-preset-env: Create @babel/plugin-syntax-top-level-await. (@nicolo-ribaudo)
babel-helper-builder-react-jsx, babel-plugin-transform-react-jsx, babel-preset-react: [transform-react-jsx] Add useSpread option to transform JSX. (@ivandevp)
babel-generator, babel-parser, babel-plugin-proposal-decorators, babel-plugin-syntax-flow, babel-types: Flow enums parsing. (@gkz)
babel-plugin-transform-function-name, babel-plugin-transform-modules-umd, babel-preset-env: Changes UMD callsite to be more likely to pass in the intended object.. (@MicahZoltu)
babel-parser: Create parser plugin "topLevelAwait". (@nicolo-ribaudo)
babel-parser: [parser] Enable "exportNamespaceFrom" by default. (@nicolo-ribaudo)
babel-parser: [parser] Add support for private fields in TypeScript. (@nicolo-ribaudo)
babel-generator, babel-parser, babel-types: add assertions signature for TypeScript. (@tanhauhau)
babel-cli, babel-register: Make dir for babel --out-file. (@TrySound)
babel-cli: Closes #8326, add back --quiet option.. (@chris-peng-1244)
:bug: Bug Fix
babel-helpers, babel-plugin-proposal-async-generator-functions, babel-plugin-proposal-function-sent, babel-preset-env: Correctly delegate .return() in async generator. (@nicolo-ribaudo)
babel-helper-module-transforms, babel-plugin-transform-modules-commonjs: Don't throw when destructuring into a var named as an import. (@nicolo-ribaudo)
babel-plugin-transform-modules-systemjs: fix: remove ExportNamedDeclaration when the specifier is empty. (@JLHwung)
babel-parser: [TS] Parse calls with type args in optional chains. (@nicolo-ribaudo)
babel-parser: fixed missing errors on assignment pattern in object expression. (@vivek12345)
babel-parser: [parser] Parse only modifiers of actual methods. (@gonzarodriguezt)
babel-plugin-transform-typescript: [TS] Correctly transform computed strings and templates in enums. (@nicolo-ribaudo)
babel-core: Fix: inputSourceMap should work when it is an external file. (@JLHwung)
babel-core: fix: remove filename annotation in buildCodeFrameError. (@JLHwung)
babel-plugin-proposal-decorators: [decorators] fix: support string literal properties. (@mwhitworth)
babel-helpers, babel-plugin-proposal-dynamic-import, babel-plugin-transform-modules-commonjs, babel-preset-env: fix: _interopRequireWildcard should only cache objects. (@samMeow)
babel-traverse: [traverse] Allow skipping nodes inserted with .replaceWith(). (@nicolo-ribaudo)
babel-preset-env: Inject core-js@3 imports in Program:exit instead of on post(). (@nicolo-ribaudo)
babel-generator: Fix generator missing parens around an arrow returning function type. (@existentialism)
babel-plugin-transform-async-to-generator, babel-preset-env, babel-traverse: Don't use args rest/spread to hoist super method calls. (@nicolo-ribaudo)
:nail_care: Polish
babel-plugin-transform-classes, babel-plugin-transform-regenerator, babel-preset-env: [preset-env] Don't use async-to-generator when already using regenerator. (@nicolo-ribaudo)
babel-helpers, babel-plugin-transform-modules-commonjs, babel-preset-env: fix(babel‑helpers/interopRequireWildcard): Avoid double nullish check. (@ExE-Boss)
babel-register: fix: disable caching when babel could not read/write cache. (@JLHwung)
:house: Internal
babel-cli, babel-node: chore: remove output-file-sync dependency. (@JLHwung)
babel-register: chore: bump source-map-support to 0.5.14. (@JLHwung)
babel-helper-create-regexp-features-plugin, babel-plugin-proposal-unicode-property-regex, babel-plugin-transform-dotall-regex, babel-plugin-transform-named-capturing-groups-regex, babel-plugin-transform-unicode-regex, babel-preset-env: Merge multiple regex transform plugin. (@JLHwung)
babel-preset-env: chore: update web.immediate support fixtures. (@JLHwung)
babel-helper-module-imports: Use .find instead of .filter to get targetPath in ImportInjector. (@Andarist)
Other
Test node@13 on circle. (@existentialism)
chore: replace outdated travis-ci.org badges [ci skip]. (@JLHwung)
chore: test against Node.js 13. (@JLHwung)
Add master branch workflow for test262 tests. (@jbhoosreddy)
babel-runtime: docs: add homepage link. (@DanArthurGallagher)
babel-helper-annotate-as-pure, babel-helper-bindify-decorators, babel-helper-builder-binary-assignment-operator-visitor, babel-helper-builder-react-jsx, babel-helper-call-delegate, babel-helper-define-map, babel-helper-explode-assignable-expression, babel-helper-explode-class, babel-helper-function-name, babel-helper-get-function-arity, babel-helper-hoist-variables, babel-helper-member-expression-to-functions, babel-helper-module-imports, babel-helper-module-transforms, babel-helper-optimise-call-expression, babel-helper-remap-async-to-generator, babel-helper-replace-supers, babel-helper-simple-access, babel-helper-split-export-declaration, babel-helper-wrap-function, babel-helpers, babel-template: Bump babel-types to ^7.6.3. (@JLHwung)
:running_woman: Performance
babel-traverse: Traverse performance. (@JLHwung)
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.