Skip to content
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

[optimizer] run webpack compilation ASAP (no more laziness) #15795

Merged
merged 2 commits into from Jan 9, 2018

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Dec 29, 2017

The "lazy" optimizer currently delays compilation until a request for build output is received. This prevents webpack from compiling constantly in the background, but also makes refresh times slower. Several people have said that they would prefer it be done the other way around, and just about every other watching compiler does it this way, so this pr removes that feature.

Changes will now immediately trigger a compilation and refreshes will be a little faster because compilation will either be complete or in progress before the refresh is actually started.

@jbudz
Copy link
Member

jbudz commented Jan 8, 2018

Is it expected for this to to always optimize on save (vs when a file is changed)?

@spalger
Copy link
Contributor Author

spalger commented Jan 8, 2018

I think so, if the modified timestamp is updated it will probably trigger a rebuild

Copy link
Contributor

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Adios WeirdControlFlow

@spalger spalger merged commit 499f7ce into elastic:master Jan 9, 2018
spalger added a commit to spalger/kibana that referenced this pull request Jan 9, 2018
…15795)

* [optimizer] run webpack compilation ASAP (no more laziness)

* [optimize] fix variable reference
spalger added a commit that referenced this pull request Jan 9, 2018
…5795) (#15917)

* [optimizer] run webpack compilation ASAP (no more laziness)

* [optimize] fix variable reference
@spalger
Copy link
Contributor Author

spalger commented Jan 9, 2018

6.1/6.x: ccb7949

@spalger spalger deleted the optimize-asap branch January 9, 2018 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Operations Team label for Operations Team v6.2.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants