Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
module.exports assignment adjustment on edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Sep 18, 2017
1 parent 4c9a9ff commit 1ca2669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/register-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ function doEvaluate (loader, load, link, registry, state, seen) {
err = dynamicExecute(link.execute, require, moduleObj.default, module);

// pick up defineProperty calls to module.exports when we can
if (module.exports !== moduleObj.default)
if (module.exports !== moduleObj.__useDefault)
moduleObj.default = moduleObj.__useDefault = module.exports;

var moduleDefault = moduleObj.default;
Expand Down

0 comments on commit 1ca2669

Please sign in to comment.