feat(compiler): better warning for invalid expressions in function/browser mode

fix #1266
This commit is contained in:
Evan You
2020-06-11 16:31:51 -04:00
parent 10bb34bb86
commit e29f0b3fc2
7 changed files with 159 additions and 1 deletions

View File

@@ -36,7 +36,9 @@ export function getBaseTransformPreset(
trackVForSlotScopes,
transformExpression
]
: []),
: __BROWSER__ && __DEV__
? [transformExpression]
: []),
transformSlotOutlet,
transformElement,
trackSlotScopes,