I am using rollup.js to transpile the module dependencies from a file 'main.js'
rollup main.js
Is there a watch option to rerun the transpilation when a source file changes
I am using rollup.js to transpile the module dependencies from a file 'main.js'
rollup main.js
Is there a watch option to rerun the transpilation when a source file changes
As of v0.29 you can use rollup --watch
.
No there is not yet (command line options). There has been an issue opened for this just yesterday.
Rich-Harris wrote:
Agree. We intend to add some functionality around incremental builds (#191), and this would go hand-in-hand with that. The goal would be for the incremental build stuff to be flexible enough to integrate with existing build systems, but I think it'd make sense for the CLI to support it out of the box:
rollup -c --watch