-
Notifications
You must be signed in to change notification settings - Fork 6
feat(angular-rspack): Add "zoneless" option to enable Angular's provideZonelessChangeDetection()
usage
#115
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
base: main
Are you sure you want to change the base?
Conversation
@@ -265,6 +265,7 @@ export async function normalizeOptions( | |||
vendorChunk: options.vendorChunk ?? false, | |||
verbose: options.verbose ?? false, | |||
watch: options.watch ?? false, | |||
zoneless: options.zoneless ?? false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: I'm questioning a bit the requirement of a dedicated config option for zoneless support, as
- running zoneless actually could be inferred by the absence of 'zone.js' in the
polyfills
config option - additionally, based on your changes it seems to only affect SSR respectively pre-rendering. So if a dedicated config option would really be a requirement, maybe it fits better to add it to
ssr
orprerender
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
running zoneless actually could be inferred by the absence of 'zone.js' in the polyfillsconfig option
That'd be better I think; wasn't sure If such implicit behaviour might be breaking, or not. I guess it will do a lot more good, then bad.
Will make this change, thanks for review.
View your CI Pipeline Execution ↗ for commit 43881d7. ☁️ Nx Cloud last updated this comment at |
Hey @Chlebamaticon ! Thanks for the PR, this is great 🎉 Can you rebase this on top of |
…lization within PrerenderPlugin
43881d7
to
9a65547
Compare
Rebased and lockfile resolved! 🙌 |
Added
"zoneless"
property toAngularRspackPluginOptions
, soPrerenderPlugin
is capable of skipping "zone.js" initialisation.I tried using rspack to build my Angular SSR application without "zone.js" and
PrerenderPlugin
did complain about missing dependency.Suggestion