Skip to content

Commit

Permalink
get only readonly version of ExportInfo when determining module expor…
Browse files Browse the repository at this point in the history
…t type
  • Loading branch information
sokra committed Dec 23, 2020
1 parent 07fc323 commit 63856cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Module.js
Expand Up @@ -439,7 +439,10 @@ class Module extends DependenciesBlock {
return "default-only";
}
};
const exportInfo = moduleGraph.getExportInfo(this, "__esModule");
const exportInfo = moduleGraph.getReadOnlyExportInfo(
this,
"__esModule"
);
if (exportInfo.provided === false) {
return handleDefault();
}
Expand Down

0 comments on commit 63856cc

Please sign in to comment.