mirror of https://github.com/sveltejs/svelte
ensure spring works server-side = fixes #2773
parent
d9dd8128a3
commit
aa35bb5634
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
html: `<p>0</p>`
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
import { spring } from 'svelte/motion';
|
||||
|
||||
const x = spring(0);
|
||||
x.set(1);
|
||||
</script>
|
||||
|
||||
<p>{$x}</p>
|
Loading…
Reference in new issue