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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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