nx
nx copied to clipboard
fix(webpack): with-nx default webpack resolve mainFields order breaking tree-shaking
fix(webpack): with-nx default webpack resolve mainFields order breaking tree-shaking
Current Behavior
Default webpack config
mainFields: [ 'browser', 'main', 'module', ]
Broken Tree-shake.
@mui/icons-material in library package fully included in vendor bundle.
Expected Behavior
Default webpack config
mainFields: [ 'browser', 'module', 'main' ]
Related Issue(s)
Closes #9717 Closes #3069
Fixes # Reorder default resolve.mainFields
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| nx-dev | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 14, 2023 4:51pm |
☁️ Nx Cloud Report
CI is running/has finished running commands for commit c88d0e0a5fa06800018d604c818a08a994034f67. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this branch
✅ Successfully ran 8 targets
nx affected -t e2e-macos --parallel=1 --base=dc545d2f40364718c1264bff5c6dd089685dd6e4 --head=c88d0e0a5fa06800018d604c818a08a994034f67nx affected --target=e2e --base=dc545d2f40364718c1264bff5c6dd089685dd6e4 --head=c88d0e0a5fa06800018d604c818a08a994034f67 --parallel=1nx affected --target=test --base=dc545d2f40364718c1264bff5c6dd089685dd6e4 --head=c88d0e0a5fa06800018d604c818a08a994034f67 --parallel=1nx run-many -t check-imports check-commit check-lock-files depcheck check-codeowners documentation --parallel=1 --no-dtenx affected --target=build --base=dc545d2f40364718c1264bff5c6dd089685dd6e4 --head=c88d0e0a5fa06800018d604c818a08a994034f67 --parallel=3nx affected --target=lint --base=dc545d2f40364718c1264bff5c6dd089685dd6e4 --head=c88d0e0a5fa06800018d604c818a08a994034f67 --parallel=3nx-cloud record -- nx format:check --base=dc545d2f40364718c1264bff5c6dd089685dd6e4 --head=c88d0e0a5fa06800018d604c818a08a994034f67nx documentation --no-dte
Sent with 💌 from NxCloud.
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.