@@ -16,7 +16,7 @@ import { isString, isArray } from '@vue/shared'
16
16
import { CompilerError , defaultOnError } from './errors'
17
17
import { TO_STRING , COMMENT , CREATE_VNODE , FRAGMENT } from './runtimeConstants'
18
18
import { isVSlot , createBlockExpression , isSlotOutlet } from './utils'
19
- import { hoistStaticTrees } from './transforms/hoistStatic'
19
+ import { hoistStatic } from './transforms/hoistStatic'
20
20
21
21
// There are two types of transforms:
22
22
//
@@ -51,7 +51,7 @@ export interface TransformOptions {
51
51
nodeTransforms ?: NodeTransform [ ]
52
52
directiveTransforms ?: { [ name : string ] : DirectiveTransform }
53
53
prefixIdentifiers ?: boolean
54
- hoistStaticTrees ?: boolean
54
+ hoistStatic ?: boolean
55
55
onError ?: ( error : CompilerError ) => void
56
56
}
57
57
@@ -83,7 +83,7 @@ function createTransformContext(
83
83
root : RootNode ,
84
84
{
85
85
prefixIdentifiers = false ,
86
- hoistStaticTrees = false ,
86
+ hoistStatic = false ,
87
87
nodeTransforms = [ ] ,
88
88
directiveTransforms = { } ,
89
89
onError = defaultOnError
@@ -102,7 +102,7 @@ function createTransformContext(
102
102
vOnce : 0
103
103
} ,
104
104
prefixIdentifiers,
105
- hoistStaticTrees ,
105
+ hoistStatic ,
106
106
nodeTransforms,
107
107
directiveTransforms,
108
108
onError,
@@ -204,8 +204,8 @@ function createTransformContext(
204
204
export function transform ( root : RootNode , options : TransformOptions ) {
205
205
const context = createTransformContext ( root , options )
206
206
traverseNode ( root , context )
207
- if ( options . hoistStaticTrees ) {
208
- hoistStaticTrees ( root , context )
207
+ if ( options . hoistStatic ) {
208
+ hoistStatic ( root , context )
209
209
}
210
210
finalizeRoot ( root , context )
211
211
}
0 commit comments