by tobiu · 6y ago · 0 comments
This is a new paradigm: you can now include JS modules directly into workers inside the browser. This will be fully supported in Chrome 80 (already works in canary). The concept makes debugging extremely convenient, since you get the real code without source-maps and the multi-threading gives a relly nice performance.
I just donated 1.5 years of my full and unpaid working time to the open source community with this :)
The dist versions work there, but for the dev mode, they need to catch up. The biggest problem is, that FF & Safari do not support modules inside the worker scope at all (although it is inside the W3C specs for a very long time). On top of this, FF does not support dynamic imports (they recently changed the dynamic import detection from a parse time to a run time error => before this point even unreachable code broke it).
https://github.com/neomjs/neo/tree/dev/docs/app/view
(e.g. look into the MainContainer & the matching controller)