File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export function TypeScriptLoader(options?: JitiOptions): LoaderAsync {
19
19
20
20
// `default` is used when exporting using export default, some modules
21
21
// may still use `module.exports` or if in TS `export = `
22
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
22
23
return result . default || result ;
23
24
} catch ( error ) {
24
25
if ( error instanceof Error ) {
@@ -42,6 +43,7 @@ export function TypeScriptLoaderSync(options?: JitiOptions): LoaderSync {
42
43
43
44
// `default` is used when exporting using export default, some modules
44
45
// may still use `module.exports` or if in TS `export = `
46
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
45
47
return result . default || result ;
46
48
} catch ( error ) {
47
49
if ( error instanceof Error ) {
You can’t perform that action at this time.
0 commit comments