We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db93938 commit 1f42f05Copy full SHA for 1f42f05
1 file changed
packages/plugin-vite/src/plugins/server_snapshot.ts
@@ -526,6 +526,9 @@ export default ${JSON.stringify(route.css)}
526
const manifest = JSON.parse(asset.source as string) as Manifest;
527
528
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.
532
if (!/\.(?:c|m)?js$/.test(info.file)) continue;
533
534
const filePath = path.join(serverOutDir, info.file);
0 commit comments