mirror of https://github.com/sveltejs/svelte
				
				
				
			fix: ensure each block references to imports are handled correctly (#13892)
	
		
	
				
					
				
			
							parent
							
								
									59ff7f1e88
								
							
						
					
					
						commit
						4cf2d4a904
					
				@ -0,0 +1,5 @@
 | 
				
			||||
---
 | 
				
			||||
'svelte': patch
 | 
				
			||||
---
 | 
				
			||||
 | 
				
			||||
fix: ensure each block references to imports are handled correctly
 | 
				
			||||
@ -0,0 +1,6 @@
 | 
				
			||||
import { test } from '../../test';
 | 
				
			||||
 | 
				
			||||
export default test({
 | 
				
			||||
	html: `<input type="text">`,
 | 
				
			||||
	ssrHtml: `<input type="text" value="">`
 | 
				
			||||
});
 | 
				
			||||
@ -0,0 +1,7 @@
 | 
				
			||||
<script>
 | 
				
			||||
	import { foo } from './utils';
 | 
				
			||||
</script>
 | 
				
			||||
 | 
				
			||||
{#each foo.bar as bar}
 | 
				
			||||
	<input type="text" bind:value={bar.value} />
 | 
				
			||||
{/each}
 | 
				
			||||
@ -0,0 +1,9 @@
 | 
				
			||||
export const foo = {
 | 
				
			||||
	get bar() {
 | 
				
			||||
		return [
 | 
				
			||||
			{
 | 
				
			||||
				value: ''
 | 
				
			||||
			}
 | 
				
			||||
		];
 | 
				
			||||
	}
 | 
				
			||||
};
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue