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

fix(strip): Transform static class fields to assignments #1487

Merged
merged 14 commits into from
Mar 26, 2021

Conversation

nayeemrmn
Copy link
Contributor

Fixes #1483.

Also ensures that every test applies the decorator() pass before strip(). This is necessary now, and it makes sense because there shouldn't be decorators in JS.

@nayeemrmn
Copy link
Contributor Author

@kdy1 Any idea what causes this error?
image

@kdy1
Copy link
Member

kdy1 commented Mar 25, 2021

@nayeemrmn I don't have one, but I now have some time to investigate it. I'll fix it and then merge it.

@kdy1 kdy1 self-assigned this Mar 25, 2021
@kdy1 kdy1 added this to the v1.2.51 milestone Mar 25, 2021
@kdy1 kdy1 merged commit fa3d65c into swc-project:master Mar 26, 2021
@nayeemrmn nayeemrmn deleted the strip-static-class-fields branch March 26, 2021 12:35
kdy1 added a commit to kdy1/swc that referenced this pull request Mar 31, 2021
…#1487)

swc_ecam_transforms_compat:
 - Deprecate `typescript_class_properties`.

swc_ecma_tranforms_typescript:
 - Merge `typescript_class_properties` into `strip`.

Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

strip: Static class fields should be transformed by default
2 participants