Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support MinChunkSizePlugin #3603

Open
IWANABETHATGUY opened this issue Jun 21, 2023 · 7 comments
Open

Support MinChunkSizePlugin #3603

IWANABETHATGUY opened this issue Jun 21, 2023 · 7 comments
Labels
feat New feature or request team The issue/pr is created by the member of Rspack.

Comments

@IWANABETHATGUY
Copy link
Contributor

What problem does this feature solve?

required by the test case webpack-test/configCases/plugins/min-chunk-size/

What does the proposed API of configuration look like?

The same as https://github.com/webpack/webpack/blob/9fcaa243573005d6fdece9a3f8d89a0e8b399613/lib/optimize/MinChunkSizePlugin.js#L1-L113

@IWANABETHATGUY IWANABETHATGUY added feat New feature or request pending triage The issue/PR is currently untouched. labels Jun 21, 2023
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Jun 21, 2023
@stale
Copy link

stale bot commented Aug 20, 2023

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Aug 20, 2023
@jerrykingxyz jerrykingxyz removed the pending triage The issue/PR is currently untouched. label Nov 13, 2023
@stale stale bot removed the stale label Nov 13, 2023
Copy link

stale bot commented Jan 12, 2024

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Jan 12, 2024
@mogelbrod
Copy link

mogelbrod commented Nov 8, 2024

Having MinChunkSizePlugin seems like a great way to avoid superflous async chunks generated by dynamic import() calls, including TanStackRouterRspack({ autoCodeSplitting: true, }). The web app I'm working on is currently polluted by a bunch of <1kb async chunks that don't bring much value to the table (real module id replaced by anonymized):

  • static/js/async/anonymized_tsr-split.83d2beb6.js (570 B)
  • static/js/async/anonymized_tsr-split.7e39ea86.js (487 B)
  • static/js/async/anonymized_tsr-split.fd6ecb85.js (444 B)
  • static/js/async/anonymized_tsr-split.a4df5fb1.js (436 B)
  • static/js/async/anonymized_tsr-split.553c8b97.js (393 B)
  • static/js/async/anonymized_tsr-split.284488c5.js (367 B)
  • static/js/async/anonymized_tsr-split.5dba02fb.js (359 B)
  • static/js/async/anonymized_tsr-split-_418c.7bc6bd4d.js (315 B)
  • static/js/async/anonymized_tsr-split.4f71ce33.js (311 B)
  • static/js/async/anonymized_tsr-split.6a243961.js (303 B)

@inottn
Copy link
Collaborator

inottn commented Nov 9, 2024

This issue has been closed, and I'm not sure if it still accepts PR. If it does, I can give it a try.

@hardfist hardfist reopened this Nov 9, 2024
@stale stale bot removed the stale label Nov 9, 2024
@hardfist
Copy link
Contributor

hardfist commented Nov 9, 2024

This issue has been closed, and I'm not sure if it still accepts PR. If it does, I can give it a try.

yeah it is acceptable

Copy link

stale bot commented Jan 8, 2025

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Jan 8, 2025
@inottn
Copy link
Collaborator

inottn commented Jan 8, 2025

bump

@stale stale bot removed the stale label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

No branches or pull requests

5 participants