mirror of https://github.com/sveltejs/svelte
				
				
				
			fix: place `let:` declarations before `{@const}` declarations (#16985)
	
		
	
				
					
				
			* fix: place `let:` declarations before `{@const}` declarations
* lint
* fix
			
			
				pull/16984/head
			
			
		
							parent
							
								
									c8ef540985
								
							
						
					
					
						commit
						9a488d6b25
					
				| @ -0,0 +1,5 @@ | ||||
| --- | ||||
| 'svelte': patch | ||||
| --- | ||||
| 
 | ||||
| fix: place `let:` declarations before `{@const}` declarations | ||||
| @ -0,0 +1,5 @@ | ||||
| import { test } from '../../test'; | ||||
| 
 | ||||
| export default test({ | ||||
| 	html: 'foo' | ||||
| }); | ||||
| @ -0,0 +1 @@ | ||||
| <slot data='foo'></slot> | ||||
| @ -0,0 +1,7 @@ | ||||
| <script> | ||||
|     import Component from './component.svelte'; | ||||
| </script> | ||||
| <Component let:data> | ||||
|     {@const thing = data} | ||||
|     {thing} | ||||
| </Component> | ||||
					Loading…
					
					
				
		Reference in new issue