react/compiler/crates/react_napi
Joe Savona f33e63838d Update copyrights to reference Meta instead of Facebook
Thanks @zpao!!! This was mostly his work, i just fixed up the last bit.
2024-04-03 08:43:36 -07:00
..
src Update copyrights to reference Meta instead of Facebook 2024-04-03 08:43:36 -07:00
build.rs Update copyrights to reference Meta instead of Facebook 2024-04-03 08:43:36 -07:00
Cargo.toml s/Forget/React Compiler/ in Rust port 2024-04-02 16:49:31 -07:00
package.json s/Forget/React Compiler/ in Rust port 2024-04-02 16:49:31 -07:00
README.md s/Forget/React Compiler/ in Rust port 2024-04-02 16:49:31 -07:00
yarn.lock s/Forget/React Compiler/ in Rust port 2024-04-02 16:49:31 -07:00

react_napi

This crate uses napi-rs to expose React Compiler's analysis to JavaScript via the Node-API.

Build

Note that napi-rs is a bit finicky and doesn't offer full control over where its outputs are emitted. For consistency, be sure to build with

yarn build

To use the canonical build, which will ensure that all files are placed in the right location.