Hi *,
I’d like to know how to import modules within a PromiseWorker.
In my addon, the files are organized like this:
main.js
promise_worker.js
/data
/engine
common.js
module1.js
module2.js
...
/subengine
subengine.js
...
I have no issue when I call the modules from main.js. Using require is enough:
require('./engine/module1.js');
require('./engine/subengine/subengine.js');
But it doesn’t work if I call these modules or submodules from the PromiseWorker module.