The current integration is very hacky as I was aiming primarily to get something working asap, also because the original project is not bundled it make the integration difficult.
I think the best approach is to make some PR to the original project to get it bundled and then redo the integration.
Some tips would be, that the current project initialization in for initing the editor etc as well as initing the whole thing as a pwa, would be good to separate these concerns so we can skip the latter.
also the wasm file is like 7mb, and I think it's eating through my netlify cdn bandwidth. Currently it's loaded on page load. Might be best to lazy load this when a User actually trys to use the ide (I'm not sure if netlify invalidates all cached files on each build, if so that's a shame for such a big file that's not going to change much. Might be good to look into.)
Also might be good for cadhub to "own" the editor/ide, so that we can keep that consistent for future integrations but that might be cross that bridge when we get to it.
You can see the changes I have made here
zalo/CascadeStudio@master...Irev-Dev:master
But is obviously not great, plenty of things have just been commented out.