|
|
@@ -117,7 +117,7 @@ export interface TransformContext
|
|
|
removeIdentifiers(exp: ExpressionNode | string): void
|
|
|
hoist(exp: string | JSChildNode | ArrayExpression): SimpleExpressionNode
|
|
|
cache<T extends JSChildNode>(exp: T, isVNode?: boolean): CacheExpression | T
|
|
|
- constantCache: Map<TemplateChildNode, ConstantTypes>
|
|
|
+ constantCache: WeakMap<TemplateChildNode, ConstantTypes>
|
|
|
|
|
|
// 2.x Compat only
|
|
|
filters?: Set<string>
|
|
|
@@ -181,7 +181,7 @@ export function createTransformContext(
|
|
|
directives: new Set(),
|
|
|
hoists: [],
|
|
|
imports: [],
|
|
|
- constantCache: new Map(),
|
|
|
+ constantCache: new WeakMap(),
|
|
|
temps: 0,
|
|
|
cached: 0,
|
|
|
identifiers: Object.create(null),
|