File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ const convert = () => {
28
28
debug: true ,
29
29
plugins: [' jsx' , ' typescript' ],
30
30
}).code
31
- } catch (err : any ) {
32
- result = err .toString ()
31
+ } catch (error : any ) {
32
+ result = error .toString ()
33
33
}
34
34
}
35
35
Original file line number Diff line number Diff line change @@ -457,8 +457,8 @@ export function transformJsxToString(
457
457
} else {
458
458
try {
459
459
str = transformJsx ( code , node )
460
- } catch ( err : any ) {
461
- str = `(() => { throw new Error(${ escapeString ( err . toString ( ) ) } ) })()`
460
+ } catch ( error : any ) {
461
+ str = `(() => { throw new Error(${ escapeString ( error . toString ( ) ) } ) })()`
462
462
}
463
463
}
464
464
s . overwrite ( expr . start ! , expr . end ! , str )
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ export default createUnplugin<Options>((options = {}) => {
27
27
...opt ,
28
28
id,
29
29
} )
30
- } catch ( err : unknown ) {
31
- this . error ( `${ name } ${ err } ` )
30
+ } catch ( error : unknown ) {
31
+ this . error ( `${ name } ${ error } ` )
32
32
}
33
33
} ,
34
34
}
You can’t perform that action at this time.
0 commit comments