Skip to content

Conversation

@fi3ework
Copy link
Member

@fi3ework fi3ework commented Nov 19, 2025

Summary

only non-advancedEsm modern-module need this, as others formats doesn't rely on it.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings November 19, 2025 11:55
Timeless0911
Timeless0911 previously approved these changes Nov 19, 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 fixes the entry chunk plugin to only apply to formats that actually need it - specifically non-advanced ESM and IIFE formats that use the modern-module library type.

  • Restricts the entry loader to only activate for esm and iife formats when advancedEsm is not enabled
  • Removes the plugin from CJS, UMD, and MF formats where it's not needed
  • Updates test snapshots to reflect the removal of the plugin from non-applicable formats

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/core/src/config.ts Added format check (format === 'esm' || format === 'iife') to the useLoader condition to restrict entry chunk plugin to only applicable formats
packages/core/tests/snapshots/config.test.ts.snap Updated snapshots to remove rsbuild:lib-entry-chunk plugin entries from CJS, UMD, and MF format test cases

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

@netlify
Copy link

netlify bot commented Nov 20, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit fdcf410
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/691ec4b75b912100088e1669
😎 Deploy Preview https://deploy-preview-1352--rslib.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.

@Timeless0911 Timeless0911 merged commit 6909167 into main Nov 20, 2025
16 checks passed
@Timeless0911 Timeless0911 deleted the sssaaflsdfas branch November 20, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants