Skip to content

Commit b6d2033

Browse files
author
starle
committed
fix(scripts): add error handling to verify-treeshaking script
1 parent 32bc647 commit b6d2033

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)