Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollfoward "Inline require'd symbols when rewriting ES6 modules."
This is needed as some later stages of the compiler specifically check for well-known Closure properties, such as goog.asserts.assert. So `const {assert} = goog.require('goog.asserts'); assert(0);` must be rewritten to `goog.asserts.assert(0);` to be recognized correctly later. NEW: Don't detach the variable statement if there is one so that it can be re-exported. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=205889853
- Loading branch information
Showing
2 changed files
with
119 additions
and
21 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