Great, just tested nightly build and it works fine.
What I'm doing now is to use something like this:
copy my modules to sdcard in folder node_modules
use require by variable not by string to avoid loading from WebIDE
clear modules after running my init procedure
var b,n;
n = "myModule";
b = require(n).connect(......
// do a lot of functions
b = ""; //to delete the object created during require
Modules.removeCached(n);
// do whatever is used after initialization
Next test will be to split an application into modules which are loaded and unloaded by a main application.
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.
Great, just tested nightly build and it works fine.
What I'm doing now is to use something like this:
clear modules after running my init procedure
Next test will be to split an application into modules which are loaded and unloaded by a main application.