Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mofeiZ/bootleg-react-compiler
Now that react compiler has been released, let's write an unofficial alternative version in 20 minutes.
https://github.com/mofeiZ/bootleg-react-compiler
Last synced: 12 days ago
JSON representation
Now that react compiler has been released, let's write an unofficial alternative version in 20 minutes.
- Host: GitHub
- URL: https://github.com/mofeiZ/bootleg-react-compiler
- Owner: mofeiZ
- License: mit
- Created: 2024-05-17T21:58:23.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-17T23:42:43.000Z (6 months ago)
- Last Synced: 2024-05-18T00:31:42.750Z (6 months ago)
- Language: TypeScript
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## (Bootlegged) React Compiler deep dive for ReactConf 2024
`runner` is an interactive compiler runner, which has the following features.
- reads real-time edits to `input.js`
- `debugger mode`, which lets a user step through events and passes compiler (code in `demo`) with source code highlighting.```sh
# Install deps
yarn# Build interactive runner
yarn build# Start interactive runner
yarn start# Print help for runner
yarn start help# s: step to next event in current pass
# f: finish all event in current pass
# n: next pass
# r: reset pass/step state; show compiled output
````demo` is the core compiler logic and is a standalone babel plugin.