Skip to content

[✨] How to use Qwik with @vitejs/plugin-legacy to load legacy bundles? #46

@khromov

Description

@khromov

Is your feature request related to a problem?

I'd like to add @vitejs/plugin-legacy to my Qwik project. While adding @vitejs/plugin-legacy is possible and legacy bundles are being built, the code to load them is not correctly injected into the HTML on the SSR side. It's already well described in this older issue, where it's said that "you can inject scripts in the header", but I don't understand how we can inject the required extra JS required to load legacy bundles, is it possible to add documentation for this?

Describe the solution you'd like

A guide that shows how to integrate it properly so legacy chunks are referenced.

Describe alternatives you've considered

Not supporting older browsers.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions