Skip to content

[plugin-legacy] When build.rollupOptions.compact is set to true, the function signature of systemjs in the [manualChunks] legacy output is wrong. #16632

@AfireHong

Description

@AfireHong

Describe the bug

image

Reproduction

https://github.com/AfireHong/vite-legacy-plugin-error

Steps to reproduce

No response

System Info

System:
    OS: macOS 14.2
    CPU: (12) arm64 Apple M2 Pro
    Memory: 93.14 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.2/bin/yarn
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
    pnpm: 8.7.0 - ~/.nvm/versions/node/v16.20.2/bin/pnpm
  Browsers:
    Safari: 17.2
  npmPackages:
    @vitejs/plugin-legacy: ^5.4.0 => 5.4.0 
    @vitejs/plugin-vue: ^5.0.4 => 5.0.4 
    vite: ^5.2.0 => 5.2.11

Used Package Manager

pnpm

Logs

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