I'm using a self made component library to share components between my projects. The problem is that even after using the Authoring libraries guide by webpack
it keeps including those dependencies in my main build and I am out of ideas on what setting that this is caused by...
Build analysis (when bundling my app)
Here you can see the node_modules
and wizer-components/node_modules
. Including react-dom
twice (and others)
Build analysis (of a component)
As you can see no node_modules are bundled here...
Setting files
Because I can't find where the issue lies I have created gists of my config files:
webpack.config.js
(of component library)webpack.config.production.js
(of app)
Setup
Just as info, I'm using a monorepo setup with lerna
to npm link
the dependency of (wizer-components) without the need to push it to npm
as a module. Could this be an issue in where webpack thinks that it needs to re-add the react
(and others)?