Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Minor refactors in prep for new JSX runtime #742

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

alangpierce
Copy link
Owner

This PR has a few details pulled from #740 to make it easier to read the
substantial changes in that PR:

  • Reorder the options interface to better group related options together.
  • Reorder the methods in JSXTransformer to be in (roughly) top-down topological
    order rather than the more scattered order that it was previously.
  • Change website advanced options to dynamically only show the ones relevant
    based on what is selected.

This PR has a few details pulled from #740 to make it easier to read the
substantial changes in that PR:
* Reorder the options interface to better group related options together.
* Reorder the methods in JSXTransformer to be in (roughly) top-down topological
  order rather than the more scattered order that it was previously.
* Change website advanced options to dynamically only show the ones relevant
  based on what is selected.
@codecov
Copy link

codecov bot commented Sep 2, 2022

Codecov Report

Merging #742 (c70e0ef) into main (e9a1281) will not change coverage.
The diff coverage is 93.18%.

@@           Coverage Diff           @@
##             main     #742   +/-   ##
=======================================
  Coverage   87.23%   87.23%           
=======================================
  Files          54       54           
  Lines        5751     5751           
  Branches     1357     1357           
=======================================
  Hits         5017     5017           
  Misses        466      466           
  Partials      268      268           
Impacted Files Coverage Δ
src/Options-gen-types.ts 100.00% <ø> (ø)
src/Options.ts 100.00% <ø> (ø)
src/transformers/JSXTransformer.ts 97.16% <93.18%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link

github-actions bot commented Sep 2, 2022

Benchmark results

Before this PR: 411 thousand lines per second
After this PR: 415 thousand lines per second

Measured change: 0.96% faster (0.87% slower to 1.5% faster)
Summary: Likely no significant difference

@alangpierce alangpierce merged commit e9bc44f into main Sep 2, 2022
@alangpierce alangpierce deleted the prep-work-for-jsx-transform branch September 2, 2022 22:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant