Skip to content

@vitejs/plugin-legacy support only output legacy bundle #9050

@xiaoxiangmoe

Description

@xiaoxiangmoe

Description

In vue-cli v5, vue-cli-service build --no-module will only output the legacy bundles that support all target browsers (loaded via plain <script>s). See Vue CLI --no-module

But @vitejs/plugin-legacy will output both modern and legacy codes.

Suggested solution

Can we add --no-module config in vite-plugin-legacy?

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions