Building a JavaScript Bundler
cpojer.net
cpojer.net
This is a very informative article and wroth reading. But I wonder, why should I need to build my own bundler?
> If we think of JavaScript testing as a map-reduce operation that maps over all test files and “reduces” them to test results, then JavaScript bundling maps over all source files and “reduces” them into a bundle
The more experienced you are, the more likely you are to be frustrated by the limitations of a framework and set off to write your own.
For example, there are hundreds of Web development frameworks of all sorts around, yet I set out to write my own, and spent five+ years doing it, because I was frustrated by the limitations of all the others.
Does anyone else need my framework? Maybe not.
But I have benefitted from it.
Snowpack is open source, but if I do want to contribute to the bundler though, I need to know how bundler work in general or else I won't understand what I am seeing.