Skip to content

Commit cf74f30

Browse files
author
Franck Freiburger
committed
wip(core): allow type to be null but not undefined
1 parent ac411f1 commit cf74f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function defaultGetResource(pathCx : PathContext, options : Options) : Resource
103103
}
104104

105105
return {
106-
type: res.type ?? Path.extname(pathStr),
106+
type: res.type !== undefined ? res.type : Path.extname(pathStr),
107107
getContentData: res.getContentData,
108108
}
109109
}

0 commit comments

Comments
 (0)