3

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

4

1 回答 1

6

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
于 2015-11-11T17:05:27.537 回答