Skip to content

Commit fb205e0

Browse files
committed
wip: fix sourcemap
1 parent c9244fc commit fb205e0

File tree

1 file changed

+1
-1
lines changed
  • packages/vite/src/node/plugins

1 file changed

+1
-1
lines changed

packages/vite/src/node/plugins/css.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ async function compileCSS(
13201320
if (!transformResult) {
13211321
return {
13221322
code,
1323-
map: preprocessorMap,
1323+
map: config.css.devSourcemap ? preprocessorMap : { mappings: '' },
13241324
deps,
13251325
}
13261326
}

0 commit comments

Comments
 (0)