Newbie here: how to view the post-babel code that is generated by twin.macro? #278
-
Newbie question: Another newbie question: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Great questions! To view the transformed output you need to run the file through babel. Once you’ve setup twin, you can run babel over the file like this: npx babel index.js --out-file index-compiled.js But to make this easier, you can use the twin-output-tester which is all setup and ready to go.
I believe you’ll need to convert the styling in those components manually as the code varies too much between those UI frameworks. |
Beta Was this translation helpful? Give feedback.
Great questions!
To view the transformed output you need to run the file through babel.
Once you’ve setup twin, you can run babel over the file like this:
But to make this easier, you can use the twin-output-tester which is all setup and ready to go.
I believe you’ll need to convert the styling in those components manually as the code varies too m…