Skip to content

Comments

refactor(transformer/typescript): replace reference collector with symbols references#3533

Merged
graphite-app[bot] merged 1 commit intomainfrom
06-05-refactor_transformer_typescript_replace_reference_collector_with_symbols_references
Jun 5, 2024
Merged

refactor(transformer/typescript): replace reference collector with symbols references#3533
graphite-app[bot] merged 1 commit intomainfrom
06-05-refactor_transformer_typescript_replace_reference_collector_with_symbols_references

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Jun 5, 2024

#3524 handled the references correctly, now we can remove the reference collector.

@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 5, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

Copy link
Member Author

Dunqing commented Jun 5, 2024

@Dunqing Dunqing requested a review from overlookmotel June 5, 2024 06:24
@github-actions github-actions bot added A-semantic Area - Semantic A-transformer Area - Transformer / Transpiler labels Jun 5, 2024
@codspeed-hq
Copy link

codspeed-hq bot commented Jun 5, 2024

CodSpeed Performance Report

Merging #3533 will degrade performances by 5.3%

Comparing 06-05-refactor_transformer_typescript_replace_reference_collector_with_symbols_references (6978269) with main (affb2c8)

Summary

❌ 2 regressions
✅ 20 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main 06-05-refactor_transformer_typescript_replace_reference_collector_with_symbols_references Change
transformer[RadixUIAdoptionSection.jsx] 274 µs 285.7 µs -4.07%
transformer[cal.com.tsx] 95.3 ms 100.6 ms -5.3%

@Dunqing Dunqing force-pushed the 06-05-feat_transformer_typescript_handle_namespace_directive_correctly branch from 473c45f to bf16aa2 Compare June 5, 2024 08:40
@Dunqing Dunqing force-pushed the 06-05-refactor_transformer_typescript_replace_reference_collector_with_symbols_references branch from d691f50 to ba6cc06 Compare June 5, 2024 08:40
@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 5, 2024

Merge activity

…mbols references (#3533)

#3524 handled the references correctly, now we can remove the reference collector.
@Dunqing Dunqing force-pushed the 06-05-feat_transformer_typescript_handle_namespace_directive_correctly branch from bf16aa2 to ee9a215 Compare June 5, 2024 09:03
@Dunqing Dunqing force-pushed the 06-05-refactor_transformer_typescript_replace_reference_collector_with_symbols_references branch from ba6cc06 to 6978269 Compare June 5, 2024 09:03
@Dunqing Dunqing changed the base branch from 06-05-feat_transformer_typescript_handle_namespace_directive_correctly to main June 5, 2024 09:06
@graphite-app graphite-app bot merged commit 6978269 into main Jun 5, 2024
@graphite-app graphite-app bot deleted the 06-05-refactor_transformer_typescript_replace_reference_collector_with_symbols_references branch June 5, 2024 09:07
Boshen added a commit that referenced this pull request Jun 7, 2024
## [0.13.4] - 2024-06-07

### Features

- 5c8e16c coverage: Second transformer build does not print typescript
(#3561) (Dunqing)
- 646b993 coverage/transformer: Handle @jsx option (#3553) (Dunqing)
- a939ddd transformer/typescript: Remove more typescript ast nodes
(#3563) (Dunqing)
- e8a20f8 transformer/typescript: Remove typescript ast nodes (#3559)
(Dunqing)
- ee9a215 transformer/typescript: Handle namespace directive correctly
(#3532) (Dunqing)

### Bug Fixes

- affb2c8 codegen: Print indentation before directive (#3512) (Dunqing)
- f6939cb transformer: Store `react_importer` in `Bindings` in JSX
transform (#3551) (overlookmotel)
- 7982b93 transformer: Correct spans for JSX transform (#3549)
(overlookmotel)
- c00598b transformer: JSX set `reference_id` on refs to imports (#3524)
(overlookmotel)

### Performance

- 37cdc13 transformer: Faster checks if JSX plugin enabled (#3577)
(overlookmotel)
- 9f467b8 transformer: Avoid fragment update where possible (#3535)
(overlookmotel)
- ac394f0 transformer: JSX parse pragma only once (#3534)
(overlookmotel)

### Documentation

- 1d3c0d7 span: Add doc comments to `oxc_span::Span` (#3543) (Don Isaac)

### Refactor

- f2113ae transformer: Reduce cloning and referencing `Rc`s (#3576)
(overlookmotel)
- 0948124 transformer: Pass `Rc`s by value (#3550) (overlookmotel)
- e4d74ac transformer: Remove `update_fragment` from JSX transform
(#3541) (overlookmotel)
- 73b7864 transformer: Combine import and usage in JSX transform (#3540)
(overlookmotel)
- 6978269 transformer/typescript: Replace reference collector with
symbols references (#3533) (Dunqing)

Co-authored-by: Boshen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-semantic Area - Semantic A-transformer Area - Transformer / Transpiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants