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

setTimeout -> setImmediate #21

Merged
merged 1 commit into from Nov 24, 2016
Merged

Conversation

somebody32
Copy link
Contributor

If you run webpack not directly but through a wrapper (like grunt-webpack) then using setTimeout generates race conditions: sometimes grunt is killing webpack thinking that everything went good and bundle-analyze is not firing at all.

Changing that to setImmediate fixes the problem and still placing all the logs to the bottom

to be sure that bundle-analyzer is not killed if you run webpack through wrappers like grunt-webpack
@somebody32 somebody32 mentioned this pull request Nov 24, 2016
@th0r
Copy link
Collaborator

th0r commented Nov 24, 2016

Thanks!

@th0r th0r merged commit d3e0da5 into webpack-contrib:master Nov 24, 2016
@th0r
Copy link
Collaborator

th0r commented Nov 24, 2016

In v1.5.4

@somebody32 somebody32 deleted the patch-1 branch November 24, 2016 15:00
eirikurn pushed a commit to aranja/webpack-bundle-analyzer that referenced this pull request Feb 7, 2017
It appears to be a common issue that the `webpack --json` output can
include non-JSON content with certain plugins or loaders.

Trying to extract the JSON output automatically from the mixed input is
likely to be tricky, but we can at least provide a clearer diagnosis of
the problem.

Fixes webpack-contrib#13
Fixes webpack-contrib#19
Fixes webpack-contrib#21
Fixes webpack-contrib#30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants