Just confirming: is react-compiler-runtime a prod or dev dependency?
#41
Answered
by
faradaytrs
TowhidKashem
asked this question in
General Questions
|
I think I know the answer given the name but normally we associate react compiler with build time activities which are usually dev dependencies. But with "runtime" in the name, this one sounds like it's needed in prod. Can someone please confirm if this is the case? |
Answered by
faradaytrs
Dec 4, 2024
Replies: 2 comments
|
yes react-compiler-runtime should be available in runtime, this package is only required for react builds lower then 19, react 19 build already includes all necessary runtime code. |
0 replies
Answer selected by
TowhidKashem
|
It's not particularly surprising for a compiler to have a runtime element. Many compiled languages have a runtime GC for instance. In the case of the React compiler, I guess it is mainly the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes react-compiler-runtime should be available in runtime, this package is only required for react builds lower then 19, react 19 build already includes all necessary runtime code.