Skip to content

Commit

Permalink
docs: Adding changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Apr 7, 2022
1 parent e237804 commit fc1622f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clean-shoes-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'microbundle': patch
---

Don't attempt to write build stats in watch mode when there has been a build error/sizeInfo is `undefined`
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ function doWatch(options, cwd, steps) {
}
}
if (e.code === 'END') {
// fix NPE
if (options._sizeInfo) {
options._sizeInfo.then(text => {
stdout(`Wrote ${text.trim()}`);
Expand Down

0 comments on commit fc1622f

Please sign in to comment.