I am currently working on extracting a few Vue.js components from the main application and converting them into an npm package stored in a repository. This package will be imported and utilized across two different websites. To bundle everything, I am utilizing Webpack, but I have some questions regarding the appropriate layout to use.
Since Vue.js and Vuex are already dependencies of the main application, I understand that once the package is installed on the two websites, it will automatically have access to these libraries.
My main dilemma lies in how to manage dependencies specific to the package itself. Should I include them in the webpack bundling, or will running npm install
on the websites automatically handle the installation of these 'dependencies of dependencies'? Is there a standard practice for handling this situation?