Skip to content

Conversation

@a-tarasyuk
Copy link
Contributor

Fixes #40632

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Sep 22, 2020
@RyanCavanaugh
Copy link
Member

We need to push this to 4.2 since it's a fairly observable runtime breaking change

@sandersn sandersn merged commit 45b698b into microsoft:master Nov 5, 2020
alangpierce added a commit to alangpierce/sucrase that referenced this pull request Aug 2, 2022
Fixes #731

`disableESTransforms` is intended to match the more spec-compliant mode
`useDefineForClassFields` provided by TypeScript, but it looks like in TS 4.2
they updated the behavior so that `abstract` fields are removed in addition to
`declare` fields:
microsoft/TypeScript#40699

In Sucrase, we can implement the same behavior by simply testing for `abstract`
as well in the place where we test for `declare`.
alangpierce added a commit to alangpierce/sucrase that referenced this pull request Aug 2, 2022
Fixes #731

`disableESTransforms` is intended to match the more spec-compliant mode
`useDefineForClassFields` provided by TypeScript, but it looks like in TS 4.2
they updated the behavior so that `abstract` fields are removed in addition to
`declare` fields:
microsoft/TypeScript#40699

In Sucrase, we can implement the same behavior by simply testing for `abstract`
as well in the place where we test for `declare`.
1Lighty pushed a commit to Astra-mod/sucrase that referenced this pull request Aug 14, 2022
…ce#732)

Fixes alangpierce#731

`disableESTransforms` is intended to match the more spec-compliant mode
`useDefineForClassFields` provided by TypeScript, but it looks like in TS 4.2
they updated the behavior so that `abstract` fields are removed in addition to
`declare` fields:
microsoft/TypeScript#40699

In Sucrase, we can implement the same behavior by simply testing for `abstract`
as well in the place where we test for `declare`.
@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.

Don't emit abstract members

5 participants