mirror of https://github.com/vuejs/core.git
				
				
				
			refactor(compiler-sfc): remove duplicate judgment conditions (#4368)
This commit is contained in:
		
							parent
							
								
									d8da4214fc
								
							
						
					
					
						commit
						c51fb74599
					
				|  | @ -201,14 +201,12 @@ export function compileScript( | ||||||
|       let content = script.content |       let content = script.content | ||||||
|       if (cssVars.length) { |       if (cssVars.length) { | ||||||
|         content = rewriteDefault(content, `__default__`, plugins) |         content = rewriteDefault(content, `__default__`, plugins) | ||||||
|         if (cssVars.length) { |         content += genNormalScriptCssVarsCode( | ||||||
|           content += genNormalScriptCssVarsCode( |           cssVars, | ||||||
|             cssVars, |           bindings, | ||||||
|             bindings, |           scopeId, | ||||||
|             scopeId, |           !!options.isProd | ||||||
|             !!options.isProd |         ) | ||||||
|           ) |  | ||||||
|         } |  | ||||||
|         content += `\nexport default __default__` |         content += `\nexport default __default__` | ||||||
|       } |       } | ||||||
|       return { |       return { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue