Skip to content

Commit 642ff24

Browse files
wip(core): loadModule() options.moduleCache is mandatory
1 parent 57f1510 commit 642ff24

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
@@ -112,7 +112,7 @@ function defaultGetResource(pathCx : PathContext, options : Options) : Resource
112112
export async function loadModule(path : string, options : Options = throwNotDefined('options')) : Promise<ModuleExport> {
113113

114114
const {
115-
moduleCache = Object.create(null),
115+
moduleCache = throwNotDefined('options.moduleCache'),
116116
getFile = throwNotDefined('options.getFile()'),
117117
addStyle = throwNotDefined('options.addStyle()'),
118118
pathHandlers = defaultPathHandlers,

0 commit comments

Comments
 (0)