-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
feat(compiler): Support MetaProperty #29752
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Comparing: c2ae9e2...3e3b017 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
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.
looks great, thank you!
compiler/packages/babel-plugin-react-compiler/src/Inference/InferReferenceEffects.ts
Outdated
Show resolved
Hide resolved
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.
Sorry, i spoke too soon. I just double-checked what other meta properties there are and realized it isn't guaranteed to be an immutable object.
compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts
Outdated
Show resolved
Hide resolved
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 great!
Summary
See #29737
How did you test this change?
As the feature requires module support and the test runner does currently not support running tests as modules, I could only test it via playground.