3 ms·
When this happens, tree shaking is acting as a workaround for unfortunate library design. Utilities should be split up based on what they depend on. Otherwise,
by skybrian 5y ago
When this happens, tree shaking is acting as a workaround for unfortunate library design. Utilities should be split up based on what they depend on.
Otherwise, you end up downloading lots of libraries you don’t use, and then tree shaking prunes them. The final result is okay, but this results in unnecessary compiles and makes builds slower.