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

fix: vitepress/theme in ssrExternals #5651

Merged
merged 1 commit into from
Nov 11, 2021
Merged

fix: vitepress/theme in ssrExternals #5651

merged 1 commit into from
Nov 11, 2021

Conversation

patak-dev
Copy link
Member

Description

#5544 removed the mapping from knownImports to importedDeps using getNpmPackageName. This broke vitepress because vitepress/theme ended up in ssrExternals, instead of vitepress as it was before the PR.

This PR adds this logic back. We still need to review why vitepress/theme is in knownImports when building without .vite/_metadata.json existing, but it isn't there after running dev and the metadata is generated. This was discovered as part of debugging this issue but it is unrelated and it was already present before #5544


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@patak-dev patak-dev merged commit 1f91cdb into main Nov 11, 2021
@patak-dev patak-dev deleted the fix/vitepress-theme branch November 11, 2021 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants