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(vite-plugin-angular): fix HMR of component styles #1539

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

mattlewis92
Copy link
Contributor

PR Checklist

Closes #1534

What is the new behavior?

HMR of component styles works when using an NgModule bootstrapped application or when animations are enabled

Found by looking at the angular CLI source:
https://github.com/angular/angular-cli/blob/9b57ff0552736e6fef44c0ff7e6535f9ed832c6b/packages/angular/build/src/builders/dev-server/vite-server.ts#L142-L143

https://github.com/angular/angular-cli/blob/9b57ff0552736e6fef44c0ff7e6535f9ed832c6b/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts#L707

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

[optional] What gif best describes this PR or how it makes you feel?

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit 2a5a7fd
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/677bd7a3b7bf830008bfaca2
😎 Deploy Preview https://deploy-preview-1539--analog-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 site configuration.

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit 2a5a7fd
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/677bd7a374dd0300080585c0
😎 Deploy Preview https://deploy-preview-1539--analog-blog.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 site configuration.

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit 2a5a7fd
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/677bd7a37457d800083dfe55
😎 Deploy Preview https://deploy-preview-1539--analog-app.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 site configuration.

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for analog-ng-app ready!

Name Link
🔨 Latest commit 2a5a7fd
🔍 Latest deploy log https://app.netlify.com/sites/analog-ng-app/deploys/677bd7a3cb697c0008bc1870
😎 Deploy Preview https://deploy-preview-1539--analog-ng-app.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 site configuration.

@brandonroberts brandonroberts merged commit ee67cc6 into analogjs:beta Jan 6, 2025
24 checks passed
@brandonroberts
Copy link
Member

Awesome! @allcontributors add @mattlewis92 for code

Copy link
Contributor

@brandonroberts

I've put up a pull request to add @mattlewis92! 🎉

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.

HMR of component styles does not work unless the app is standalone
2 participants