Skip to content

Commit 394679f

Browse files
committed
ensure errors Array is always present in compiler output
1 parent bc034d3 commit 394679f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/platforms/web/compiler/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export function compile (
5858
})
5959
if (process.env.NODE_ENV !== 'production') {
6060
compiled.errors = errors.concat(detectErrors(compiled.ast))
61+
} else {
62+
compiled.errors = errors
6163
}
6264
return compiled
6365
}

0 commit comments

Comments
 (0)