Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vite 3] Legacy Build Bug #8974

Closed
7 tasks done
brillout opened this issue Jul 7, 2022 · 2 comments · Fixed by #8983
Closed
7 tasks done

[Vite 3] Legacy Build Bug #8974

brillout opened this issue Jul 7, 2022 · 2 comments · Fixed by #8983

Comments

@brillout
Copy link
Contributor

brillout commented Jul 7, 2022

Describe the bug

SSR deps don't seem to be externalized by default (and even when added to ssr.external). With legacy.buildPluginCommonjs set to true. (Same thing as #8880: vite-plugin-ssr ist not externalized even though it should.)

The reproduction linked here is the same reproduction as the one linked at #8880 but with legacy.buildPluginCommonjs set to true.

Note that the reproduction is green in vite-plugin-ssr's CI (the reproduction is a subset of the CI). The difference with the CI is that vite-plugin-ssr is symlinked in the CI. So I'm suspecting some kind of node_modules if-branch to be the culprit.

Reproduction

https://github.com/brillout/vite-3-legacy-build-bug

System Info

System:
    OS: Linux 5.10 Debian GNU/Linux 10 (buster) 10 (buster)
    CPU: (2) x64 Intel(R) Celeron(R) N4020 CPU @ 1.10GHz
    Memory: 423.00 MB / 2.71 GB
    Container: Yes
    Shell: 5.0.3 - /bin/bash
  Binaries:
    Node: 18.0.0 - ~/.config/nvm/versions/node/v18.0.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.6.0 - ~/.config/nvm/versions/node/v18.0.0/bin/npm
  Browsers:
    Firefox: 97.0.1
  npmPackages:
    vite: ^2.8.4 => 3.0.0-beta.7

Used Package Manager

pnpm

Logs

No response

Validations

@patak-dev
Copy link
Member

So IIUC, vite-plugin-ssr is working correctly out of CI. Is that also the case for #8880?

@brillout
Copy link
Contributor Author

brillout commented Jul 7, 2022

@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants