Skip to content

Commit 96d1346

Browse files
authored
refactor: check if remote has any shared modules (#3901)
1 parent 3491bca commit 96d1346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/plugins/generate-preload-assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export function generatePreloadAssets(
254254
remoteSnapshot,
255255
);
256256

257-
if (remoteSnapshot.shared) {
257+
if (remoteSnapshot.shared && remoteSnapshot.shared.length > 0) {
258258
const collectSharedAssets = (
259259
shareInfo: Shared,
260260
snapshotShared: ModuleInfo['shared'][0],

0 commit comments

Comments
 (0)