Skip to content

[Feature Request] loading chunk failed期望能自行处理错误 #13255

Description

@l11180730

Background

umijs 4.x 切换路由的时候, 有时候会出现loading chunk failed的情况或者加载的chunk 会出现文件不完整,这时候不管怎么刷新都不行,将这个chunk的js文件转成url,比如https://33.anxinbb.com/3444.js在微信中打开也不完整,但改成https://33.anxinbb.com/3444.js?t=1232233就能正常访问,或者在微信--我--设置--通用--存储空间--清理缓存,然后重新刷新,这时候也能正确加载,

Proposal

期望遇到loading chunk failed重新加载的时候我可以自行修改加载的chunk url,往url后追加随机数

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions