Skip to content

fix(rspack): fix issue with optimization options in rspack config #31337

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

konqi
Copy link

@konqi konqi commented May 26, 2025

Current Behavior

rspack.config.ts options related to optimizations are removed if the mode is not "production". This makes the compile fail for all non-production builds.

Expected Behavior

If mode isn't set to "production" configuration related to optimization should be passed through.

Related Issue(s)

Fixes #31268 #30292

@konqi konqi requested a review from a team as a code owner May 26, 2025 11:00
@konqi konqi requested a review from mandarini May 26, 2025 11:00
Copy link

vercel bot commented May 26, 2025

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

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview May 27, 2025 7:57am

konqi and others added 2 commits May 26, 2025 13:05
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
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.

Cannot read properties of undefined (reading 'removeAvailableModules') when using Rspack in dev mode
1 participant