File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 53
53
"release" : " pnpm build && bumpp -x \" npx changelogen --output=CHANGELOG.md\" && pnpm publish" ,
54
54
"lint" : " eslint ." ,
55
55
"lint:fix" : " eslint . --fix" ,
56
- "test" : " pnpm dev:prepare && vitest --run --exclude **/__runtime__ && pnpm test:runtime" ,
57
- "test:runtime" : " cd test/fixtures/basic && vitest --run" ,
56
+ "test" : " pnpm dev:prepare && vitest --run" ,
58
57
"test:types" : " echo 'broken due to type regeneration, use pnpm typecheck' && npx nuxi typecheck"
59
58
},
60
59
"build" : {
Original file line number Diff line number Diff line change @@ -167,10 +167,10 @@ export function NuxtScriptBundleTransformer(options: AssetBundlerTransformerOpti
167
167
let src : false | string | undefined
168
168
if ( fnName === 'useScript' ) {
169
169
// do easy case first where first argument is a literal
170
- if ( node . arguments [ 0 ] . type === 'Literal' ) {
170
+ if ( node . arguments [ 0 ] ? .type === 'Literal' ) {
171
171
scriptSrcNode = node . arguments [ 0 ] as Literal & { start : number , end : number }
172
172
}
173
- else if ( node . arguments [ 0 ] . type === 'ObjectExpression' ) {
173
+ else if ( node . arguments [ 0 ] ? .type === 'ObjectExpression' ) {
174
174
const srcProperty = node . arguments [ 0 ] . properties . find (
175
175
( p : any ) => ( p . key ?. name === 'src' || p . key ?. value === 'src' ) && p ?. value . type === 'Literal' ,
176
176
)
You can’t perform that action at this time.
0 commit comments