mirror of https://github.com/vuejs/vitepress
The `typesExternal` regex matched the absolute build path against `/vitepress/`, so repo-root `.d.ts` files (types/*) were only kept external when the repo was checked out in a directory named "vitepress". When built elsewhere, `DefaultTheme` got inlined into `dist/node/index.d.ts`, orphaning the `declare module` augmentations from `defaultTheme.ts` and breaking node-only options like `search.options._render` (regressed in v2.0.0-alpha.18). Compare paths resolved against this config's directory instead, normalized for separators and drive-letter casing so it also works on windows. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>pull/5335/head
parent
cec499869f
commit
e6ba9d8caa
Loading…
Reference in new issue