Skip to content

fix(webpack): respect user config when applying node target #30937#31700

Merged
Coly010 merged 1 commit intomasterfrom
30937-respect-user-config
Jun 25, 2025
Merged

fix(webpack): respect user config when applying node target #30937#31700
Coly010 merged 1 commit intomasterfrom
30937-respect-user-config

Conversation

@Coly010
Copy link
Copy Markdown
Contributor

@Coly010 Coly010 commented Jun 24, 2025

Current Behavior

When a user sets target: node in their Webpack or Rspack config, NxAppRspackPlugin and NxAppWebpackPlugin do not respect additional user config for library.target.

Expected Behavior

The user config should be respected.

Related Issue(s)

Fixes #30937

@Coly010 Coly010 requested a review from a team as a code owner June 24, 2025 10:28
@Coly010 Coly010 requested a review from mandarini June 24, 2025 10:28
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 24, 2025

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

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jun 24, 2025 1:12pm

@Coly010 Coly010 self-assigned this Jun 24, 2025
@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Jun 24, 2025

View your CI Pipeline Execution ↗ for commit c5662ef.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 17m 52s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 19s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-06-24 13:20:24 UTC

@Coly010 Coly010 force-pushed the 30937-respect-user-config branch from 6138eb2 to c5662ef Compare June 24, 2025 12:57
@Coly010 Coly010 requested a review from a team as a code owner June 24, 2025 12:57
@Coly010 Coly010 requested a review from Cammisuli June 24, 2025 12:57
@Coly010 Coly010 merged commit c706a4e into master Jun 25, 2025
9 checks passed
@Coly010 Coly010 deleted the 30937-respect-user-config branch June 25, 2025 10:50
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 1, 2025

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webpack output option libraryTarget is not respected in webpack-cli build

3 participants