Skip to content

Latest commit

 

History

History
95 lines (67 loc) · 4.23 KB

README.md

File metadata and controls

95 lines (67 loc) · 4.23 KB

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 finaly deprecated as of version 0.5.0 and will be removed in the next minor release. Please use the newer alternatives listed above.

Core:

Integration: