Skip to content

Commit 90270c4

Browse files
author
Franck Freiburger
committed
wip(core): add tip in devMode about missing compiledCache option
1 parent 02635f7 commit 90270c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ export async function loadModule(path : AbstractPath, options : Options = throwN
179179
...options,
180180
};
181181

182+
if ( options.devMode ) {
183+
184+
if ( options.compiledCache === undefined )
185+
options.log?.('info', 'options.compiledCache is not defined, performance will be affected');
186+
}
187+
182188
return await loadModuleInternal( { refPath: undefined, relPath: path }, normalizedOptions);
183189
}
184190

0 commit comments

Comments
 (0)