Skip to content

Commit

Permalink
close compiler on done
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Dec 19, 2018
1 parent f2d82f9 commit 2a1a02d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ module.exports = (
if (err) return reject(err);
if (stats.hasErrors())
return reject(new Error(stats.toString()));
resolve();
compiler.close(() => {
resolve();
});
});
})
.then(finalizeHandler);
Expand Down

0 comments on commit 2a1a02d

Please sign in to comment.