Skip to content

Commit

Permalink
support deprecated Vite CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jan 18, 2025
1 parent 1b3acdd commit 26dacd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vike/node/api/prepareViteApiCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ async function assertViteRoot2(root: string, viteConfigEnhanced: InlineConfig |
assertUsage(normalizeRoot(viteConfigResolved.root) === normalizeRoot(root), errMsg)
}
function assertViteRoot(root: string, config: ResolvedConfig) {
assert(globalObject.root)
assert(normalizeRoot(globalObject.root) === normalizeRoot(root))
if (globalObject.root) assert(normalizeRoot(globalObject.root) === normalizeRoot(root))
assertUsage(normalizeRoot(root) === normalizeRoot(config.root), errMsg)
}

0 comments on commit 26dacd0

Please sign in to comment.