From 263e10e01d6930df83217d75c0084bedf2fb5bea Mon Sep 17 00:00:00 2001 From: harlan Date: Wed, 7 Aug 2024 23:46:36 +1000 Subject: [PATCH] chore: maybe fix tests --- src/plugins/transform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/transform.ts b/src/plugins/transform.ts index c8db1215..584f69df 100644 --- a/src/plugins/transform.ts +++ b/src/plugins/transform.ts @@ -127,7 +127,7 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti canBundle = true } } - const scriptOptions = node.arguments[0].properties.find( + const scriptOptions = node.arguments[0].properties?.find( (p: any) => (p.key?.name === 'scriptOptions'), ) as Property | undefined // we need to check if scriptOptions contains bundle: true, if it exists