Skip to content

Commit 7e79bb4

Browse files
wip(core): use prototype-less object for default options.moduleCache
1 parent 558199d commit 7e79bb4

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
@@ -756,7 +756,7 @@ const defaultModuleHandlers : Record<string, ModuleHandler> = {
756756
export async function loadModule(path : string, options : Options = throwNotDefined('options')) {
757757

758758
const {
759-
moduleCache = (options.moduleCache = {}),
759+
moduleCache = (options.moduleCache = Object.create(null)),
760760
getFile = throwNotDefined('options.getFile()'),
761761
addStyle = throwNotDefined('options.addStyle()'),
762762
additionalModuleHandlers = {},

0 commit comments

Comments
 (0)