Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sun0day committed Sep 5, 2023
1 parent 66a3929 commit d183871
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,15 +651,13 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
source: chunkCSS,
})
const originalName = isPreProcessor(lang) ? cssAssetName : cssFileName
generatedAssets
.get(config)!
.set(referenceId, {
originalName,
isEntry,
importedAssets: isPureCssChunk
? chunk.viteMetadata?.importedAssets
: undefined,
})
generatedAssets.get(config)!.set(referenceId, {
originalName,
isEntry,
importedAssets: isPureCssChunk
? chunk.viteMetadata?.importedAssets
: undefined,
})
chunk.viteMetadata!.importedCss.add(this.getFileName(referenceId))

if (emitTasksLength === emitTasks.length) {
Expand Down

0 comments on commit d183871

Please sign in to comment.