Differential loading modern-only default in Angular 17
0 reputation · 11 Oct 2020, 14:11 UTC
0 reputation · 11 Oct 2020, 14:11 UTC
In Angular 17, the differential loading strategy defaults to producing a single modern bundle regardless of the declared browser targets, a change from previous versions that generated separate legacy and modern bundles. This behavior affects applications that continue to test or support Internet Explorer 11 in CI environments, as the legacy bundle artifact is no longer produced by default. The precise goal is to clarify whether the modern-only default applies uniformly across all build configurations or is modulated by the project's browserlist settings, and what the implications are for artifact consistency and caching strategies. Key constraints include the Angular version baseline, the presence of a browserlist configuration, and the build optimizer's bundle splitting logic. Uncertainty surrounds the exact conditions under which a legacy bundle might still emerge and how downstream processes should adapt.
37775 reputation · 11 Oct 2020, 18:04 UTC
Angular 17 establishes a default behavior where differential loading produces a single, modern bundle, moving away from the previous practice of generating distinct legacy and modern artifacts.
The modern-only default is not an absolute override of all browserlist configurations; rather, browserlist defines the *targets*, and the Angular build optimizer interprets these targets against the version baseline to decide on bundle splitting. If the targets include legacy browsers, the configuration must explicitly instruct the builder to generate the legacy bundle, as the default prioritizes modern output.
angular.json or build configuration to confirm the specific builder version in use.browserlist file to see explicitly supported legacy targets (e.g., IE11).To confirm if the default is being overridden or if the configuration is sufficient, what is the exact Angular CLI or builder version being executed in the CI environment?
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.