Skip to content

Commit 263e10e

Browse files
committed
chore: maybe fix tests
1 parent dd55221 commit 263e10e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti
127127
canBundle = true
128128
}
129129
}
130-
const scriptOptions = node.arguments[0].properties.find(
130+
const scriptOptions = node.arguments[0].properties?.find(
131131
(p: any) => (p.key?.name === 'scriptOptions'),
132132
) as Property | undefined
133133
// we need to check if scriptOptions contains bundle: true, if it exists

0 commit comments

Comments
 (0)