Open rbong opened 2 years ago
This is what causes https://github.com/styled-components/babel-plugin-styled-components/pull/365
We have run into this issue using module federation and our in-house component library. babel-plugin-styled-components successfully namespaces styled components written within each app, preventing class name collision when multiple apps are loaded on the same page with module federation. However, each app also imports from our component library which is already transpiled, and these component class names are not namespaced, leading to class name collision bugs.
Commenting to add our support for @rbong's PR to add this support after testing it in our dev environment.
Imports which use
_interopRequireDefault
are not identified.Calls using
SequenceExpression
s are also not identified.