Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants