Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Roll forward: Update DepsGenerator to support goog.require's with es6…
… modules: - goog.require(path) is now allowed in goog.modules for ES6 modules. - ES6 modules no longer provide any symbols in a deps file. - Requires for ES6 modules in a deps file will be their relative path to Closure rather than a munged symbol. NEW: - Emit a warning if a file is any combination of goog.provide, goog.module, ES6 module. TODO for this to become an error. - Filter out munged provides when writing ES6 modules to a deps file, leaving in place any other provided symbols. Before ES6 modules just always had no provides, no matter what. The above means that an ES6 module with a goog.provide is technically warning and should work, for now. Once we have more official mechanisms for interop this will be promoted to an error. *Do not rely on the behavior because it will eventually be an error!* ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187353966
- Loading branch information
johnplaisted
authored and
Tyler Breisacher
committed
Mar 3, 2018
1 parent
e359a7e
commit 1c1c07d
Showing
21 changed files
with
1,007 additions
and
384 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
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.