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('')}`; }