Supporting CommonJS modules

2017-03-13

This is a post for developers.

With the release of v0.5.2, Boomla landed support for writing modular JavaScript apps, by implementing the CommonJS 1.1 module system.

The sjs-3 docs were updated, in particular, look for the specification of the require() method.

To import external libraries (be it 3rd party or your own), use the import link.

(Many thanks Bernát for prototyping this feature and providing lots of input!)


Best,

you can follow me on Twitter