mirror of
				https://github.com/vuejs/babel-plugin-jsx.git
				synced 2025-11-04 11:22:19 +08:00 
			
		
		
		
	fix: exclude TemplateLiteral expression from isConstant
This commit is contained in:
		@@ -323,7 +323,7 @@ export const isConstant = (
 | 
			
		||||
      isConstant((property as any).value)
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
  if (t.isLiteral(node)) {
 | 
			
		||||
  if (t.isLiteral(node) && !t.isTemplateLiteral(node)) {
 | 
			
		||||
    return true;
 | 
			
		||||
  }
 | 
			
		||||
  return false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user