vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
11.48k stars 1.86k forks source link

fix(build): ship vue-demi to avoid resolution issues #3680

Closed brc-dd closed 1 month ago

brc-dd commented 1 month ago

closes #3677

Yarn berry and moon are known to break rollup's resolution for vue from vue-demi. This should fix that.

People experiencing issues with pnpm + vue-demi's postinstall should add this to their package.json:

{
  "pnpm": {
    "neverBuiltDependencies": ["vue-demi"]
  }
}

The user installed copy of vue-demi will be ignored.