Skip to content

Commit

Permalink
fix #408
Browse files Browse the repository at this point in the history
  • Loading branch information
aui committed Jun 3, 2017
1 parent d10f56b commit e505498
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/compile/adapter/rule.art.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}`);
};


Expand Down Expand Up @@ -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('')}`;
}
Expand Down

0 comments on commit e505498

Please sign in to comment.