Skip to content
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: ✨ disable emotion source map in prod #1494

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

stormslowly
Copy link
Member

.

@sorrycc
Copy link
Member

sorrycc commented Aug 12, 2024

为啥?因为实现原因?正常处理感觉应该遵循用户的 devtool 配置。

@stormslowly
Copy link
Member Author

官方 production 默认关闭 https://emotion.sh/docs/source-maps

emotion 的 source map 是直接 embed 运行时写入到 style 的 css 文件中的,生产开启徒增尺寸。
image

@stormslowly stormslowly merged commit e8c7e13 into master Aug 14, 2024
12 checks passed
@stormslowly stormslowly deleted the fix/emption_disable_sourcemal_in_prod branch August 14, 2024 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants