Skip to content

Commit 73e37f2

Browse files
committed
fix: issue with forms in playground
1 parent 65d4d72 commit 73e37f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/instrument-bundler/src/bundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const GLOBALS = `
4343
export async function createBundle(output: BuildOutput, options: { minify: boolean }) {
4444
let inject = '';
4545
const style = output.css ? `"${btoa(output.css)}"` : undefined;
46-
const scripts = output.legacyScripts
46+
const scripts = output.legacyScripts?.length
4747
? `[${output.legacyScripts.map((content) => `"${btoa(content)}"`).join(', ')}]`
4848
: undefined;
4949
if (style || scripts) {

0 commit comments

Comments
 (0)