Skip to content

Commit 77e1677

Browse files
committed
fix: skip when not used
1 parent 47f4548 commit 77e1677

File tree

1 file changed

+1
-0
lines changed
  • packages/fullstack/src/plugins

1 file changed

+1
-0
lines changed

packages/fullstack/src/plugins/html.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export function serverTransformIndexHtmlPlugin(): Plugin[] {
108108
async handler(_options, bundle) {
109109
if (this.environment.name === "ssr") {
110110
const placeholder = bundle["__transform_placeholder.html"];
111+
if (!placeholder) return;
111112
delete bundle["__transform_placeholder.html"];
112113
assert(placeholder?.type === "asset");
113114
assert(typeof placeholder.source === "string");

0 commit comments

Comments
 (0)