Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve CommonJS rewriting when used with webpack
Recognize module['exports'] references as exports. Properly rewrite ES Modules transpiled by older Babel versions where both `module.exports` and `exports` are referenced in the same file. Better recognize AMD shims added by webpack. Webpack does not update require statements in dead trees of a UMD if block. Don't report module load errors until after then UMD patterns have been replaced. Closes #2989 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=202327240
- Loading branch information
1 parent
15d7004
commit 3edafa4
Showing
2 changed files
with
269 additions
and
78 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
Oops, something went wrong.