Load es5 polyfills on ng test
#14335
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: CLI 7Description
The new
polyfills-es5.js
chunk is generated forng test
but never loaded.🔬 Minimal Reproduction
The browser builder loads es5 polyfills by injecting them into the index html in
angular-cli/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/browser.ts
Line 48 in 8089a3f
The karma builder has a two special index.html that it loads, and only the normal polyfills are listed
angular-cli/packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma-context.html
Line 31 in 8089a3f
angular-cli/packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma-debug.html
Line 32 in 8089a3f
It should also be added to the list in
angular-cli/packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma.ts
Line 211 in 8089a3f
@clydin also mentioned that the karma loaded scripts (
angular-cli/packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma-context.html
Lines 38 to 40 in 8089a3f
module
scripts because they defer by default, and recommend having a module and nomodule version of the karma script.🔥 Exception or Error
Unsure, probably missing native stuff on older browsers.
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: