Share styled-components #180
Closed
calinortan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, I was playing with microfrontends lately and was trying to share styled-components between host and any remote microfrontend.
It turns out that if the package you want to share contains both named exports and a default export, only the default one would be accesible for the consumer. And that happens because of this line right here.
Seems to be by design. Is this a known limitation?
I have also prepared a sandbox for reproducing this:
https://codesandbox.io/p/sandbox/microfrontends-styledcomponents-issue-forked-m69gs4?file=%2Fvite.config.ts&selection=%5B%7B%22endColumn%22%3A3%2C%22endLineNumber%22%3A8%2C%22startColumn%22%3A1%2C%22startLineNumber%22%3A6%7D%5D
Beta Was this translation helpful? Give feedback.
All reactions