Skip to content

Commit 709dc40

Browse files
committed
fix: change pre-rendering output to be valid
1 parent 5646319 commit 709dc40

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adex/src/vite.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ function adexClientBuilder({ islands = false } = {}) {
165165
generateBundle(opts, bundle) {
166166
let clientEntryPath
167167
for (const key in bundle) {
168-
if (bundle[key].name == '_virtual_adex_client') {
168+
if (
169+
['_virtual_adex_client', '_app'].includes(bundle[key].name) &&
170+
'isEntry' in bundle[key] &&
171+
bundle[key].isEntry
172+
) {
169173
clientEntryPath = key
170174
}
171175
}

0 commit comments

Comments
 (0)