Skip to content

[SSR] Stop resolving externalized dependencies #4340

@brillout

Description

@brillout

Describe the bug

AFAICT, Vite should completely ignore externalize SSR dependencies, including:

  • Not trying to resolve the dependency's module locations
  • Not read the dependency's code at all (edit: this seems to be the case ✅ )

E.g. vuetifyjs/vuetify#13936; I don't see a reason why Vite should try to resolve the module vuetify/lib/components.

Proposal: Vite should completely ignore externalized deps.

cc @GrygrFlzr

@aleclarson Do you know why Vite touches externalized deps?

@patak-js I'm thinking maybe we should cue in Evan about this at some point.

Reproduction

Vuetify repro: https://github.com/brillout/vuetify3-ssr

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