Closed
Description
Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
No
Description
I'm trying to go zoneless for my SSR angular app with hydration.
This condition seems to cause difficulties to migrate to zoneless for any SSR app that uses file based polyfills:
I guess you are aware of the issue, since there is a todo on the condition that feels too generic:
Basically it adds zone.js/node
import for all the builds that have file polyfill.
Minimal repro would be:
angular.json:
"polyfills": ["@angular/localize/init", "polyfills.ts"]
polyfills.ts
(window as any).global = window; // Amplify
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run ng version
)
ngular CLI: 19.0.0
Node: 20.17.0
Package Manager: pnpm 8.14.1
OS: darwin arm64
Angular: 19.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, localize, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker, ssr
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1900.0
@angular-devkit/build-angular 19.0.0
@angular-devkit/core 19.0.0
@angular-devkit/schematics 19.0.0
@schematics/angular 19.0.0
rxjs 7.5.7
typescript 5.6.3
Anything else?
No response