Skip to content

[RFC] SWC Transformation Plugin (Path to Next.js Support) #30

Description

@liovic

Context:
react-state-basis currently relies on a Babel plugin for structural semantic extraction (hook labeling). While this works for standard Vite/CRA setups, it’s a blocker for Next.js and modern SWC-based pipelines.

The Goal:
We need to port the logic from src/babel-plugin.js to an SWC plugin (Rust). This will allow the auditor to automatically label hooks without forcing users to move back to Babel.

Why I'm not doing it yet:
I am currently focused on the v0.4.x roadmap (Internal Signal Engine, Ring Buffers, and Density Filtering) to ensure the analysis math is bulletproof before opening the floodgates to Next.js users.

Looking for:
Anyone with experience in Rust/SWC plugin development who wants to help build the "bridge" for the modern React ecosystem!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions