mirror of https://github.com/sveltejs/svelte
fix: account for mutations in script module in ownership check (#14253)
parent
7bc94b9984
commit
ae9f53a3bd
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: account for mutations in script module in ownership check
|
@ -0,0 +1,7 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
compileOptions: {
|
||||||
|
dev: true
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1,6 @@
|
|||||||
|
<script module>
|
||||||
|
let obj = $state({});
|
||||||
|
obj.test = "hi!";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<h1>Values: {JSON.stringify(obj)}</h1>
|
Loading…
Reference in new issue