Skip to content

Commit 17185b1

Browse files
committed
tweak
1 parent 069ea2a commit 17185b1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/plugin-rsc/src/plugin.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,12 +1263,14 @@ function vitePluginUseClient(
12631263
const meta = manager.clientReferenceMetaMap[id]
12641264
if (meta) {
12651265
meta.renderedExports = mod.renderedExports
1266-
meta.serverChunk = normalizePath(
1267-
path.relative(
1268-
manager.config.root,
1269-
chunk.facadeModuleId ?? [...chunk.moduleIds].sort()[0]!,
1270-
),
1271-
)
1266+
meta.serverChunk =
1267+
(chunk.facadeModuleId ? 'facade:' : 'non-facade:') +
1268+
normalizePath(
1269+
path.relative(
1270+
manager.config.root,
1271+
chunk.facadeModuleId ?? [...chunk.moduleIds].sort()[0]!,
1272+
),
1273+
)
12721274
}
12731275
}
12741276
}

0 commit comments

Comments
 (0)