it’s a bunch of commonjs modules with nodejs as a backend if that answers your question. or at least, that’s my understanding. it might actually be one giant commonjs module with a billion functions stuffed into it, i’m still trying to get my head around it
all the editor itself does is generate data files for the commonjs functions to use as input
edit: ok they’re not really modules per se, everything in the js files is left completely global and there are no import or export statements anywhere
expanding the engine’s function calls should be as simple as
var MyNamespace.someFunction = OldLibrary.someFunction;
OldLibrary.someFunction = function() {
//call some other function, e.g. something from a typescript class
MyNamespace.someFunction.call(this);
};