▲ | skydhash 4 days ago | |
Doesn’t the bundler already do tree shaking? Optimizing via dependency listing is very wrong. | ||
▲ | tracker1 4 days ago | parent [-] | |
Tree shaking is less than reliable... for it to work well, all the dependencies need to be TS/ESModule imports/exports and even then may not shake out properly. It helps, but not as much as judicious imports. I've been using Deno more for my personal projects which does have a pretty good @std library, though I do think they should keep methods that simply pass through to the Deno runtime, and should probably support working in Node and Bun as well. |