-
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
fix: styled-components
plugin
#11726
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #11726 +/- ##
==========================================
- Coverage 28.98% 28.95% -0.04%
==========================================
Files 488 488
Lines 14847 14863 +16
Branches 3519 3530 +11
==========================================
- Hits 4304 4303 -1
- Misses 9784 9802 +18
+ Partials 759 758 -1
☔ View full report in Codecov by Sentry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #11338
这是 #11167 的新 PR ,由于 #11719 进行了错误、无效的修复,遂重开这个 PR 。
此 PR 包含以下内容:
修复 sc babel 插件不生效的问题。将 sc babel 插件移出到
@umijs/plugins
下面额外添加,这是因为 sc babel 插件不能和 babel preset env 配置在一起,详见 displayName is broken since v1.10.3 styled-components/babel-plugin-styled-components#261 。优化 sc babel plugin 默认配置,以在更多场景都默认好用,并添加文档。
升级 sc 依赖版本。
自动修复 qiankun 子应用切换样式丢失。
支持浏览器前缀自动降级( sc v6 正式版不再默认添加浏览器前缀,当用户配置 ie 或 legacy 选项时自动降级添加前缀)。