This regression is almost certainly caused by https://github.com/rollup/plugins/pull/352. That's the only real commit in 4.1.2 and things work with 4.1.1. Furthermore that puts createWatchProgram in an if statement.
This issue has been reported by a few different users of the Sapper web framework (also created by Rich Harris) over the past few days https://github.com/sveltejs/sapper/issues/1293
@rollup/plugin-typescriptSteps:
npm run dev/fails and see the result 1src/routes/fails.ts and change 1 to 2. The change will be picked up and "rebuild"1 instead of the new 2The page should change
The page doesn't change
Also can reproduce on
It's possible that when #449 is completed and merged that this will be solved (?)
_Fwiw we don't typically triage plugin issues on versions that are a full major behind_
We're happy to review PRs that address the issue.
This is also broken in the latest release
@benmccann a quick fix could be to add process.env.ROLLUP_WATCH = true right before the rollup.watch inside the sapper RollupCompiler watch hook. But it might be better to wait for the PR
Here's the PR that will fix this: https://github.com/rollup/plugins/pull/449