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(build): respect preserveSymlinks #2780

Merged
merged 1 commit into from Aug 12, 2023
Merged

fix(build): respect preserveSymlinks #2780

merged 1 commit into from Aug 12, 2023

Conversation

brc-dd
Copy link
Member

@brc-dd brc-dd commented Aug 12, 2023

Note that this is only supported when added through .vitepress/config.

closes #2779
closes #2351
closes #1496
closes #2153
closes #2335

Using something like this seems to work with symlinks:

// .vitepress/config.ts

import { defineConfig } from 'vitepress'

export default defineConfig({
  vite: {
    resolve: {
      preserveSymlinks: true
    }
  }
})

But the symlink support should still be treated as experimental. optimizeDeps + pnpm doesn't appear to work properly with this option and any warning can probably be ignored.

@brc-dd brc-dd merged commit 1bda710 into main Aug 12, 2023
7 checks passed
@brc-dd brc-dd deleted the fix/symlinks branch August 12, 2023 19:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.