We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65d4d72 commit 73e37f2Copy full SHA for 73e37f2
packages/instrument-bundler/src/bundle.ts
@@ -43,7 +43,7 @@ const GLOBALS = `
43
export async function createBundle(output: BuildOutput, options: { minify: boolean }) {
44
let inject = '';
45
const style = output.css ? `"${btoa(output.css)}"` : undefined;
46
- const scripts = output.legacyScripts
+ const scripts = output.legacyScripts?.length
47
? `[${output.legacyScripts.map((content) => `"${btoa(content)}"`).join(', ')}]`
48
: undefined;
49
if (style || scripts) {
0 commit comments