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

fix: 修复无法 tree-shake 的问题 #273

Merged
merged 1 commit into from
Aug 9, 2024
Merged

Conversation

yuzheng14
Copy link
Contributor

PR 描述

即使不导入任何东西,也会打进来 300KB 左右(未开启 minify)的内容,例如:

import 'pinyin-pro'

经过 vite 打包后,会引进来大概 300 KB 左右的内容。增加 "sideEffects": false 后解决

@zh-lx
Copy link
Owner

zh-lx commented Aug 9, 2024

Thanks for PR~

@zh-lx zh-lx merged commit 2d0ac5b into zh-lx:main Aug 9, 2024
2 checks passed
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