Skip to content

Commit a82b886

Browse files
author
yuuangzhang
committed
fix: check strict in proxyESM
1 parent 518da44 commit a82b886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/ssr/ssrModuleLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ function proxyESM(id: string, mod: any) {
212212
return new Proxy(mod, {
213213
get(mod, prop) {
214214
if (prop === 'default') return defaultExport
215-
return mod[prop]
215+
return mod[prop] ?? defaultExport[mod]
216216
}
217217
})
218218
}

0 commit comments

Comments
 (0)