Ability to Disable `chunk optimization` for ng test command
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search issues before submitting
- [x] feature request
Desired functionality.
As a developer, I’d like to disable chunk optimization
during compilation for ng test
command. Current builds on a project with a few dozen components takes 36-60 seconds on this step depending on CLI version. This is bad for unit testing.
Mention any other details that might be useful.
Because of this issue #5775 AOT/chunk is really really slow and makes unit testing ghastly.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:12 (4 by maintainers)
Top Results From Across the Web
How to Optimize your Angular App - Glovory Tech
This will disable the vendor chunk and will result in a smaller code. E.g. we compile into two sections (production & staging). ng...
Read more >ng serve command show an error first and in last compiled ...
I did my angular project set up locally on my machine with latest angular version, whenever I run the project with CLI command...
Read more >My Favorite Angular CLI Commands and Options - Amadou Sall
Disable the generation of sourcemaps. With this option you won't be able to debug your application correctly but it bypasses the "92% chunk...
Read more >ng test - Angular
Option Description Value Type Defau...
‑‑browsers Override which browsers tests are run against. string
‑‑code‑coverage Output a code coverage report. boolean false
‑‑code‑coverage‑exclude Globs to exclude...
Read more >Angular CLI - ng serve Command - Tutorialspoint
Sr.No. Option & Syntax Description
2 ‑‑aot=true|false Build using Ahead of Time compilation.
3 ‑‑baseHref=baseHref Base url for the application being built.
7 ‑‑deployUrl=deployUrl URL where...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ng test doesn’t use AOT by default, but it does bundle your project, which is also quite slow.
@devoto13, on some systems it takes that long even during incremental reruns.