Monday, July 01, 2019

Sucrase, a Faster Babel for Modern JS Runtimes

Sucrase, a Faster Babel for Modern JS Runtimes @ InfoQ

 a gain in speed between 4x and 20x vs. Babel. 

Imgur

Instead of compiling a large range of JS features to be able to work in Internet Explorer, Sucrase assumes that you're developing with a recent browser or recent Node.js version, so it focuses on compiling non-standard language extensions: JSX, TypeScript, and Flow.

Sucrase

alangpierce/sucrase: Super-fast alternative to Babel for when you can target modern JS runtimes @GitHub

"Sucrase is an alternative to Babel that allows super-fast development builds. Instead of compiling a large range of JS features to be able to work in Internet Explorer, Sucrase assumes that you're developing with a recent browser or recent Node.js version, so it focuses on compiling non-standard language extensions: JSX, TypeScript, and Flow. Because of this smaller scope, Sucrase can get away with an architecture that is much more performant but less extensible and maintainable."

No comments: