-
Notifications
You must be signed in to change notification settings - Fork 12k
ng serve/test/e2e differential loading and IE support #14656
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
Comments
Hi, @benouat Let me answer some of your questions :)
Indeed this is true, infact it won't be downloaded because of the
The The polyfills file JavaScript version will be the same script target of the build, ie if it's an ES5 build the polyfills content will be in ES5 Js, while for an ES2015 build it will be ES2015. If you want to test on non es2015 browser you'd need to provide a different configuration as per my comment #14455 (comment), I hope the above makes some more sense :) I think it's best to keep the discussion in a single thread, being #14455. If we see that this has a big impact on the community we will re-open and propose a better alternative for this, Thanks. |
@alan-agius4 Thanks for your clarification ! 👍
Nonetheless, keeping a discussion thread on a closed issue seems a bit strange to me. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Is this a regression?
To me this sound as a regression.
ng serve/test/e2e
used to work out of the box for Internet Explorer on a freshly created project.Now it simply doesn't without tweaking the configuration (as proposed here) (which I clearly do not want to embrace... see my points in description below)
Description
I would like to be able to develop and test on legacy platforms in a transparent way. But I also want to benefit from differential loading.
ng build
supports differential loading both in dev and prod mode, apparentlyng serve
andng test
don't. (ng e2e
does not either as being build on top ofng serve
)I am fine for
ng serve
not doing it but I still do want to haveng test/e2e
working with real differential loading. It is even mandatory for anyone that needs to test Internet Explorer support.Workarounds proposed:
target: es5
for everyone intsconfig.json
and no differential loading).package.json
/angular.json
None of these workarounds suit my need.
🌍 Your Environment
Anything else relevant?
Trying to dig down all these things, I also ended up looking at the code of this commit
angular-cli/packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma-debug.html
Lines 32 to 33 in 6ec0991
What's the point of doing that? Any old browser will end-up loading both of them. Line 32 shouldn't have a
type="module"
?Even more, what's the point at all to load an
es5
compatible bundle where all the other one are onlyes2015
?Are my below statements right ?
es2015
compatible platform, thispolyfills-es5.js
should not be needed.es5
compatible platform, ifpolyfills.js
(evenruntime.js
which comes before) ises2015
it would'nt fly and would crash with syntax error (which is the case)I am really confused about this change performed in this commit... 😞
The text was updated successfully, but these errors were encountered: