Skip to content

Commit 8ead7f0

Browse files
starlelistar
starle
authored andcommitted
fix(scripts): add error handling to verify-treeshaking script
1 parent f7dad6d commit 8ead7f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/verify-treeshaking.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@ exec('pnpm', ['build', 'vue', '-f', 'global-runtime']).then(() => {
4646
`Found the following treeshaking errors:\n\n- ${errors.join('\n\n- ')}`,
4747
)
4848
}
49+
}).catch(error => {
50+
console.error(`Treeshaking verification failed: ${error.message}`)
51+
process.exit(1)
4952
})

0 commit comments

Comments
 (0)