Skip to content

Add an option to Disable es5 support in Build #14679

@navneetsingh-cpu

Description

@navneetsingh-cpu

🚀 Feature request

- [ ] new
- [x] build
- [ ] serve
- [ ] test

Description

with the release of Version 8, Both es5 and es2015 files are generated on ng build. e.g.

main-es5.js , main-es2015.js. Build time also increased due to running two times.

Describe the solution you'd like

Add a build parameter that disables generation of *-es5.js files. For a person using only Chrome ( latest) *-es5.js files aren't required. This will speed up the build and reduce number of files.

Describe alternatives you've considered

I can manually everytime delete these tags from html `<script src="*-es5.js" type="module">`

Stackoverflow post

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions