Hacker News new | past | comments | ask | show | jobs | submit login

Unless I'm misunderstanding something, wouldn't Tree-Shaking remove the unnecessary code paths from each import? Assuming you're using Webpack 3+ that is.



Tree-Shaking (in Webpack 3+) is still somewhat conservative at the module level unless the dependent library also declares "sideEffects": "false" in package.json.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: