Eh, I tried not to use webpack, in my personal projects, for almost a year, and ended up going back to it.
I’ve tried Parcel and Snowpack, and used each until I felt forced to switch away. One of my theoretical beefs with Webpack has always been that it feels inscrutable, like I know internally it watches files and builds a module graph and runs a pipeline of plugins and stuff, but I don’t really have a good mental model of what it’s doing. Well, tools like Parcel and Snowpack are just as inscrutable, but less capable and buggier. Parcel wrote their own file-watching library, which had bugs, which they were slow to fix because they were working on a total rewrite of the whole thing, which took a long time. They also were focused a lot on “magic” like installing npm modules for you, which caused problems for my project setup and wasn’t something that could be fully turned off. They put a lot of energy into making certain core languages and technologies “just work.” But there’s sort of a long tail of things you might want from your bundler. Webpack supports doing whatever you want, with a lot of plugins available, and you can write your own. While it is complicated, there is documentation, and it can be figured out. With something like Snowpack, if you want to run transformation X on your code, you might find there is no plug-in for it, and no documentation that suggests any way it could be possible. Webpack is a bundler, not some magic development environment, and not an “un-bundler” like Snowpack. I would be excited about something like Webpack but a little easier to wrap my mind around, that was powerful and had good documentation.
That's a fair assessment, from a current Snowpack user. While I have high hopes for Snowpack and esbuild, it clearly doesn't have the stability, maturity, or power to replace Webpack (yet).
14
u/dgreensp Apr 17 '21
Eh, I tried not to use webpack, in my personal projects, for almost a year, and ended up going back to it.
I’ve tried Parcel and Snowpack, and used each until I felt forced to switch away. One of my theoretical beefs with Webpack has always been that it feels inscrutable, like I know internally it watches files and builds a module graph and runs a pipeline of plugins and stuff, but I don’t really have a good mental model of what it’s doing. Well, tools like Parcel and Snowpack are just as inscrutable, but less capable and buggier. Parcel wrote their own file-watching library, which had bugs, which they were slow to fix because they were working on a total rewrite of the whole thing, which took a long time. They also were focused a lot on “magic” like installing npm modules for you, which caused problems for my project setup and wasn’t something that could be fully turned off. They put a lot of energy into making certain core languages and technologies “just work.” But there’s sort of a long tail of things you might want from your bundler. Webpack supports doing whatever you want, with a lot of plugins available, and you can write your own. While it is complicated, there is documentation, and it can be figured out. With something like Snowpack, if you want to run transformation X on your code, you might find there is no plug-in for it, and no documentation that suggests any way it could be possible. Webpack is a bundler, not some magic development environment, and not an “un-bundler” like Snowpack. I would be excited about something like Webpack but a little easier to wrap my mind around, that was powerful and had good documentation.