-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: support react/jsx-runtime #12219
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
有这个需求的原因是啥,你们有 v16.14+ 的项目在用 umi 4 吗,我理解不是升级的项目的话, umi 4 的项目已经绝大多数都是 18 或 17 了。 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12219 +/- ##
==========================================
- Coverage 28.41% 28.41% -0.01%
==========================================
Files 492 492
Lines 15166 15156 -10
Branches 3626 3620 -6
==========================================
- Hits 4310 4306 -4
+ Misses 10084 10078 -6
Partials 772 772 ☔ View full report in Codecov by Sentry. |
@fz6m 背景是,之前内网答疑同学遇到的,老项目升级,可能由于加了 babel 插件没有写 |
@@ -348,12 +348,12 @@ PORT=8888 umi dev | |||
}, | |||
}); | |||
|
|||
const isGTEReact17 = | |||
const isGTEReact16 = |
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.
isGTEReact16 > shouldUseAutomaticRuntime
52baa94
to
8f7def0
Compare
支持 React 16.14.0 版本以上使用全新的转换,可以单独使用 JSX 而无需引入 React。