browserify/wzrd.in

Package multiple modules together

Open

#57 创建于 2013年12月21日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)JavaScript (630 star) (98 fork)batch import
help wantednice-to-have

描述

Would be nice if we could do something like:

//wzrd.in/bundle/query-engine@1.5.7/backbone@1.1.0

Which would permanently redirect to the alphabetically sorted URL:

//wzrd.in/bundle/backbone@1.1.0/query-engine@1.5.7

Which would then serve the combined package of those two modules, as if we did:

browserify -r backbone -r query-engine

This would be amazingly cool, as it would reduce duplication of modules that are included in separate packages, instead, all modules only get bundled once.

It'll also get super super cool when jQuery v2.1 is officially out with npm support. That way we could then do things like:

//wzrd.in/bundle/jquery@2.1.0/miniview@1.2.0/pointers@1.1.3

Of which, miniview and pointers both include this line in their source:

$ = @$ or window?.$ or (try require?('jquery'))

Allowing us to finally have a world where global dependencies are abolished!


Implementation wise, this seems like a nicer API for the POST /multi functionality: https://github.com/jesusabdullah/browserify-cdn#post-multi

贡献者指南

Package multiple modules together · browserify/wzrd.in#57 | Good First Issue