mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 21:17:55 +08:00
ensure errors Array is always present in compiler output
This commit is contained in:
parent
bc034d33a4
commit
394679fc70
@ -58,6 +58,8 @@ export function compile (
|
||||
})
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
compiled.errors = errors.concat(detectErrors(compiled.ast))
|
||||
} else {
|
||||
compiled.errors = errors
|
||||
}
|
||||
return compiled
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user