Re: miniSphere 4.7.1
Reply #1835 –
The lack of CommonJS support isn't a problem, CJS isn't hard to implement, you could even do it directly in JS if you wanted to. You just wrap the text of the module in
(function(exports, require, module, __filename, __dirname) {
// your module here
})
and then call the function with the relevant parameters; the trickiest part is implementing require() in C because it's context-sensitive (path is relative to module calling it). Other than that it's fairly painless.
The hard part, and the reason I keep putting it off, is like Rhuan says, both major JS engines have a C++ API so making them interoperate with miniSphere which is written in C isn't exactly trivial. It can be done, but it's a big investment of time.