Skip to content

fix: should disable default splitChunks rules for EsmLibraryPlugin#12047

Merged
JSerFeng merged 1 commit intomainfrom
fix/esm-lib-split-chunks
Nov 3, 2025
Merged

fix: should disable default splitChunks rules for EsmLibraryPlugin#12047
JSerFeng merged 1 commit intomainfrom
fix/esm-lib-split-chunks

Conversation

@JSerFeng
Copy link
Contributor

Summary

EsmLibraryPlugin do no needs the default splitChunks rules

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@JSerFeng JSerFeng requested a review from hardfist as a code owner October 30, 2025 13:05
Copilot AI review requested due to automatic review settings October 30, 2025 13:05
@netlify
Copy link

netlify bot commented Oct 30, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit d2c233f
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/690811e73d2454000851b55b
😎 Deploy Preview https://deploy-preview-12047--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Oct 30, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the splitChunks initialization logic in EsmLibraryPlugin.ts to simplify the code structure and use nullish coalescing for cacheGroups initialization.

  • Adds explicit initialization of splitChunks when it's undefined
  • Replaces conditional cacheGroups initialization with nullish coalescing operator
  • Unconditionally sets cacheGroups.default and cacheGroups.defaultVendors to false
Comments suppressed due to low confidence (1)

packages/rspack/src/builtin-plugin/EsmLibraryPlugin.ts:32

  • Assignment to variable splitChunks, which is declared constant.
		splitChunks = {};

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Timeless0911
Timeless0911 previously approved these changes Oct 30, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 30, 2025

📦 Binary Size-limit

Comparing d2c233f to chore(deps): update dependency @biomejs/biome to ^2.3.2 (#12055) by renovate[bot]

🙈 Size remains the same at 47.85MB

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 3, 2025

CodSpeed Performance Report

Merging #12047 will not alter performance

Comparing fix/esm-lib-split-chunks (d2c233f) with main (1ad3537)

Summary

✅ 17 untouched

@JSerFeng JSerFeng enabled auto-merge (squash) November 3, 2025 03:22
@JSerFeng JSerFeng merged commit 88402f4 into main Nov 3, 2025
44 checks passed
@JSerFeng JSerFeng deleted the fix/esm-lib-split-chunks branch November 3, 2025 03:22
@h-a-n-a h-a-n-a mentioned this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments