There was an error while loading. Please reload this page.
1 parent ce93195 commit d43f3f5Copy full SHA for d43f3f5
packages/vite-node/src/client.ts
@@ -425,7 +425,7 @@ function exportAll(exports: any, sourceModule: any) {
425
if (exports === sourceModule)
426
return
427
428
- if (typeof sourceModule !== 'object' || Array.isArray(sourceModule) || !sourceModule)
+ if (isPrimitive(sourceModule) || Array.isArray(sourceModule))
429
430
431
for (const key in sourceModule) {
0 commit comments