3 ms·
Congrats guys! It's been a pleasure using the pre 1.0 releases -- looking forward to trying 1.0 out. In addition to the overall polish, one of my favorite aspe
by paws 8y ago
Congrats guys! It's been a pleasure using the pre 1.0 releases -- looking forward to trying 1.0 out.
In addition to the overall polish, one of my favorite aspects of this library is the authors' focus on controlling bundle size.
Because of this library I learned that ES6 default imports may not be cheap.
VSCode users: consider checking out Import Cost extension [1] to keep an eye on this.
[1] https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost https://marketplace.visualstudio.com/items?itemName=wix.vsco...
- Griever 8y agoUnless I'm misunderstanding something, wouldn't Tree-Shaking remove the unnecessary code paths from each import? Assuming you're using Webpack 3+ that is.
- WorldMaker 8y agoTree-Shaking (in Webpack 3+) is still somewhat conservative at the module level unless the dependent library also declares "sideEffects": "false" in package.json.