You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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
andacorn
.acorn
andmagic-string
both work in-browser (andmagic-string
and its only dependency usejsnext:main
, so they be bundled with Rollup). Thepath
functions can be replaced with internal helpers without too much difficulty.sander
is 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 customload
function which returns the contents of the sought module (it just so happens that the defaultload
usessander
to read from disk).The text was updated successfully, but these errors were encountered: