From e5054986755a0dde780c0828854605c781c07106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=96=E9=A5=BC?= Date: Sat, 3 Jun 2017 10:58:44 +0800 Subject: [PATCH] fix #408 --- src/compile/adapter/rule.art.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/compile/adapter/rule.art.js b/src/compile/adapter/rule.art.js index 5ff532f4..c641f250 100644 --- a/src/compile/adapter/rule.art.js +++ b/src/compile/adapter/rule.art.js @@ -19,9 +19,8 @@ const artRule = { // 旧版语法升级提示 const warn = (oldSyntax, newSyntax) => { - console.warn('Template upgrade:', - `{{${oldSyntax}}}`, `->`, `{{${newSyntax}}}`, - `\n`, options.filename || ''); + console.warn(`${options.filename || 'anonymous'}:${match.line + 1}:${match.start + 1}\n` + + `Template upgrade: {{${oldSyntax}}} -> {{${newSyntax}}}`); }; @@ -147,17 +146,6 @@ const artRule = { }, target); - } else if (options.imports[key]) { - - // ... v3 compat ... - warn('filterName value', 'value | filterName'); - - group = artRule._split(esTokens); - group.shift(); - - code = `${key}(${group.join(',')})`; - output = 'raw'; - } else { code = `${key}${values.join('')}`; }