My use case:
I have a Button component with Material UI. I want to export that component to bit component, but while compiling the bit build
, I get an error on Material UI modules:
How do I isolate a component if it has external library dependencies?
You can reference dependencies (and peerDependencies) in the "workspace.jsonc" file like this:
Here is the documentation.
Certain use cases need "Compositions" to use building blocks in isolation, mocking how a component would function in a project.