swc
Rust-based platform for the Web
Curious how to contribute to SWC? Learn to set up the development environment, install Rust and pnpm, and run tests with feature flags to validate your contributions.
SWC Compatibility Transforms for Older JavaScript Versions: The Complete GuideExplore SWC compatibility transforms for older JavaScript versions. Downgrade modern ECMAScript syntax to ES2022 down to ES3 with SWC's powerful tools. Read the complete guide.
How SWC Handles Source Maps and Debugging Support: A Deep Dive into the ArchitectureDiscover how SWC handles source maps and debugging. Explore its centralized SourceMap architecture, byte-to-line conversion, V3 source map emission, and WebAssembly plugin interface.
SWC's AST Structure and Node Types: A Complete Guide for ToolingExplore SWC's AST structure and node types. Discover how its enum-based design in swc_ecma_ast ensures compile-time safety for transforming code with visitor patterns.
How to Troubleshoot SWC Parsing Errors for TypeScript and Modern JavaScript SyntaxTroubleshoot SWC parsing errors for TypeScript and JavaScript. Learn to examine spans, drain lexer diagnostics, and trace execution to fix issues efficiently.
How to Migrate Babel Projects to SWC: Configuration Differences and Compatibility GuideEasily migrate Babel projects to SWC. Learn configuration differences, map presets, and ensure compatibility with our simple guide. Switch to SWC today for faster builds.
How to Build and Run SWC Plugin Transformations with WebAssemblyLearn to build and run SWC plugin transformations using WebAssembly. Scaffold, compile, and load WASM plugins efficiently with SWC's runtime for custom code transformations.
How to Implement Custom Transformations Using SWC's Visitor and Fold PatternsLearn to implement custom transformations in SWC using the Visitor and Fold patterns. Mutate or produce new AST nodes with generated traits for powerful code manipulation.
How to Configure SWC Preset-Env for Targeted Browser Support and Polyfill ManagementConfigure SWC preset-env for targeted browser support and polyfill management. Learn static and dynamic polyfill injection using `.swcrc` or Rust Config.
How SWC's Resolver Pass Handles Identifier Scope Resolution and Hygiene TrackingDiscover how SWC's resolver pass uses SyntaxContext and lexical scopes for accurate identifier resolution and hygienic variable renaming across scopes.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →