Skip to content

Commit 81db8eb

Browse files
committed
fix: options could be null - close #42
1 parent 03d5017 commit 81db8eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ export interface TsResolverOptions {
3333
export function resolve(
3434
source: string,
3535
file: string,
36-
options: TsResolverOptions = {},
36+
options: TsResolverOptions | null,
3737
): {
3838
found: boolean
3939
path?: string | null
4040
} {
41+
options = options || {}
42+
4143
log('looking for:', source)
4244

4345
// don't worry about core node modules

0 commit comments

Comments
 (0)