# swc | swc | Knowledge Base | Instagit

Rust-based platform for the Web

GitHub Stars: 33.8k

Repository: https://github.com/swc-project/swc

---

## Articles

### [How to Contribute to SWC: Setting Up the Development Environment and Running Tests](/swc-project/swc/contribute-swc-setup-development-environment-run-tests)

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.

- Tags: how-to-guide
- Published: 2026-06-15

### [SWC Compatibility Transforms for Older JavaScript Versions: The Complete Guide](/swc-project/swc/swc-compatibility-transforms-older-javascript-versions)

Explore 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.

- Tags: how-to-guide
- Published: 2026-06-15

### [How SWC Handles Source Maps and Debugging Support: A Deep Dive into the Architecture](/swc-project/swc/how-swc-handle-source-maps-debugging-support)

Discover how SWC handles source maps and debugging. Explore its centralized SourceMap architecture, byte-to-line conversion, V3 source map emission, and WebAssembly plugin interface.

- Tags: deep-dive
- Published: 2026-06-15

### [SWC's AST Structure and Node Types: A Complete Guide for Tooling](/swc-project/swc/swc-ast-structure-node-types-tooling)

Explore 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.

- Tags: deep-dive
- Published: 2026-06-15

### [How to Troubleshoot SWC Parsing Errors for TypeScript and Modern JavaScript Syntax](/swc-project/swc/troubleshoot-swc-parsing-errors-typescript-modern-javascript)

Troubleshoot SWC parsing errors for TypeScript and JavaScript. Learn to examine spans, drain lexer diagnostics, and trace execution to fix issues efficiently.

- Tags: how-to-guide
- Published: 2026-06-15

### [How to Migrate Babel Projects to SWC: Configuration Differences and Compatibility Guide](/swc-project/swc/migrate-babel-projects-swc-configuration-differences-compatibility)

Easily migrate Babel projects to SWC. Learn configuration differences, map presets, and ensure compatibility with our simple guide. Switch to SWC today for faster builds.

- Tags: migration-guide
- Published: 2026-06-15

### [How to Build and Run SWC Plugin Transformations with WebAssembly](/swc-project/swc/build-run-swc-plugin-transformations-webassembly)

Learn to build and run SWC plugin transformations using WebAssembly. Scaffold, compile, and load WASM plugins efficiently with SWC's runtime for custom code transformations.

- Tags: how-to-guide
- Published: 2026-06-15

### [How to Implement Custom Transformations Using SWC's Visitor and Fold Patterns](/swc-project/swc/implement-custom-transformations-swc-visitor-fold-patterns)

Learn 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.

- Tags: how-to-guide
- Published: 2026-06-15

### [How to Configure SWC Preset-Env for Targeted Browser Support and Polyfill Management](/swc-project/swc/configure-swc-preset-env-browser-support-polyfill-management)

Configure SWC preset-env for targeted browser support and polyfill management. Learn static and dynamic polyfill injection using `.swcrc` or Rust Config.

- Tags: how-to-guide
- Published: 2026-06-15

### [How SWC's Resolver Pass Handles Identifier Scope Resolution and Hygiene Tracking](/swc-project/swc/how-swc-resolver-pass-handle-identifier-scope-resolution-hygiene-tracking)

Discover how SWC's resolver pass uses SyntaxContext and lexical scopes for accurate identifier resolution and hygienic variable renaming across scopes.

- Tags: internals
- Published: 2026-06-15

