Skip to content

Commit d83576a

Browse files
committed
chore: broken types
1 parent cad0f44 commit d83576a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plugins/transform.ts

+2
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,12 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti
127127
canBundle = true
128128
}
129129
}
130+
// @ts-expect-error untyped
130131
const scriptOptions = node.arguments[0].properties?.find(
131132
(p: any) => (p.key?.name === 'scriptOptions'),
132133
) as Property | undefined
133134
// we need to check if scriptOptions contains bundle: true, if it exists
135+
// @ts-expect-error untyped
134136
const bundleOption = scriptOptions?.value.properties?.find((prop) => {
135137
return prop.type === 'Property' && prop.key?.name === 'bundle' && prop.value.type === 'Literal'
136138
})

0 commit comments

Comments
 (0)