OK. So I am back at this, maybe with some little more understanding on what Webpack is and such.
I still fail to make it work, though. I have split out my commands in separate files and use
export default in each of them. Getting the very similar error:
__skpm_run [native code]
I have pushed my latest attempt to this branch: https://github.com/PEZ/SketchDistributor/tree/skmpify
If someone can spot some errors I am making, that would be awesome. A strange thing I notice is that my
Distributor.cocoascript file is not moved into the plugin generated code (included in that repo) and also, unlike some other skpm built plugins I've seen, its content is not inlined in the generated scripts either.