-
Notifications
You must be signed in to change notification settings - Fork 47.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[compiler] Consume compiled lib in react 18 app #31166
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Comparing: de43d56...db62a06 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
@@ -11,13 +11,16 @@ | |||
}, | |||
"dependencies": { | |||
"react": "^18.3.1", | |||
"react-dom": "^18.3.1" | |||
"react-compiler-runtime": "0.0.0-experimental-8d8e73f-20241009", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only required for the app code, not to make the library work, right? Since the library has its own dependency on the compiler runtime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup exactly
Add missing directory to prettierignore. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31168). * #31167 * #31166 * #31165 * #31164 * #31148 * __->__ #31168
Scaffolds an empty library to test backwards compatibility with the compiler enabled. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31148). * #31167 * #31166 * #31165 * #31164 * __->__ #31148 * #31168
Scaffold empty apps to consume the fixture lib. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31164). * #31167 * #31166 * #31165 * __->__ #31164 * #31148 * #31168
Add and compile a simple hook with rollup and babel.
`yarn dev` doesn't work quite correctly because of an outdated assumption in vite-plugin-react, I have a [PR open](vitejs/vite-plugin-react#374) to address. However `yarn build` and `yarn preview` does work as expected.
Add and compile a simple hook with rollup and babel. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31165). * #31167 * #31166 * __->__ #31165
it works --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31167). * __->__ #31167 * #31166 * #31165
yarn dev
doesn't work quite correctly because of an outdated assumption in vite-plugin-react, I have a PR open to address.However
yarn build
andyarn preview
does work as expected.Stack created with Sapling. Best reviewed with ReviewStack.