fix(5019): add tests to validate store is hoisted

pull/5022/head
Bassam Ismail 5 years ago
parent 7a52cec1e0
commit 46d0d129b7

@ -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…
Cancel
Save