Allow re-exporting of templates such as styled
and css
from internal files
#851
Labels
feature: proposal 💬
New feature proposal that needs to be discussed
needs: triage 🏷
Issue needs to be checked and prioritized
Describe the feature
We'd like to be able to re-export the
css
andstyled
template literals. Currently, the babel plugin will only detect and replace imports from the linaria library. This, for example, would not work:./my-folder/linaria
./index.js
Since
css
is not being imported directly fromlinaria
Motivation
We have some linaria specific utilities (eg. shared styles and the like) that we house in a separate folder. It's a little cumbersome to also import the public API – if we could, we would re-export it from our internal folder to keep everything in one place.
Possible implementations
We could implement this either by adding logic to try to resolve the imports (might be tricky with custom configs) or to allow specifying which import paths may contain
styled
andcss
– I'd be happy to take direction on which of these is preferred.The text was updated successfully, but these errors were encountered: