It's unclear where this behavior is stemming from (might be Rollup, might be Sapper, might be Svelte, might be something weird on my computer), but I'm just going to put it here until we can isolate a little better.
Problem: when saving files, Rollup/restart runs twice; it's inconsistent with different ways of saving/updating files.
To repeat the behavior, do the following:
- install and run
npx degit "sveltejs/sapper-template#rollup" my-app
cd my-app
npm install
npm run dev
- save a file to see behavior
Open up a second terminal window and try the following:
cd my-app
echo " " >> src/routes/_layout.svelte
It's double saving/rolling up:

ODDLY if I open up the file and make a tweak in VIM, it does not double save/run. Can't figure out the difference.
It's unclear where this behavior is stemming from (might be Rollup, might be Sapper, might be Svelte, might be something weird on my computer), but I'm just going to put it here until we can isolate a little better.
Problem: when saving files, Rollup/restart runs twice; it's inconsistent with different ways of saving/updating files.
To repeat the behavior, do the following:
Open up a second terminal window and try the following:
It's double saving/rolling up:
ODDLY if I open up the file and make a tweak in VIM, it does not double save/run. Can't figure out the difference.