fix: import patchFlags from @vue/shared in compiler instead
Otherwise this imports unnecessary stuff from the runtime.
This commit is contained in:
		
							parent
							
								
									a0f442f1d4
								
							
						
					
					
						commit
						9c9ef609d8
					
				@ -9,7 +9,7 @@ import {
 | 
				
			|||||||
import { TransformContext } from '../transform'
 | 
					import { TransformContext } from '../transform'
 | 
				
			||||||
import { APPLY_DIRECTIVES } from '../runtimeConstants'
 | 
					import { APPLY_DIRECTIVES } from '../runtimeConstants'
 | 
				
			||||||
import { PropsExpression } from './transformElement'
 | 
					import { PropsExpression } from './transformElement'
 | 
				
			||||||
import { PatchFlags } from '@vue/runtime-dom'
 | 
					import { PatchFlags } from '@vue/shared'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function hoistStatic(root: RootNode, context: TransformContext) {
 | 
					export function hoistStatic(root: RootNode, context: TransformContext) {
 | 
				
			||||||
  walk(root.children, context, new Map<TemplateChildNode, boolean>())
 | 
					  walk(root.children, context, new Map<TemplateChildNode, boolean>())
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user