File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti
52
52
if ( ! calleeName )
53
53
return
54
54
// check it starts with useScriptX where X must be a A-Z alphabetical letter
55
- const isValidCallee = calleeName === 'useScript' || ( calleeName ?. startsWith ( 'useScript' ) && / ^ [ A - Z ] $ / . test ( calleeName ?. charAt ( 9 ) ) && ! calleeName . startsWith ( 'useScriptTrigger' ) && ! calleeName . startsWith ( 'useScriptEvent' ) )
55
+ const isValidCallee = calleeName === 'useScript' || ( calleeName ?. startsWith ( 'useScript' ) && / ^ [ A - Z ] $ / . test ( calleeName ?. charAt ( 9 ) ) && ! calleeName . startsWith ( 'useScriptTrigger' ) && ! calleeName . startsWith ( 'useScriptEvent' ) )
56
56
if (
57
57
_node . type === 'CallExpression'
58
58
&& _node . callee . type === 'Identifier'
You can’t perform that action at this time.
0 commit comments