Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@TrickyPi
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

I am working on implementing decorator support. During this process, I found that ClassBody did not consider that body might be of type StaticBlock. This PR fixes this issue.
The estree link:https://github.com/estree/estree/blob/master/es2022.md#classbody

@vercel
Copy link

vercel bot commented Jun 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2024 6:22am

@github-actions
Copy link

github-actions bot commented Jun 29, 2024

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#chore/class-body-type

Notice: Ensure you have installed the latest stable Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust.

or load it into the REPL:
https://rollup-1xmcy339f-rollup-js.vercel.app/repl/?pr=5558

@github-actions
Copy link

github-actions bot commented Jun 29, 2024

Performance report!

Rough benchmark

Command Mean [s] Min [s] Max [s] Relative
node _benchmark/previous/bin/rollup -i ./perf/entry.js -o _benchmark/result/previous.js 9.215 ± 0.012 9.207 9.229 1.00 ± 0.01
node _benchmark/current/bin/rollup -i ./perf/entry.js -o _benchmark/result/current.js 9.212 ± 0.083 9.123 9.288 1.00

Internal benchmark

  • BUILD: 8189ms, 750 MB
    • initialize: 0ms, 25.9 MB
    • generate module graph: 3157ms, 574 MB
      • generate ast: 1527ms (+40ms, +2.7%), 568 MB
    • sort and bind modules: 460ms, 618 MB
    • mark included statements: 4585ms, 750 MB
      • treeshaking pass 1: 1567ms, 717 MB
      • treeshaking pass 2: 741ms, 740 MB
      • treeshaking pass 3: 291ms, 746 MB
      • treeshaking pass 4: 270ms, 745 MB
      • treeshaking pass 5: 314ms, 749 MB
      • treeshaking pass 6: 259ms, 750 MB
      • treeshaking pass 7: 243ms, 750 MB
      • treeshaking pass 8: 238ms, 754 MB
      • treeshaking pass 9: 213ms, 755 MB
      • treeshaking pass 10: 216ms, 753 MB
      • treeshaking pass 11: 212ms, 750 MB
  • GENERATE: 899ms, 1.02 GB
    • initialize render: 0ms, 914 MB
    • generate chunks: 88ms, 920 MB
      • optimize chunks: 0ms, 917 MB
    • render chunks: 788ms, 1 GB
    • transform chunks: 19ms, 1.02 GB
    • generate bundle: 0ms, 1.02 GB

@codecov
Copy link

codecov bot commented Jun 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.04%. Comparing base (39bc7c5) to head (6412be5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5558   +/-   ##
=======================================
  Coverage   99.04%   99.04%           
=======================================
  Files         238      238           
  Lines        9248     9252    +4     
  Branches     2437     2439    +2     
=======================================
+ Hits         9160     9164    +4     
  Misses         58       58           
  Partials       30       30           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TrickyPi TrickyPi changed the title feat: consider the body of ClassBody has StaticBlock feat: consider that the body of ClassBody might be of type StaticBlock Jun 29, 2024
@TrickyPi TrickyPi changed the title feat: consider that the body of ClassBody might be of type StaticBlock Consider that the body of ClassBody might be of type StaticBlock Jun 29, 2024
Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely a good fix, thanks. One question, though.

@lukastaegert lukastaegert added this pull request to the merge queue Jul 3, 2024
Merged via the queue into master with commit bcef5ea Jul 3, 2024
@lukastaegert lukastaegert deleted the chore/class-body-type branch July 3, 2024 04:36
@github-actions
Copy link

github-actions bot commented Jul 8, 2024

This PR has been released as part of [email protected]. You can test it via npm install rollup.

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.

2 participants