Skip to content

Commit

Permalink
refactor(repack): improve HMR performance (#427)
Browse files Browse the repository at this point in the history
* perf(repack): retrieve only needed stats in LoggerPlugin

* chore: add changeset
  • Loading branch information
jbroma authored Oct 10, 2023
1 parent a66785d commit e86db86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-otters-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@callstack/repack": patch
---

Improve performance of HMR
1 change: 1 addition & 0 deletions packages/repack/src/webpack/plugins/LoggerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export class LoggerPlugin implements WebpackPlugin {
compiler.hooks.done.tap('LoggerPlugin', (stats) => {
if (this.config.devServerEnabled) {
const { time, errors, warnings } = stats.toJson({
all: false,
timings: true,
errors: true,
warnings: true,
Expand Down

0 comments on commit e86db86

Please sign in to comment.