wip: fix transform order

This commit is contained in:
Evan You
2019-09-23 07:57:56 -04:00
parent bb8524e199
commit b04be6a561
4 changed files with 6 additions and 9 deletions

View File

@@ -21,9 +21,9 @@ export function compile(
transform(ast, {
...options,
nodeTransforms: [
...(!__BROWSER__ && options.useWith === false ? [rewriteExpression] : []),
transformIf,
transformFor,
...(!__BROWSER__ && options.useWith === false ? [rewriteExpression] : []),
prepareElementForCodegen,
...(options.nodeTransforms || []) // user transforms
],