Skip to content

emit an event when there are errors loading/preloading chunks #12080

@danielroe

Description

@danielroe

Description

I would love to be able to catch errors when preloading chunks (which often occurs when a new deployment has taken place) so that I can handle thiings appropriately.

Suggested solution

This is how we've implemented within Nuxt:

https://github.com/nuxt/nuxt/pull/19038/files#diff-7860a08e52b47fe432d19a402b062801774cefbb935172e30ce1e83a1ec6a962

Alternative

No response

Additional context

I would be very happy to implement this within Vite. It's a relatively small (and non-breaking) change

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions