Hello! I noticed that the compiler would not run when a dependent JS file which is required in the entry-point file was modified, meaning the browserified output would be incorrect until the entry-point file itself was modified.
I've just modified the is_outdated method to generate a list of dependencies and check if any of them are out of date as compared to the compiled browserified file.
One thing to note is that it may very well be the case that the command to generate the list of dependencies takes just as long as actually compiling, which would mean we could simply force a recompile every time and it would take the same amount of time. Given that, it may not actually be worth while merging this pull request in, I just though I'd open it and give you the opportunity to do so if you wished.
Hello! I noticed that the compiler would not run when a dependent JS file which is
require
d in the entry-point file was modified, meaning the browserified output would be incorrect until the entry-point file itself was modified.I've just modified the
is_outdated
method to generate a list of dependencies and check if any of them are out of date as compared to the compiled browserified file.One thing to note is that it may very well be the case that the command to generate the list of dependencies takes just as long as actually compiling, which would mean we could simply force a recompile every time and it would take the same amount of time. Given that, it may not actually be worth while merging this pull request in, I just though I'd open it and give you the opportunity to do so if you wished.
Thanks!