mirror of https://github.com/sveltejs/svelte
fix: ensure dev validation in dynamic component works as intended (#11985)
Fixes #11984pull/11970/head
parent
f752b1e255
commit
3e1abc0b87
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: enusre dev validation in dynamic component works as intended
|
@ -0,0 +1,3 @@
|
|||||||
|
<script>
|
||||||
|
export let div;
|
||||||
|
</script>
|
@ -0,0 +1,11 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
compileOptions: {
|
||||||
|
dev: true
|
||||||
|
},
|
||||||
|
|
||||||
|
test({ assert, component, target }) {
|
||||||
|
// Shouldn't error
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
import Test from './Test.svelte'
|
||||||
|
|
||||||
|
let div
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:component this={Test} bind:div />
|
Loading…
Reference in new issue