Skip to content

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

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

Coly010
Copy link
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
Copy link

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

Copy link

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
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.

3 participants