开发者

What Browser-side Javascript Module Loaders are production-ready?

开发者 https://www.devze.com 2023-01-06 10:31 出处:网络
I\'m working on a large web application with many javascript files. I\'d 开发者_如何学编程like to turn those into CommonJs Modules to make dependencies explicit. What browser-side loaders exist for Co

I'm working on a large web application with many javascript files. I'd 开发者_如何学编程like to turn those into CommonJs Modules to make dependencies explicit. What browser-side loaders exist for CommonJs modules, and what are their limitations?

Browser targeted CommonJS loaders that I can find are Tiki and Yabble. Has anyone tried them, and how well do they work?


Merge your scripts, to load it faster, http://www.sencha.com/products/jsbuilder/! It's not only build extjs, it can build any kind of javascript.

But if you need module loader, try RequireJS -- simple, well tested, well documented.


If you know exactly which files you want to package together, check out Demodule.

https://github.com/jaekwon/demodule

It supports CommonJS.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号