Wow, nice - thanks! So with that gist you basically end up with a big JS file that you can just call espruinoRollup on and get a minified, tree-shaken result from?
Only thing I can see at the moment is that we need the modules to be loaded ahead of time because all the filesystem calls there are sync? But even so that could be done using the initial module loading code (it'd just have to be extended to deal with imports).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Wow, nice - thanks! So with that gist you basically end up with a big JS file that you can just call
espruinoRollup
on and get a minified, tree-shaken result from?Only thing I can see at the moment is that we need the modules to be loaded ahead of time because all the filesystem calls there are sync? But even so that could be done using the initial module loading code (it'd just have to be extended to deal with
imports
).