Skip to content
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

fix(webpack): Remove constraint on Webpack plugin's options for devTool #28508

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

Conversation

nathansom
Copy link

Current Behavior

Current code limits devTool options to hidden(-source-map) and boolean (source-map if true). This is not best coding practice as it limits the extensibility of Nx Webpack plugin. Plus, the plugin's devTool setting overrides custom Webpack config even with webpack-merge implementation.

Expected Behavior

Nx Webpack plugin and executor should allow all valid options for devTool to suit diverse use cases for source maps.

Related Issue(s)

#28436

Fixes #28436

Current code limits devTool options to hidden(-source-map) and boolean (source-map if true). This is not best coding practice as it limits the extensibility of Nx Webpack plugin. Plus, the plugin's devTool setting overrides custom Webpack config even with webpack-merge implementation.
@nathansom nathansom requested review from a team as code owners October 18, 2024 00:04
@nathansom nathansom requested a review from jaysoo October 18, 2024 00:04
Copy link

vercel bot commented Oct 18, 2024

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

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Oct 19, 2024 7:34am

@nathansom
Copy link
Author

ATTN: Only the Linux agent failed. No specific error due to code changes could be identified.
Screenshot 2024-10-19 at 12 50 41 PM

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.

Nx/webpack generating separate map file when setting is inline-source-map
1 participant