Skip to content

Comments

fix(transformer/typescript): don't remove class fields without initializers when class-properties plugin is enabled#12771

Merged
graphite-app[bot] merged 1 commit intomainfrom
08-03-fix_transformer_typescript_don_t_remove_class_fields_without_initializers_when_class-properties_plugin_is_enabled
Aug 3, 2025
Merged

fix(transformer/typescript): don't remove class fields without initializers when class-properties plugin is enabled#12771
graphite-app[bot] merged 1 commit intomainfrom
08-03-fix_transformer_typescript_don_t_remove_class_fields_without_initializers_when_class-properties_plugin_is_enabled

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Aug 3, 2025

Both typescript and class-properties have the similar transformation for class fields. They would conflict when both are run, so we have to stop transforming class fields in the typescript plugin when class-properties is enabled.

@Dunqing Dunqing requested a review from overlookmotel as a code owner August 3, 2025 03:06
@github-actions github-actions bot added A-transformer Area - Transformer / Transpiler C-bug Category - Bug labels Aug 3, 2025
Copy link
Member Author

Dunqing commented Aug 3, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 3, 2025

CodSpeed Instrumentation Performance Report

Merging #12771 will not alter performance

Comparing 08-03-fix_transformer_typescript_don_t_remove_class_fields_without_initializers_when_class-properties_plugin_is_enabled (701399e) with main (42c8f29)

Summary

✅ 34 untouched benchmarks

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Aug 3, 2025
Copy link
Member

Boshen commented Aug 3, 2025

Merge activity

…lizers when class-properties plugin is enabled (#12771)

* close #12770

Both `typescript` and `class-properties` have the same transformation for class fields. They would conflict when both are run, so we have to stop transforming class fields in the `typescript` plugin when `class-properties` is enabled.
@graphite-app graphite-app bot force-pushed the 08-03-fix_transformer_typescript_don_t_remove_class_fields_without_initializers_when_class-properties_plugin_is_enabled branch from 56fcd0a to 701399e Compare August 3, 2025 03:22
@graphite-app graphite-app bot merged commit 701399e into main Aug 3, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 08-03-fix_transformer_typescript_don_t_remove_class_fields_without_initializers_when_class-properties_plugin_is_enabled branch August 3, 2025 03:30
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-transformer Area - Transformer / Transpiler C-bug Category - Bug

Projects

None yet

2 participants