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

Unwrap ES2015+ classes when using TypeScript 3.9 #1146

Closed
wants to merge 1 commit into from
Closed

Unwrap ES2015+ classes when using TypeScript 3.9 #1146

wants to merge 1 commit into from

Conversation

clydin
Copy link
Member

@clydin clydin commented May 19, 2020

Classes that contain TypeScript Decorators and/or static properties will be wrapped in an IIFE when using TypeScript 3.9. This transformer will remove the wrapping to allow analysis by closure compiler.

Tested against TypeScript 3.9.2 in combination with the changes in #1143

Classes that contain TypeScript Decorators and/or static properties will be wrapped in an IIFE when using TypeScript 3.9.  This transformer will remove the wrapping to allow analysis by closure compiler.
@rrdelaney
Copy link
Contributor

First of all, thanks for the PR! This is something that is definitely blocking adoption of TypeScript 3.9 for codebases using tsickle. We were hoping to land a compiler option in upstream TypeScript to deal with this rather than relying on their implementation and rewriting it. Having the option there will keep tsickle-flavored emit closer to upstream emit, and less divergence will be good for future maintainability. In the meantime, please follow the tracking issue in the TypeScript repo for updates!

@clydin clydin closed this May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants