Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Apr 30, 2024
1 parent a48642f commit 8e98066
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/slidev/node/vite/extendConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ export function createConfigPlugin(options: ResolvedSlidevOptions): Plugin {
allow: uniq([
options.userWorkspaceRoot,
options.clientRoot,
isInstalledGlobally
? options.cliRoot
// Special case for PNPM global installation
: slash(options.cliRoot).replace(/\/\.pnpm\/.*$/ig, ''),
// Special case for PNPM global installation
isInstalledGlobally.value
? slash(options.cliRoot).replace(/\/\.pnpm\/.*$/ig, '')
: options.cliRoot,
...options.roots,
]),
},
Expand Down

0 comments on commit 8e98066

Please sign in to comment.