Skip to content

fix(transformer/legacy-decorator): keep imports when it's referenced as metadata#10632

Merged
graphite-app[bot] merged 1 commit intomainfrom
04-27-fix_transformer_legacy-decorator_keep_imports_when_it_s_referenced_as_metadata
Apr 27, 2025
Merged

fix(transformer/legacy-decorator): keep imports when it's referenced as metadata#10632
graphite-app[bot] merged 1 commit intomainfrom
04-27-fix_transformer_legacy-decorator_keep_imports_when_it_s_referenced_as_metadata

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Apr 27, 2025

Fixes oxc-project/oxc-node#112 (comment)

We cannot remove imports when they are referenced as metadata, because reflect-metadata would call them in runtime.

@github-actions github-actions bot added A-transformer Area - Transformer / Transpiler C-bug Category - Bug labels Apr 27, 2025
Copy link
Member Author

Dunqing commented Apr 27, 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 Apr 27, 2025

CodSpeed Instrumentation Performance Report

Merging #10632 will not alter performance

Comparing 04-27-fix_transformer_legacy-decorator_keep_imports_when_it_s_referenced_as_metadata (6abc2f3) with main (573cb05)

Summary

✅ 36 untouched benchmarks

@Dunqing Dunqing marked this pull request as ready for review April 27, 2025 07:34
@Dunqing Dunqing requested a review from overlookmotel as a code owner April 27, 2025 07:34
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Apr 27, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Apr 27, 2025

Merge activity

…as metadata (#10632)

Fixes oxc-project/oxc-node#112 (comment)

We cannot remove `imports` when they are referenced as metadata, because `reflect-metadata` would call them in runtime.
@graphite-app graphite-app bot force-pushed the 04-27-fix_transformer_legacy-decorator_keep_imports_when_it_s_referenced_as_metadata branch from c340c2f to 6abc2f3 Compare April 27, 2025 11:15
@graphite-app graphite-app bot merged commit 6abc2f3 into main Apr 27, 2025
27 checks passed
@graphite-app graphite-app bot deleted the 04-27-fix_transformer_legacy-decorator_keep_imports_when_it_s_referenced_as_metadata branch April 27, 2025 11:24
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Apr 27, 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

Development

Successfully merging this pull request may close these issues.

1 participant