faster-babel-types provides a drop-in replacement for @babel/types with optimized runtime performance and TypeScript support. Currently at version 0.1.0, this package is in early active development and is designed for projects that use @babel/types and want faster type checking or creation functions. It maintains the same API surface but aims to improve speed, especially in code paths that extensively use Babel AST types. The main differentiator is performance optimization for Babel plugin authors or tools that process large ASTs. However, it is experimental and not yet stable for production use.
npm install faster-babel-typesVerified import paths — ran on the pinned version, not inferred.
Shows default import (t) and named imports for creating and checking AST nodes.
Test thoroughly with your Babel plugin or tooling; consider pinning version to avoid unexpected changes.
Replace all imports of @babel/types with faster-babel-types.
Install @babel/types as a dev dependency and use its types if needed; report type issues upstream.
npm install faster-babel-types @babel/types
Use named import: import { stringLiteral } from 'faster-babel-types'.Ensure @babel/types is installed as a direct dependency: npm install @babel/types