mirror of https://github.com/sveltejs/svelte
fix hoisting of imported, mutated stores (#5022)
parent
92578706b0
commit
0e2bc352df
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
compileOptions: { dev: true }, // tests `@validate_store` code generation
|
||||
|
||||
html: `
|
||||
<p>42</p>
|
||||
`
|
||||
};
|
@ -0,0 +1,3 @@
|
||||
import { writable } from '../../../../store';
|
||||
|
||||
export default writable(42);
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import foo from './foo.js';
|
||||
foo.bar = 'baz';
|
||||
const answer = $foo;
|
||||
</script>
|
||||
|
||||
<p>{answer}</p>
|
Loading…
Reference in new issue