We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cad0f44 commit d83576aCopy full SHA for d83576a
src/plugins/transform.ts
@@ -127,10 +127,12 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti
127
canBundle = true
128
}
129
130
+ // @ts-expect-error untyped
131
const scriptOptions = node.arguments[0].properties?.find(
132
(p: any) => (p.key?.name === 'scriptOptions'),
133
) as Property | undefined
134
// we need to check if scriptOptions contains bundle: true, if it exists
135
136
const bundleOption = scriptOptions?.value.properties?.find((prop) => {
137
return prop.type === 'Property' && prop.key?.name === 'bundle' && prop.value.type === 'Literal'
138
})
0 commit comments