Skip to content

fix(angular-rspack): use CJS when serving applications for HMR #33106#33693

Merged
Coly010 merged 1 commit intomasterfrom
angular-rspack/hmr-for-esm
Dec 3, 2025
Merged

fix(angular-rspack): use CJS when serving applications for HMR #33106#33693
Coly010 merged 1 commit intomasterfrom
angular-rspack/hmr-for-esm

Conversation

@Coly010
Copy link
Copy Markdown
Contributor

@Coly010 Coly010 commented Dec 3, 2025

Current Behavior

Angular Rspack outputs ESM for build and serve. However, with serve, it causes issue for HMR.

Expected Behavior

Use CJS for serve to allow HMR to work correctly

Related Issue(s)

Fixes #33106

@Coly010 Coly010 requested a review from a team as a code owner December 3, 2025 12:55
@Coly010 Coly010 requested a review from leosvelperez December 3, 2025 12:55
@Coly010 Coly010 self-assigned this Dec 3, 2025
@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Dec 3, 2025 1:02pm

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 3, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit b577bee
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/693033412eb2130008264d96
😎 Deploy Preview https://deploy-preview-33693--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Dec 3, 2025

View your CI Pipeline Execution ↗ for commit b577bee

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 3m 51s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 30s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-03 13:02:44 UTC

@Coly010 Coly010 merged commit b740baf into master Dec 3, 2025
20 checks passed
@Coly010 Coly010 deleted the angular-rspack/hmr-for-esm branch December 3, 2025 13:31
barbados-clemens pushed a commit that referenced this pull request Dec 8, 2025
…#33693)

## Current Behavior
Angular Rspack outputs ESM for build and serve. However, with serve, it
causes issue for HMR.

## Expected Behavior
Use CJS for serve to allow HMR to work correctly

## Related Issue(s)

Fixes #33106
@github-actions
Copy link
Copy Markdown
Contributor

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

@rspack/dev-server@1.1.4 not reflecting code changes after recompilation

2 participants