Skip to content

Commit 1f42f05

Browse files
committed
comment
1 parent db93938 commit 1f42f05

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/plugin-vite/src/plugins/server_snapshot.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,9 @@ export default ${JSON.stringify(route.css)}
526526
const manifest = JSON.parse(asset.source as string) as Manifest;
527527

528528
for (const info of Object.values(manifest)) {
529+
// Utility-file(_app/_layout/_error)'s CSS Modules can be hoisted into
530+
// shared chunks like "server-entry", not just route chunks.
531+
// Replace placeholders in any emitted JS chunk that contains one.
529532
if (!/\.(?:c|m)?js$/.test(info.file)) continue;
530533

531534
const filePath = path.join(serverOutDir, info.file);

0 commit comments

Comments
 (0)