Skip to content

Comments

refactor(coverage): use code without meta options in TypeScriptSuite#3552

Merged
graphite-app[bot] merged 1 commit intomainfrom
06-06-refactor_coverage_use_without_meta_options_code_in_typescriptsuite
Jun 6, 2024
Merged

refactor(coverage): use code without meta options in TypeScriptSuite#3552
graphite-app[bot] merged 1 commit intomainfrom
06-06-refactor_coverage_use_without_meta_options_code_in_typescriptsuite

Conversation

@Dunqing
Copy link
Member

@Dunqing Dunqing commented Jun 6, 2024

The @jsx: react is a typescript option. The Babel typescript plugin handles @jsx as well, but this is different. @jsx in babel is a pragma option. So we should use code without these meta options to avoid Babel parsing @jsx incorrectly

@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 6, 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 6, 2024

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

Join @Dunqing and the rest of your teammates on Graphite Graphite

@codspeed-hq
Copy link

codspeed-hq bot commented Jun 6, 2024

CodSpeed Performance Report

Merging #3552 will improve performances by 6.11%

Comparing 06-06-refactor_coverage_use_without_meta_options_code_in_typescriptsuite (3ba2a93) with main (f6939cb)

Summary

⚡ 1 improvements
✅ 21 untouched benchmarks

Benchmarks breakdown

Benchmark main 06-06-refactor_coverage_use_without_meta_options_code_in_typescriptsuite Change
transformer[RadixUIAdoptionSection.jsx] 284.4 µs 268 µs +6.11%

@Dunqing Dunqing marked this pull request as ready for review June 6, 2024 04:22
@Dunqing Dunqing changed the title refactor(coverage): use without meta options code in TypeScriptSuite refactor(coverage): use code without meta options in TypeScriptSuite Jun 6, 2024
@Dunqing Dunqing force-pushed the 06-06-refactor_coverage_use_without_meta_options_code_in_typescriptsuite branch 2 times, most recently from 372297e to 57d6a67 Compare June 6, 2024 04:40
@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 6, 2024

Merge activity

…3552)

The `@jsx: react` is a typescript option. The `Babel` typescript plugin handles @jsx as well, but this is different. `@jsx` in babel is a [pragma](https://babeljs.io/docs/babel-plugin-transform-react-jsx#pragma) option. So we should use code without these meta options to avoid Babel parsing `@jsx` incorrectly
@Boshen Boshen force-pushed the 06-06-refactor_coverage_use_without_meta_options_code_in_typescriptsuite branch from 57d6a67 to 3ba2a93 Compare June 6, 2024 05:34
@graphite-app graphite-app bot merged commit 3ba2a93 into main Jun 6, 2024
@graphite-app graphite-app bot deleted the 06-06-refactor_coverage_use_without_meta_options_code_in_typescriptsuite branch June 6, 2024 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant