Example taken from https://egghead.io/courses/immutable-javascript-data-structures-with-immer
and ported to Svelte
You may have to run:
yarn add esm
so the server works.
Run yarn run start-server on a terminal and yarn run dev on another one. Then, poen two browsers at localhost:5000 and see how they change at the same time!