question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to Disable `chunk optimization` for ng test command

See original GitHub issue

Bug 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:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Simon-Briggscommented, Aug 17, 2017

ng test doesn’t use AOT by default, but it does bundle your project, which is also quite slow.

1reaction
dinvladcommented, Aug 17, 2017

@devoto13, on some systems it takes that long even during incremental reruns.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found