Creating Typescript library with React, Styled components and Twin macro. #772
-
Hi I wonder if I can include twin macro in my custom library which I am building with Webpack, React, Typescript and Styled components. Webpack.config.jsconst path = require("path"); module.exports = { TS Config:{ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Run a |
Beta Was this translation helpful? Give feedback.
Run a
babel-loader
pass first including @babel/preset-typescript, then either usets-loader
afterwards to generate the types or even better, just run a customtsc
command to generate your types.