2 Repos
Compiles newer JS features such as optional chaining, nullish coalescing, class fields, and numeric separators to older syntax for broader runtime compatibility.
Distinct from Modern Syntax: Distinct from Modern Syntax: focuses on compiling modern syntax down to older syntax, not just defining modern features.
Explore 2 awesome GitHub repositories matching programming languages & runtimes · Downlevel Compilers. Refine with filters or upvote what's useful.
Sucrase is a high-speed transpilation tool that compiles modern JavaScript, TypeScript, JSX, and Flow to standard JavaScript for modern runtimes. It operates as a fast alternative to Babel, using a single-pass scanner and tokenizer that strips type annotations and applies only requested syntax transforms without building an AST or performing type checking. The tool differentiates itself through a zero-type-checking pipeline that omits type checking entirely, relying on the assumption that input code is already valid for the target runtime. It uses scanner-based tokenization and single-pass co
Compiles newer JS features such as optional chaining, nullish coalescing, class fields, and numeric separators to older syntax.
This project is a comprehensive guide and educational resource for the TypeScript language. It covers the fundamental principles of the language, including its structural type system, static type analysis, and the process of transpiling typed source files into JavaScript. The material details how to model complex data and reusable type logic using generics, conditional types, and mapped types. It also explains the use of declaration files to provide type safety for external JavaScript libraries and the integration of type checking into existing JavaScript projects via JSDoc annotations. The
Explains the process of rewriting modern language features into older JavaScript versions for legacy environment support.