Skip to content

chore: no need to set inlineExports#6819

Merged
chenjiahan merged 2 commits intomainfrom
remove_inlineExports_1222
Dec 22, 2025
Merged

chore: no need to set inlineExports#6819
chenjiahan merged 2 commits intomainfrom
remove_inlineExports_1222

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

No need to set Rspack's optimization.inlineExports config, it's enabled by default in production build.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings December 22, 2025 11:01
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 22, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 0e9cb0f
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/694924ee843602000894024a
😎 Deploy Preview https://deploy-preview-6819--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 71 (🟢 up 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

Copy link
Copy Markdown
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 removes the explicit configuration of Rspack's optimization.inlineExports setting, as it's enabled by default in production builds and the explicit configuration is redundant.

  • Removes the chain.optimization.inlineExports(isProd) call from the basic plugin
  • Removes the unused isProd parameter from the function destructuring
  • Updates all test snapshots to reflect the absence of the inlineExports configuration

Reviewed changes

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

Show a summary per file
File Description
packages/core/src/plugins/basic.ts Removes the explicit inlineExports configuration and the now-unused isProd parameter
packages/core/tests/snapshots/environments.test.ts.snap Updates snapshots to remove inlineExports configuration from web and node environments
packages/core/tests/snapshots/default.test.ts.snap Updates snapshots to remove inlineExports from development and production build configurations
packages/core/tests/snapshots/builder.test.ts.snap Updates snapshot to remove inlineExports configuration
packages/core/tests/snapshots/basic.test.ts.snap Updates snapshots to remove the optimization object that only contained inlineExports

The code changes look good! The removal of the inlineExports configuration is appropriate since Rspack handles this automatically based on the build mode. The isProd parameter was correctly removed as it's no longer needed, and all test snapshots have been consistently updated to reflect these changes.


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

@chenjiahan chenjiahan merged commit d824edd into main Dec 22, 2025
18 checks passed
@chenjiahan chenjiahan deleted the remove_inlineExports_1222 branch December 22, 2025 11:10
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