Skip to content

Commit

Permalink
fix(ssr): ignore __esModule for ssrExportAll (#13084)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiot authored May 4, 2023
1 parent 7089528 commit 8a8ea1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/ssrModuleLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async function instantiateModule(

function ssrExportAll(sourceModule: any) {
for (const key in sourceModule) {
if (key !== 'default') {
if (key !== 'default' && key !== '__esModule') {
Object.defineProperty(ssrModule, key, {
enumerable: true,
configurable: true,
Expand Down

0 comments on commit 8a8ea1d

Please sign in to comment.