Skip to content

fix(angular): convert-to-rspack should ensure zone.js is not treated as local file#30966

Merged
FrozenPandaz merged 1 commit intomasterfrom
ensure-zonejs-not-marked-as-local
May 1, 2025
Merged

fix(angular): convert-to-rspack should ensure zone.js is not treated as local file#30966
FrozenPandaz merged 1 commit intomasterfrom
ensure-zonejs-not-marked-as-local

Conversation

@Coly010
Copy link
Copy Markdown
Contributor

@Coly010 Coly010 commented May 1, 2025

Current Behavior

The @nx/angular:convert-to-rspack relies on require.resolve to check if entries listed in the polyfills array is an npm package.
However, in some circumstances such as generating a new app, zone.js is not yet installed and therefore require.resolve will not resolve the package.

Expected Behavior

Ensure that zone.js is special cased as it is a polyfill that is always needed to be treated as a package.
This is also the only polyfill that is set during generation of an app and therefore is the only package that should run into this issue.

@Coly010 Coly010 requested a review from a team as a code owner May 1, 2025 10:45
@Coly010 Coly010 self-assigned this May 1, 2025
@Coly010 Coly010 requested a review from jaysoo May 1, 2025 10:45
@vercel
Copy link
Copy Markdown

vercel Bot commented May 1, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 1, 2025 10:47am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented May 1, 2025

View your CI Pipeline Execution ↗ for commit 014524c.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-ci ✅ Succeeded 25m 35s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 16s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded 1m 50s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-01 11:16:56 UTC

@FrozenPandaz FrozenPandaz merged commit 11ca6fc into master May 1, 2025
6 checks passed
@FrozenPandaz FrozenPandaz deleted the ensure-zonejs-not-marked-as-local branch May 1, 2025 17:18
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 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 May 7, 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.

3 participants