mirror of https://github.com/sveltejs/svelte
fix: ensure compiler statements are correctly included (#14074)
Fixes #14068 and fixes #14071pull/14075/head
parent
3b38bc2a77
commit
2bdc3d401f
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: ensure compiler statements are correctly included
|
@ -0,0 +1,8 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
compileOptions: {
|
||||||
|
dev: true // Render in dev mode to check that the validation error is not thrown
|
||||||
|
},
|
||||||
|
html: `<form></form>\nundefined`
|
||||||
|
});
|
@ -0,0 +1,11 @@
|
|||||||
|
<script>
|
||||||
|
let thisBug;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<form bind:this={thisBug}>
|
||||||
|
{#snippet Bug()}
|
||||||
|
cool
|
||||||
|
{/snippet}
|
||||||
|
</form>
|
||||||
|
|
||||||
|
{typeof thisBug}
|
Loading…
Reference in new issue