mirror of https://github.com/sveltejs/svelte
fix initialisation of imported stores - fixes #2108
parent
3eea2ee597
commit
854e012459
@ -0,0 +1,5 @@
|
|||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<p>42</p>
|
||||||
|
`
|
||||||
|
};
|
@ -0,0 +1,3 @@
|
|||||||
|
import { writable } from '../../../../store.js';
|
||||||
|
|
||||||
|
export default writable(42);
|
@ -0,0 +1,6 @@
|
|||||||
|
<script>
|
||||||
|
import foo from './foo.js';
|
||||||
|
const answer = $foo;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>{answer}</p>
|
Loading…
Reference in new issue