同样的配置 rsbuild和 vite 构建,产物rsbuild 的产物比vite 构建的大近200k, #2254
Answered
by
canyuegongzi
canyuegongzi
asked this question in
Q&A
-
最近尝试将之前的工程迁移到 rsbuid, 发现最后的产物 rsbuild 版的比较大, 以下是vite 配置
这是rsbuild 的
|
Beta Was this translation helpful? Give feedback.
Answered by
canyuegongzi
May 3, 2024
Replies: 2 comments 2 replies
-
这个可能是 tree-shaking 层面的问题,能否提供一个复现仓库看下呢,或者定位一下是哪个包的 tree-shaking 没有生效 |
Beta Was this translation helpful? Give feedback.
1 reply
-
好像知道问题所在了 vite 没有注入 polyfill, rsbuild 默认开始了 polyfill |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chenjiahan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
好像知道问题所在了 vite 没有注入 polyfill, rsbuild 默认开始了 polyfill