Is it compatible with Cocos2d-html5? We must keep Cocos2d-JSB and Cocos2d-html5 as the same, so that one game could run on both of them.
Please take a look on https://github.com/cocos2d/cocos2d-html5/pull/959, it is another solution of module loader.
Pros: It supports module loading in engine component.
Cons: Developer have to use module loading no matter they like it or not; It is hard to compile them into a single file with google closure compiler in advance mode.
In my opinion, it is better to pack whole Cocos2d-html5 engine as a module, and provides developers two choice, module loader and normal file loading.
Do you have any suggestions on Cocos2d-html5 module supporting?