Skip to content

Dwlad90/stylex-swc-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StyleX in Rust · GitHub license npm version GitHub Actions Workflow Status

This is a monorepo for an unofficial napi-rs compiler and an SWC plugin for StyleX. Using SWC allows us to completely ditch Babel and make StyleX faster.

Key Benefits:

  • Faster build times by leveraging NAPI-RS/SWC instead of Babel.
  • Seamless integration with Next.js SWC Compiler.
  • Almost 100% compatibility with official StyleX tests.

This is specifically useful for Next.js projets as it allows us to use SWC Next.js Compiler.

Project Structure

This project is organized into several packages:

Core:

Integration:

Utilities:

  • stylex-shared - Shared Rust codebase for the StyleX RS compiler and SWC plugin.

  • path-resolver - Path handling and resolving utilities for the StyleX NAPI-RS / SWC plugin.

  • test-parser - Parser for StyleX repo Jest tests that helps to understand last changes and keeps the project up to date

Internal Configurations:

Deprecated Packages

Warning

The packages below are deprecated as of version 0.3.0 and may be removed in the future. Please use the newer alternatives listed above.

Core:

Integration: