This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Description
This came up during review of angular/tsickle#624. Currently clutz emits module$exports$path$of$module$ as that is how js compiler internally renames module exports into the internal global namespace [1]. Also module$contents$ can make an appearance [2]
As we are having more tools depend on clutz output (tsickle in this case), it could be preferable to expect that scheme from closure, but emit a well-documented clutz renaming.
That's said, I am not sure how different would that be. The following choices need to be made:
- prefix to replace
module$exports
- separator to replace
$.
Actually, the current choices made by closure are what I would probably have picked.
@mprobst @LucasSloan
[1]
|
import alias = ಠ_ಠ.clutz.module$exports$module$Foo; |
[2]
https://github.com/angular/clutz/blob/master/src/test/java/com/google/javascript/clutz/goog_module_declare_legacy.d.ts#L10