question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unbundle the http module?

See original GitHub issue

Wanted to get your thoughts on whether the http module still makes sense to bundle with choo? As opposed to pointing folks to it in the readme as a “recommended” module. But if you don’t need to make http requests, it isn’t really relevant for you.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ahdinosaurcommented, Jun 21, 2016

@timwis i think the intention behind bundling xhr within choo as choo/http is for choo to be an opinionated grab-bag of what you need for common applications. since the choo/http module is separate from the top-level choo module, if you don’t need to make http requests then you can choose to not require('choo/http') and thus your bundle will not include xhr, so the only penalty is the minimal time it took to install xhr when you installed choo (which is not much since xhr is tiny). i personally like this approach of grab bag modules, but it is a slight departure from a pure “batteries not included” approach.

0reactions
yoshuawuytscommented, Jun 22, 2016

Hah yeah, think it’s alright to keep it for now and close this then. If someone feels strongly about it discussion is def welcome, always welcome to reopen!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser module loading - can we stop bundling yet? - sgom.es
We're not dealing with the dependency issue in the unbundled versions yet, though; the browser still has to load each individual JS file...
Read more >
unbundle - npm
Unbundle is designed for, for not limited to, delivering web apps with protocols like HTTP/2 Server Push. Other tools can be used to...
Read more >
Using Native, Unbundled ES6 Modules With a Simple Build ...
HTTP /2 and caching help out a lot here, but the browser still has to request every single module before it can start...
Read more >
Unbundling the JavaScript module bundler by Luciano ...
Codemotion Rome 2018 - Today we all use Webpack (right?), but I remember a time when you had to manually copy-paste JavaScript files...
Read more >
Building without bundling: How to do more with less
Unbundled roadblock #1: Browsers don't yet support importing by package name (known as importing by “bare module specifiers”).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found