Skip to content

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

Merged
spalger merged 2 commits into
elastic:masterfrom
spalger:optimize-asap
Jan 9, 2018
Merged

spalger merged 2 commits into
elastic:masterfrom
spalger:optimize-asap

Conversation

@spalger

@spalger spalger commented Dec 29, 2017

Copy link
Copy Markdown
Contributor

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

jbudz commented Jan 8, 2018

Copy link
Copy Markdown
Contributor

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

@spalger

spalger commented Jan 8, 2018

Copy link
Copy Markdown
Contributor Author

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

@tylersmalley tylersmalley left a comment

Copy link
Copy Markdown
Member

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

spalger commented Jan 9, 2018

Copy link
Copy Markdown
Contributor Author

6.1/6.x: ccb7949

@spalger
spalger deleted the optimize-asap branch January 9, 2018 17:10
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…15795)

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

* [optimize] fix variable reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants