Is there any documentation about how can i add external js files/libs to the plugin with worker-support? I would like to make my plugins workers-ready :)
I have add the lines on my code:
this._info.AddFileDependency({ filename: "my-external-lib.js", type: "external-script" });
.. but i cant access on it. "window" not work on "workers" (self is the same).
You can use " globalThis"
construct.net/en/make-games/manuals/construct-3/scripting/using-scripting/javascript-construct
Develop games in your browser. Powerful, performant & highly capable.
For me it works only with
type: "inline-script"
.. but not with ..
type: "external-script"
EDIT: The problem is, i can't use inline-script. All scripts from external library are minifed on export too.. and then no longer work. I need a solution with external-script.