Yeah, I know - sorry about that PR. I've been on the fence about adding the big chunk of extra code for far too long, but I'll try and get it in this/next week. It's just a shame we can't do some kind of 'load on demand' thing.
I'm unsure about how rollup would work in the Web IDE though - doesn't it expect to be able to pull in NPM modules? I don't see how that'd work at all when running in the browser.
Presumably we could add command-line options for EspruinoTools such that you could use it with rollup/babel/etc if they had been installed by NPM (without requiring that the espruino NPM package actually depended on all of them).
@MaBe yeah, I definitely wouldn't want to start building modules in 'just because' - personally I'd have thought that having the ability to grab modules from Storage, and perhaps having a nice method of loading modules/files via the IDE would be far more useful for people?
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.
Yeah, I know - sorry about that PR. I've been on the fence about adding the big chunk of extra code for far too long, but I'll try and get it in this/next week. It's just a shame we can't do some kind of 'load on demand' thing.
I'm unsure about how rollup would work in the Web IDE though - doesn't it expect to be able to pull in NPM modules? I don't see how that'd work at all when running in the browser.
Presumably we could add command-line options for EspruinoTools such that you could use it with rollup/babel/etc if they had been installed by NPM (without requiring that the
espruino
NPM package actually depended on all of them).@MaBe yeah, I definitely wouldn't want to start building modules in 'just because' - personally I'd have thought that having the ability to grab modules from
Storage
, and perhaps having a nice method of loading modules/files via the IDE would be far more useful for people?