Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
fix: devServer.sockWrite log update
Browse files Browse the repository at this point in the history
  • Loading branch information
virgoone committed Nov 7, 2021
1 parent 62ee4c2 commit 04e4921
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/commands/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ module.exports = async (defaultPort) => {
const useYarn = fs.existsSync(yarnLockFile)
const tscCompileOnError = process.env.TSC_COMPILE_ON_ERROR === 'true'
const devSocket = {
warnings: (warnings) =>
devServer.sockWrite(devServer.sockets, 'warnings', warnings),
warnings: (warnings) => {
console.warn(warnings)
devServer.sockWrite(devServer.sockets, 'warnings', warnings)
},
errors: (errors) => {
console.error(errors)
devServer.sockWrite(devServer.sockets, 'errors', errors)
}
}
Expand Down

0 comments on commit 04e4921

Please sign in to comment.