Skip to content

Commit

Permalink
fix: only join base url in none ssr env
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 20, 2024
1 parent acb208e commit 7e9dd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
}

// prepend base
url = joinUrlSegments(base, url)
if (!ssr) url = joinUrlSegments(base, url)
}

return [url, resolved.id]
Expand Down

0 comments on commit 7e9dd25

Please sign in to comment.