• @nistvan.86 There is a different philosophy behind the new module. It has been created so that I could separate the JS mangling stuff like module resolution, optimizations and minification from the actual code upload to the boards. We exchanged ideas on this with @Gordon earlier here.

    So the workflow it has been designed in mind with is:

    • use the rollup-plugin-espruino-modules to create the final .js bundle
    • use the EspruinoTools (espruino npm module) to send the bundle to the board

    Or you could use the EspruinoTools (there a config/job variable for that) to run rollup for you with predefined config suitable for using with Espruino. I admit that this needs to get documented better... but you can have a look here.


Avatar for opichals @opichals started