Peter Saxton
Peter Saxton

Reputation: 4676

Is there a watch option when using rollup.js from the command line

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

Upvotes: 3

Views: 4115

Answers (1)

Felix Kling
Felix Kling

Reputation: 817228

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

Upvotes: 6

Related Questions