It would be useful to be able to run rollup in-browser, for the sake of custom builders (cc @mbostock) and interactive demos.
There are four external dependencies - path, sander, magic-string and acorn. acorn and magic-string both work in-browser (and magic-string and its only dependency use jsnext:main, so they be bundled with Rollup). The path functions can be replaced with internal helpers without too much difficulty.
sander is a little trickier, since it's a wrapper around fs. But if there were a neat way to exclude it from the build there'd be no problem - it's possible to supply a custom load function which returns the contents of the sought module (it just so happens that the default load uses sander to read from disk).
It would be useful to be able to run rollup in-browser, for the sake of custom builders (cc @mbostock) and interactive demos.
There are four external dependencies -
path,sander,magic-stringandacorn.acornandmagic-stringboth work in-browser (andmagic-stringand its only dependency usejsnext:main, so they be bundled with Rollup). Thepathfunctions can be replaced with internal helpers without too much difficulty.sanderis a little trickier, since it's a wrapper aroundfs. But if there were a neat way to exclude it from the build there'd be no problem - it's possible to supply a customloadfunction which returns the contents of the sought module (it just so happens that the defaultloadusessanderto read from disk).