DEV Community

Discussion on: 🥞 The tale of ESM and the bundlless bundler 📚

Collapse
 
chiubaca profile image
Alex Chiu

neat! so if i'm understanding this correctly, you're going to be extending the TS compiler, which will look up all of your project dependencies and convert them to ES modules...then that would eradicate the need for any bundling at all!?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

100% correct. And for those who say but thats lots of requests, I'm targeting HTTP2 servers that want lots of requests in smaller sizes. The exact opposite of a bundle.

Collapse
 
chiubaca profile image
Alex Chiu

very interesting, do you have a github repo for this? I started a recent a project with snowpack but hit the same issues as you and ended up just falling back to parcel.

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

Il get back to you soon about that. But I do need a name for it. Any ideas?

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

Here is a successful compile of all dependencies related to an example project currently nested in the repo.

  • The state of the code is very crappy and just a proof of concept today
  • Currently I am writing typescript and running with ts-node, I will make this a lot nicer soon.
  • Repo coming very soon I will post on this thread so you get notified.

success

Thread Thread
 
chiubaca profile image
Alex Chiu

look forward to it!

u know what they say, the two hardest things in programming is naming things and cache invalidation! 😜

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

Introducing Unpack

github.com/adam-cyclones/unpack

... but at the moment its broken because I am refactoring it into lib and cli packages.