From a200305b9f29458eded4e060b025a5ca98492d29 Mon Sep 17 00:00:00 2001 From: HcySunYang Date: Tue, 4 Sep 2018 03:53:21 +0800 Subject: [PATCH 1/4] fix(#8730): improve error reporting at compile time --- src/compiler/parser/index.js | 15 +++++++++++++-- test/unit/modules/compiler/parser.spec.js | 11 +++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/compiler/parser/index.js b/src/compiler/parser/index.js index a603b36bb55..99bc651918b 100644 --- a/src/compiler/parser/index.js +++ b/src/compiler/parser/index.js @@ -331,8 +331,19 @@ export function processElement (element: ASTElement, options: CompilerOptions) { function processKey (el) { const exp = getBindingAttr(el, 'key') if (exp) { - if (process.env.NODE_ENV !== 'production' && el.tag === 'template') { - warn(`