fix(compiler): bail strigification on runtime constant expressions

This commit is contained in:
Evan You
2020-05-04 15:15:26 -04:00
parent 3c3fe88c64
commit f9a3766fd6
5 changed files with 80 additions and 3 deletions

View File

@@ -195,6 +195,9 @@ export interface SimpleExpressionNode extends Node {
// an expression parsed as the params of a function will track
// the identifiers declared inside the function body.
identifiers?: string[]
// some expressions (e.g. transformAssetUrls import identifiers) are constant,
// but cannot be stringified because they must be first evaluated at runtime.
isRuntimeConstant?: boolean
}
export interface InterpolationNode extends Node {