fix(compiler-core): fix slot source location (#3494)
This commit is contained in:
		
							parent
							
								
									2121c32e22
								
							
						
					
					
						commit
						e752bddb33
					
				@ -623,7 +623,7 @@ function parseAttribute(
 | 
			
		||||
 | 
			
		||||
    if (match[2]) {
 | 
			
		||||
      const isSlot = dirName === 'slot'
 | 
			
		||||
      const startOffset = name.indexOf(match[2])
 | 
			
		||||
      const startOffset = name.lastIndexOf(match[2])
 | 
			
		||||
      const loc = getSelection(
 | 
			
		||||
        context,
 | 
			
		||||
        getNewPosition(context, start, startOffset),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user