{"repo":"alangpierce/sucrase","free":true,"listed":false,"github":"https://github.com/alangpierce/sucrase","clone":"git clone https://github.com/alangpierce/sucrase.git","description":"Super-fast alternative to Babel for when you can target modern JS runtimes","language":"TypeScript","stars":5870,"topics":["typescript","jsx","javascript","compiler","es-modules"],"license":"MIT","category":"dev-tools","readme_excerpt":"Sucrase Try it out Quick usage Using the ts-node integration: Project overview 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. Sucrase's parser is forked from Babel's parser (so Sucrase is indebted to Babel and wouldn't be possible without it) and trims it down to a focused subset of what Babel solves. If it fits your use case, hopefully Sucrase can speed up your development experience! Sucrase has been extensively tested. It can successfully build the Benchling frontend code, Babel, React, TSLint, Apollo client, and decaffeinate with all tests passing, about 1 million lines of code total. Sucrase is about 20x faster than Babel. Here's one measurement of how Sucrase compares with other tools when compiling the Jest codebase 3 times, about 360k lines of code total: Details: Measured on July 2022. Tools run in single-threaded mode without warm-up. See the benchmark code for methodology and caveats. Transforms The main configuration option in Sucrase is an array of transform names. These transforms are available: jsx : Enables JSX syntax. By default,","default_branch":null,"files":null,"tree":[],"storefront":"/r/alangpierce","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alangpierce/sucrase/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}