-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular-devkit/build-angularfeatureIssue that requests a new featureIssue that requests a new featureseverity4: memory/performance
Milestone
Description
🚀 Feature request
Having a possibility to serve ES2015 is awesome! But, the build time was increased nearly twice because now instead of one build we have two.
Please provide ways to deal with this.
Command (mark with an x
)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Description
The build time has significantly increased because ES5 and ES2015 builds are sequential.
Is there some reasoning behind this? Would it be faster to run them in parallel (at least with some explicit settings)?
Describe the solution you'd like
- Parallelize those builds by default (or with special CLI flag probably)
- Add a special CLI flag / configuration in angular.json that allows to build es5 and es2015 separately on different runners. This would be cool for CI because the builds could run on different physical devices (at least for CI tools where the dist folder gets mounted, e.g. Drone CI). This could cause problems with sharing the same
dist
directory (that is cleared before build), so this needs to be somehow resolved. However, if the option 1 is in place, I guess, this could be omitted
Describe alternatives you've considered
Disabling es2015 build :(
studioTeaTwo, kumaresan-subramani, AdamVig, liesahead, destus90 and 20 moresmnbbrv, kumaresan-subramani, 2RajShaikh, Steven-Harris and JulienKyu
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angularfeatureIssue that requests a new featureIssue that requests a new featureseverity4: memory/performance