Skip to content

tw= inline syntax not working as expected + styled-components/macro #185

Answered by ben-rogerson
botoxparty asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Adam, in Twin v2 I now made that config the default so you can just roll with this config now:

// package.json
{
  "babelMacros": {
    "twin": {
      "preset": "styled-components",
    }
  },
}

// or babel-plugin-macros.config.js
module.exports = {
  twin: {
    preset: 'styled-components'
  }
}

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@irg1008
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ben-rogerson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants