Skip to content

Commit 52a231a

Browse files
authored
fix(fullstack): remove client-fallback from output (#1198)
1 parent f3a1d35 commit 52a231a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/fullstack/src/plugin.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,14 @@ export function assetsPlugin(pluginOpts?: FullstackPluginOptions): Plugin[] {
386386
}
387387
},
388388
},
389+
generateBundle(_optoins, bundle) {
390+
if (this.environment.name !== "client") return;
391+
for (const [k, v] of Object.entries(bundle)) {
392+
if (v.type === "chunk" && v.name === "__fallback") {
393+
delete bundle[k];
394+
}
395+
}
396+
},
389397
},
390398
patchViteClientPlugin(),
391399
patchVueScopeCssHmr(),

0 commit comments

Comments
 (0)