Sucrase is a JavaScript compiler that provides a super-fast alternative to Babel for development builds targeting modern runtimes.
Sucrase solves the problem of slow compilation during development by narrowing its scope dramatically. Rather than compiling a broad range of JavaScript features for compatibility with older environments, it assumes you are developing with a recent browser or Node.js version and focuses exclusively on transforming non-standard language extensions: JSX, TypeScript, and Flow. This smaller scope enables a simpler, more performant architecture. The tool's parser is forked from Babel's parser but trimmed to handle only this focused subset of transformations.
Sucrase suits developers who work with modern JavaScript environments and want faster build times during development. It is particularly valuable in projects using TypeScript, JSX, or Flow where compilation speed matters more than broad backward compatibility. The tool has been validated against substantial real-world codebases, successfully building the Benchling frontend, Babel itself, React, TSLint, Apollo client, and decaffeinate—totaling about one million lines of code with all tests passing. If your project targets recent JavaScript runtimes and you need faster development builds, Sucrase can meaningfully accelerate your workflow compared to Babel.
The project maintains active development with regular updates and bug fixes. The codebase shows consistent attention to performance optimization and correctness. The tool includes comprehensive testing infrastructure and maintains a public benchmark suite to track performance characteristics. Documentation is well-maintained with an interactive online playground available for experimentation.