Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because if you use it in a library you immediately create a hard dependency to Webpack. Libraries should be designed to work with any bundlers, or even without a bundler at best.

Besides, I personally don't feel good with Webpack's do-everything-with-import approach. It is straightforward of course, but is ES6 import statement supposed be used like this?



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

Search: