Skip to content

Commit

Permalink
fix: style assets should be add to cssChunk (#5971)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiveMe-A-Name authored Jul 19, 2024
1 parent 4f3f200 commit 137d387
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/violet-pans-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/runtime': patch
---

fix: style assets should be add to cssChunk
fix: style 应该被添加到 cssChunks
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class LoadableCollector implements Collector {
);

// filter empty string;
chunkSet.jsChunk += css.filter(css => Boolean(css)).join('');
chunkSet.cssChunk += css.filter(css => Boolean(css)).join('');
}

private generateAttributes(
Expand Down

0 comments on commit 137d387

Please sign in to comment.