Closed ghost closed 8 years ago
Can you describe what you mean by a "lib"?
If you mean something similar to an npm package
, with its own dependencies, I can see how that could cause a problem. Is this library also depending on React?
yes. I resolved by declaring react as an external in webpack. :)
When I use svg-react-loader in a library which I pack with webpack, the user using this package gets:
If I remove the SVG components, it works fine.
I import them like this:
Using them within a project (not via a lib) works fine.