4 ms·
Incidentally, I also ran into this exact problem with the same package. I briefly thought, "they should let us download individual packages", but since I was al
by IceDane 4y ago
Incidentally, I also ran into this exact problem with the same package. I briefly thought, "they should let us download individual packages", but since I was already about to bundle everything with esbuild, I didn't look into it.
So that's what I ended up doing: using esbuild. It should only be including what is in use, and the result was fine, even though this service was the largest of the services. But I'm still going to install the separate package and see how much that brings the bundle size down.
- danvk 4y agoI'm curious about the results, but remember that this article is talking about the type declarations files that tsc has to read (.d.ts files), not the JS that winds up in your bundle.