wzrd.in icon indicating copy to clipboard operation
wzrd.in copied to clipboard

Package multiple modules together

Open balupton opened this issue 11 years ago • 6 comments

Would be nice if we could do something like:

//wzrd.in/bundle/[email protected]/[email protected]

Which would permanently redirect to the alphabetically sorted URL:

//wzrd.in/bundle/[email protected]/[email protected]

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/[email protected]/[email protected]/[email protected]

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

balupton avatar Dec 21 '13 10:12 balupton

+1

max-mapper avatar Dec 22 '13 21:12 max-mapper

+1, if we could use GET requests for that it would be awesome since we can give people friendly copy/paste HTML without setting up a redirect.

petehunt avatar Dec 26 '13 04:12 petehunt

If Max +1's it, I'm cool with it.

jfhbrook avatar Jul 10 '14 17:07 jfhbrook

would be great to get this in

balupton avatar Apr 06 '15 02:04 balupton

Might be mutually exclusive with #107 .

jfhbrook avatar Sep 12 '16 01:09 jfhbrook

+1. Would also be helpful if there was just a /core, or something to that effect, which just bundled all the built-in node modules

lufinkey avatar Mar 05 '18 19:03 lufinkey