-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly handle exportes when module.exports get's redefined (#1015)
This was broken in 3506ee1, but as this mostly happens in browserified code I didn't catch it as a problem. Now we get the "exports" once before we run the script - to be used to resolve import cycles, and once after the script is ran in order to get the exports if exports gets redifined in the script. This is probably broken in the case where both exports is redifined and there is an import cycle, but the fix for this seems to be some magic that will need to find out that we are actually requiring a new file and then to "reexport" the exports before the import? or something like that.
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters