Registry / utility / swc-ecma-transforms-react

swc-ecma-transforms-react

JSON →
library43.0.0rscratesunverified

rust port of babel and closure compiler.

# Cargo.toml [dependencies] swc_ecma_transforms_react = "43.0.0"
INSTALL
IMPORT
SIG · SWC-ECMA-TRANSFORM
S
swc-ecma-transforms-react
utilityrustv43.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

react
✓ use swc_ecma_transforms_react::react;

Apply React JSX transform to a program.

use swc_ecma_transforms_react::react; use swc_ecma_ast::Program; let program = Program::default(); let transformed = react(program, Default::default()); println!("Transformed");
Debug
Known issues
gotchaRequires specific swc compiler setup
fix
Ensure you have swc_core and proper plugin configuration
affects: >=0.0.0
Upgrade
Version history
43.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
10
Resources
swc-ecma-transforms-react — cargo add swc-ecma-transforms-react · libregistry