Skip to content

mattstyles/stylex-swc-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

423 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

StyleX in Rust · GitHub license npm version GitHub tag check runs 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:

Other packages:

  • design-system - Design system for the StyleX project that uses in workspace examples

About

Community NAPI-RS/SWC plugin for StyleX.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 77.9%
  • JavaScript 10.7%
  • TypeScript 9.8%
  • HTML 0.9%
  • Shell 0.6%
  • Vue 0.1%