I've been using modules for runtime files, and that's been very friendly, based on this update: construct.net/en/make-games/manuals/addon-sdk/guide/runtime-scripts/sdk-v2
Is it possible to use modules in Editor files also (so far, I have not had any luck trying out different combinations, like including the files in the Editor file addon.json list and then using import with the path?) I want to share modules between runtime and editor if possible also.
I don't think support for modules covered the editor scripts. You could use something like a bundler though to combine some editor modules in to a single editor script.
Develop games in your browser. Powerful, performant & highly capable.
I worked around it using a bundler and globalThis to share class definitions (similar to what C3 does). I was getting spoiled by using import/modules in runtime and hoped similar was available in the editor.
Thanks for the reply.