Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Weird behavior with Rollup running twice on save #188

Description

@arxpoetica

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:

  1. install and run
npx degit "sveltejs/sapper-template#rollup" my-app
cd my-app
npm install
npm run dev
  1. 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:

image

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions