Skip to content

stats.toJson() blocking HMR in onDevCompileDone #5099

Closed Answered by chenjiahan
ms-jb asked this question in Q&A
Discussion options

You must be logged in to vote

Large stats objects can introduce significant Rust-JS communication overhead.

Usually we recommend getting the timing like this:

const statsJson = stats.toJson({
  all: false,
  timings: true,
});

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ms-jb
Comment options

Answer selected by ms-jb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants