Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Oct 25, 2024
1 parent f207c4e commit 1262b08
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/slidev/node/vite/extendConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export function createConfigPlugin(options: ResolvedSlidevOptions): Plugin {
},
},
},
cacheDir: isInstalledGlobally.value ? join(options.cliRoot, 'node_modules/.vite') : undefined,
}

function isSlidevClient(id: string) {
Expand All @@ -182,11 +183,6 @@ export function createConfigPlugin(options: ResolvedSlidevOptions): Plugin {
// return nodeModuelsMatch[nodeModuelsMatch.length - 1][1]
// }

if (isInstalledGlobally.value) {
injection.cacheDir = join(options.cliRoot, 'node_modules/.vite')
injection.root = options.cliRoot
}

return injection
},
configureServer(server) {
Expand Down

0 comments on commit 1262b08

Please sign in to comment.