Skip to content

Commit

Permalink
feat: add error log when build optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuang committed Feb 29, 2024
1 parent ff2f6de commit 8d21bfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/utils/src/server/vite/config-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ const asyncOptimizeChunkPlugin = (): Plugin => {
})
return await new Promise((resolve) => {
if (err) {
logErr(JSON.stringify(err))
writeEmitter.on('buildEnd', () => {
for (const id of moduleIds) {
setGenerateMap(id)
Expand Down

0 comments on commit 8d21bfb

Please sign in to comment.