jlengstorf / learn-rollup

This is an example project to accompany a tutorial on using Rollup.
https://code.lengstorf.com/learn-rollup-js/
ISC License
191 stars 61 forks source link

How do you handle JavaScript errors? #19

Closed vinkla closed 7 years ago

vinkla commented 7 years ago

Right now if there is an error thrown in the JavaScript we've to restart the build process manually by running the npm script again. So if I manage to fix the error in my code, Rollup start compiling again. Is there away around this?

Sometimes when it tries to recompile again I get this error:

Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded

Whenever this error pops up I've to restart the script again.

vinkla commented 7 years ago

Never mind, it seems to be a bug in Rollup https://github.com/rollup/rollup/issues/1153