We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558199d commit 7e79bb4Copy full SHA for 7e79bb4
src/index.ts
@@ -756,7 +756,7 @@ const defaultModuleHandlers : Record<string, ModuleHandler> = {
756
export async function loadModule(path : string, options : Options = throwNotDefined('options')) {
757
758
const {
759
- moduleCache = (options.moduleCache = {}),
+ moduleCache = (options.moduleCache = Object.create(null)),
760
getFile = throwNotDefined('options.getFile()'),
761
addStyle = throwNotDefined('options.addStyle()'),
762
additionalModuleHandlers = {},
0 commit comments