rollup / rollup-watch

Fast incremental rebuilds with Rollup CLI
MIT License
91 stars 23 forks source link

parsing error stops watching the file with error #38

Closed wojdyr closed 7 years ago

wojdyr commented 7 years ago

it's a minor annoyance, I suppose it was not intended

If I save a file with error the file is excluded from watching, and I need to restart rollup-watch.

bundling...
bundled in 321ms. Watching for changes...
[my debug line] removed .../model.js
bundling...
Error parsing .../model.js: Unexpected token (3:9) in .../model.js
Type rollup --help for help, or visit https://github.com/rollup/rollup/wiki

AFAICT the file is excluded by

filewatchers.delete( id );

see the end of https://github.com/rollup/rollup-watch/commit/78b0c286abde58d9e44171b8f5619f54656cb0e2