New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommonJS Exports #87
Comments
hey, thanks for the issue. yup, i'm up for adding support for this, and I've opened up a PR: #91. I'm not super familiar with this stuff, wondering if you could maybe review the PR for me, and maybe try it out in your project -- I published the code in the PR as a beta version which you can install with I tried it out locally in a RN app, and I lost typescript types until i put the I'd like it if someone who was using RN-web could test it as well. maybe @smlarkin or @oste would be willing to check that out. |
Closed by #93. |
Hey, I'm currently writing a babel plugin using babel-plugin-macros for statically extracting and converting the tailwind styles for React Native and React Native Web, including support for SSR with media queries. (Working on some finishing touches, adding docs, etc. before publishing in the coming days 🤞)
Before, I was using tailwind-rn to convert the styles, but had no way of using the
tailwind.config.js
during Babel runtime. Thankfully, I found your amazing v2 rewrite and just migrated to using your lib under the hood. Unfortunately, babel-plugin-macros doesn't support ESM, so I get errors when running metro.Would be awesome if you could add a CommonJS target to the compilation. Since I'm running a very similar setup, here's how I tackled cjs output in addition to ESM:
The text was updated successfully, but these errors were encountered: