-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This gives some much needed love to the CommonJS module output. Most importantly it mutates the `module.exports` object before the code is executed which allows some cyclic dependencies to work (function declarations). This also changes the transformer to work on the original code instead of the already transformed code (from `ModuleTransformer`). Things have been refactored so that more code is shared between `CommonJsModuleTransformer` and `ModuleTransformer`. Also, the require variable binding (with `__esModule`) has changed so that we do not need temp variables (outside what is needed for destructuring).
- Loading branch information
Showing
11 changed files
with
158 additions
and
172 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
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
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
Oops, something went wrong.