mirror of https://github.com/sveltejs/svelte
fix initialisation of imported stores - fixes #2108
parent
ef3f75ad7d
commit
91332c540c
@ -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