Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gluing modules for external module support #63

Merged
merged 4 commits into from
Sep 18, 2019
Merged

Conversation

theseanl
Copy link
Owner

@theseanl theseanl commented Sep 18, 2019

In this PR I changed the way we support external modules to what is described in angular/tsickle#1041.

Previously, what we did is described in readme: https://github.com/theseanl/tscc/tree/b0f656e773bc4b43dba6876aa68340f2b5d71dd8#detailed-description-of-external-modules-handling
In addition to that, we used some wild hacks that required patching tsickle in order to prevent generation of goog.requireType() for external modules.

The way described in the above linked issue requires is simpler and make us free of such hacks. I also vaguely think that this will provide a more correct behavior in case of accessing an external module's global name having side effects.

@theseanl theseanl merged commit eaa6b1e into master Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant