Skip to content

Commit

Permalink
fix(css): return sourcemap in vite:css transform (#4880)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikg committed Sep 13, 2021
1 parent 5cc4587 commit 015290a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vite/src/node/plugins/css.ts
Expand Up @@ -178,7 +178,8 @@ export function cssPlugin(config: ResolvedConfig): Plugin {
const {
code: css,
modules,
deps
deps,
map
} = await compileCSS(
id,
raw,
Expand Down Expand Up @@ -240,8 +241,7 @@ export function cssPlugin(config: ResolvedConfig): Plugin {

return {
code: css,
// TODO CSS source map
map: { mappings: '' }
map
}
}
}
Expand Down

0 comments on commit 015290a

Please sign in to comment.