Skip to content

Commit

Permalink
fix: use new RenderedChunk properties
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jan 28, 2022
1 parent 1661402 commit f5c4e7f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bundle/clients.ts
Expand Up @@ -423,10 +423,7 @@ function fixChunkImports(cache: Map<OutputChunk, string[]>): vite.Plugin {
for (const id in bundle) {
const chunk = bundle[id]
if (chunk.type == 'chunk') {
const imports = [
...(config.chunkToEmittedCssFileMap.get(chunk) || []),
...(config.chunkToEmittedAssetsMap.get(chunk) || []),
]
const imports = [...chunk.importedCss, ...chunk.importedAssets]
if (imports.length) {
cache.set(chunk, imports)
}
Expand Down

0 comments on commit f5c4e7f

Please sign in to comment.