Skip to content

Commit

Permalink
fix: the base is duplicated in importAnalysisBuild.ts (#4740)
Browse files Browse the repository at this point in the history
  • Loading branch information
hex-ci committed Sep 13, 2021
1 parent bfbafee commit 7e929ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -50,8 +50,8 @@ test('should load dynamic import with vars', async () => {
test('should load dynamic import with css', async () => {
await page.click('.css')
await untilUpdated(
() => page.$eval('.css', (node) => window.getComputedStyle(node).boxSizing),
'border-box',
() => page.$eval('.view', (node) => window.getComputedStyle(node).color),
'rgb(255, 0, 0)',
true
)
})
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importAnalysisBuild.ts
Expand Up @@ -264,7 +264,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {
const cssFiles = chunkToEmittedCssFileMap.get(chunk)
if (cssFiles && cssFiles.size > 0) {
cssFiles.forEach((file) => {
deps.add(config.base + file)
deps.add(file)
})
hasRemovedPureCssChunk = true
}
Expand Down

0 comments on commit 7e929ae

Please sign in to comment.