-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to Disable chunk optimization
for ng test command
#7363
Comments
Does |
ng test doesn't use AOT by default, but it does bundle your project, which is also quite slow. |
But build is slow only for the first time. You run |
@devoto13, on some systems it takes that long even during incremental reruns. |
|
chunk optimization
for ng test command
The "solution" to this is to turn off the source maps. Not sure about the state of the cheaper |
In my experience disabling source maps only marginally reduces the build time. It might save a few seconds, but when the chunk asset optimization step already goes on for a full 30 seconds, it isn't really much help. |
This isn't something we have turned on or off, it's just something that webpack always does while bundling code. Turning off sourcemaps helps but I don't know of any way to disable it, nor do I think it's possible currently in Webpack. Newer versions of the CLI also should heavily reduce that step in If someone shows me a repro where you see this behaviour I'd take a stab at diagnosing it though. Maybe there's more that can be done. |
To clarify though: AOT doesn't exist in |
The most recent version fixed incremental compile. It used to be
excruciating.
On Thu, Aug 17, 2017 at 11:20 AM Denis Loginov ***@***.***> wrote:
@devoto13 <https://github.com/devoto13>, on some systems it takes that
long even during incremental reruns.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7363 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAI4P3DL_YZiuvucokPdpTcXE6FrzgImks5sZIPQgaJpZM4O0_cP>
.
--
The World's Longest Ongoing Illustration
ForeverScape.com <http://www.foreverscape.com/> | @ForeverScape
<https://twitter.com/foreverscape> | On Github
<https://github.com/vance/foreverscapecore> | In the News
<http://www.foreverscape.com/art/reviews/>
|
Thanks for reporting this issue. This issue was originally reported a long time ago and since then we've had many releases, one of which might have addressed this problem. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Desired functionality.
As a developer, I'd like to disable
chunk optimization
during compilation forng 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.
The text was updated successfully, but these errors were encountered: