We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95a9af commit 91d7b67Copy full SHA for 91d7b67
packages/vite/src/node/plugins/css.ts
@@ -1600,6 +1600,7 @@ function cleanScssBugUrl(url: string) {
1600
if (
1601
// check bug via `window` and `location` global
1602
typeof window !== 'undefined' &&
1603
+ typeof location !== 'undefined' &&
1604
typeof location?.href === 'string'
1605
) {
1606
const prefix = location.href.replace(/\/$/, '')
0 commit comments