Skip to content

Commit

Permalink
chore: maybe fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Aug 7, 2024
1 parent dd55221 commit 263e10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Check failure on line 130 in src/plugins/transform.ts

View workflow job for this annotation

GitHub Actions / ci

Property 'properties' does not exist on type 'Expression | SpreadElement'.
(p: any) => (p.key?.name === 'scriptOptions'),
) as Property | undefined
// we need to check if scriptOptions contains bundle: true, if it exists
Expand Down

0 comments on commit 263e10e

Please sign in to comment.