Skip to content

Conversation

@clydin
Copy link
Contributor

@clydin clydin commented May 14, 2020

This conforms to the behavior present in the class fields transformer:

function transformSourceFile(node: SourceFile) {
const options = context.getCompilerOptions();
if (node.isDeclarationFile
|| options.useDefineForClassFields && options.target === ScriptTarget.ESNext) {
return node;
}

Fixes #38528

@RyanCavanaugh RyanCavanaugh requested a review from rbuckton May 14, 2020 15:15
@sandersn sandersn added the For Milestone Bug PRs that fix a bug with a specific milestone label May 20, 2020
@clydin clydin force-pushed the fix-class-iife-esnext branch from 710136b to 303beba Compare May 20, 2020 22:50
@clydin clydin closed this May 22, 2020
@clydin clydin deleted the fix-class-iife-esnext branch August 20, 2020 16:26
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Milestone Bug PRs that fix a bug with a specific milestone

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Static field emit is IIFE

4 participants