We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当 codeSplitting 的 js 分包策略采用 granularChunks 时,由于 shared 分组没有任何 test 限制条件,可能会发生 chunk 重复的问题:
codeSplitting
granularChunks
shared
test
umi/packages/preset-umi/src/features/codeSplitting/codeSplitting.ts
Lines 123 to 139 in 41f1908
目前得知会报错的情况:
chunk 为 null 导致 shared-nullnullnull 命名重复,出现冲突的情况 from @xierenyuan
chunk
null
shared-nullnullnull
之前我在哪个 issue 还是 discussion 看到过有人反馈会报错,找不到了
目前期望的解决方案:
去掉 shared 分组,因为它没有任何限制,难免出现无法定位的情况(如 chunk 为空)。(此方案 @xierenyuan 认为会大幅影响 CDN 覆盖率,因为产物结构有很大变化)。
给 shared 添加 test 限制。
找到 chunk 为 null 会出现问题的最小复现,尝试对 null 的使用文件路径作为 id 计算 hash 继续弥补此方案。
The text was updated successfully, but these errors were encountered:
@xierenyuan 关于文中提到的 chunk 为 null 的情况,有办法手动去创建一个最小复现来排查么,比如之前为 null 那种情况的文件路径不是可以从 _module 拿到吗,这些文件有什么特征可以以此创建一个复现么。
_module
有时间了辛苦可以看下 🌹
Sorry, something went wrong.
@xierenyuan 关于文中提到的 chunk 为 null 的情况,有办法手动去创建一个最小复现来排查么,比如之前为 null 那种情况的文件路径不是可以从 _module 拿到吗,这些文件有什么特征可以以此创建一个复现么。 有时间了辛苦可以看下 🌹
No branches or pull requests
说明
当
codeSplitting
的 js 分包策略采用granularChunks
时,由于shared
分组没有任何test
限制条件,可能会发生 chunk 重复的问题:umi/packages/preset-umi/src/features/codeSplitting/codeSplitting.ts
Lines 123 to 139 in 41f1908
目前得知会报错的情况:
chunk
为null
导致shared-nullnullnull
命名重复,出现冲突的情况 from @xierenyuan之前我在哪个 issue 还是 discussion 看到过有人反馈会报错,找不到了
目前期望的解决方案:
去掉
shared
分组,因为它没有任何限制,难免出现无法定位的情况(如chunk
为空)。(此方案 @xierenyuan 认为会大幅影响 CDN 覆盖率,因为产物结构有很大变化)。给
shared
添加test
限制。找到
chunk
为null
会出现问题的最小复现,尝试对null
的使用文件路径作为 id 计算 hash 继续弥补此方案。The text was updated successfully, but these errors were encountered: