[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2025-04-14 00:14:01 +00:00 committed by Star
parent 8ead7f094b
commit 714f35f26e
1 changed files with 43 additions and 41 deletions

View File

@ -2,7 +2,8 @@
import fs from 'node:fs'
import { exec } from './utils.js'
exec('pnpm', ['build', 'vue', '-f', 'global-runtime']).then(() => {
exec('pnpm', ['build', 'vue', '-f', 'global-runtime'])
.then(() => {
const errors = []
const devBuild = fs.readFileSync(
@ -46,7 +47,8 @@ exec('pnpm', ['build', 'vue', '-f', 'global-runtime']).then(() => {
`Found the following treeshaking errors:\n\n- ${errors.join('\n\n- ')}`,
)
}
}).catch(error => {
})
.catch(error => {
console.error(`Treeshaking verification failed: ${error.message}`)
process.exit(1)
})