Zoneless SSR doen't build when using file polyfill #28898
Labels
angular/build:application
area: @angular/build
freq1: low
Only reported by a handful of users who observe it rarely
type: bug/fix
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:
angular-cli/packages/angular/build/src/tools/esbuild/application-code-bundle.ts
Line 175 in d622e59
I guess you are aware of the issue, since there is a todo on the condition that feels too generic:
angular-cli/packages/angular/build/src/tools/esbuild/utils.ts
Line 470 in d622e59
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
)Anything else?
No response
The text was updated successfully, but these errors were encountered: