wip: move compat test cases + filter tests

This commit is contained in:
Evan You
2021-04-29 16:58:14 -04:00
parent bb76cfae12
commit b4c92ccf6b
12 changed files with 306 additions and 29 deletions

View File

@@ -158,14 +158,13 @@ function parseFilter(node: SimpleExpressionNode, context: TransformContext) {
lastFilterIndex = i + 1
}
if (
filters.length &&
warnDeprecation(
CompilerDeprecationTypes.COMPILER_FILTERS,
context,
node.loc
)
) {
if (filters.length) {
__DEV__ &&
warnDeprecation(
CompilerDeprecationTypes.COMPILER_FILTERS,
context,
node.loc
)
for (i = 0; i < filters.length; i++) {
expression = wrapFilter(expression, filters[i], context)
}