Open demeralde opened 3 years ago
for this to work you will need to extend the webpack babel plugin with these plugins:
"babel-plugin-twin",
"babel-plugin-macros",
So in the webpack transformer of the react-tailwind-env, you will need to search for the correct rule in both devServerConfig and previewConfig (the rule is not exactly the same) and add them. You will also need to make sure these 2 plugins are dependencies of the env.
@GiladShoham thanks, I'll give it a shot and let you know how it goes.
I can't seem to get Bit working with
twin.macro
.Basically the problem is it thinks this
styled
import doesn't exist:And then it throws this error:
However,
twin.macro
has worked fine with my other projects. So I'm not sure what's going on here. Any ideas?Reproducible environment
https://github.com/dspacejs/react-tailwind-env
Check the
tailwind-button.tsx
component for where I've tried usingtwin.macro
.