Skip to content

Load es5 polyfills on ng test #14335

Closed
Closed
@filipesilva

Description

@filipesilva

🐞 Bug report

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [x] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Yes, the previous version in which this bug was not present was: CLI 7

Description

The new polyfills-es5.js chunk is generated for ng test but never loaded.

🔬 Minimal Reproduction

The browser builder loads es5 polyfills by injecting them into the index html in

The karma builder has a two special index.html that it loads, and only the normal polyfills are listed

It should also be added to the list in

@clydin also mentioned that the karma loaded scripts (

<script type="text/javascript">
window.__karma__.loaded();
</script>
) might be problematic in conjunction with 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


@angular/cli@8.0.0-rc.2

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions