Skip to content

Commit

Permalink
revert: chore: test a change in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tal500 committed Sep 1, 2022
1 parent eced9b1 commit 2dc09b4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,11 +652,13 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
}
return true
})
chunk.code = chunk.code.replace(
emptyChunkRE,
// remove css import while preserving source map location
(m) => `/* empty css ${''.padEnd(m.length - 15)}*/`
)
if (opts.format !== 'system') {
chunk.code = chunk.code.replace(
emptyChunkRE,
// remove css import while preserving source map location
(m) => `/* empty css ${''.padEnd(m.length - 15)}*/`
)
}
}
}
const removedPureCssFiles = removedPureCssFilesCache.get(config)!
Expand Down

0 comments on commit 2dc09b4

Please sign in to comment.