Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle new Polymer 3 import styles for PolymerElement and the Polymer…
… function in the Closure PolymerPass. Polymer 3 uses ES modules instead of globals. This updates the PolymerPass to recognize identifiers associated with ES module imports (which when the PolymerPass runs are GETPROPs instead of flat NAMEs). NOTE: We're just looking for any GETPROP that ends in the expected identifiers, so this could cause some false positives (i.e. it correctly matches `module$polymer.Polymer`, but also `not.polymer.Polymer`). It seems too brittle to hard-code the module path, though. Open to other approaches. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=204986835
- Loading branch information
Showing
2 changed files
with
86 additions
and
10 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