-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(es/react): Support script in automatic runtime #7126
Conversation
bb8e97a
to
145d357
Compare
jsx-runtime
with script source type
init: Some(Box::new(Expr::Call(CallExpr { | ||
span: DUMMY_SP, | ||
callee: Callee::Expr(Box::new(Expr::Ident(Ident { | ||
span: DUMMY_SP, |
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 should have SyntaxContext
with unresolve_mark
as the only Mark
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.
Thanks, done
145d357
to
ee89b4b
Compare
ee89b4b
to
6aba7c7
Compare
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.
Thanks! I'll merge this along with other breaking changes.
swc-bump:
- swc_ecma_transforms_react --breaking
jsx-runtime
with script source typeThere 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.
Automated review comment generated by auto-rebase script
Description:
Inject
const { jsx: _jsx} = require("react/jsx-runtime")
when sourceType isscript
Related issue: