I found this short tutorial on how to use webpack2 for authoring libraries:
https://webpack.js.org/guides/author-libraries/
I am curious though is externals directly related to my dependencies ?
If react is a dependency to my package I should not have it in my package right? It should be something I expect the user to have in their project. So including it as an external would make sense?