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 dd55221 commit 263e10eCopy full SHA for 263e10e
src/plugins/transform.ts
@@ -127,7 +127,7 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti
127
canBundle = true
128
}
129
130
- const scriptOptions = node.arguments[0].properties.find(
+ const scriptOptions = node.arguments[0].properties?.find(
131
(p: any) => (p.key?.name === 'scriptOptions'),
132
) as Property | undefined
133
// we need to check if scriptOptions contains bundle: true, if it exists
0 commit comments