Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Support babel plugin twin #6

Closed
luknl opened this issue Feb 28, 2021 · 5 comments
Closed

Support babel plugin twin #6

luknl opened this issue Feb 28, 2021 · 5 comments

Comments

@luknl
Copy link

luknl commented Feb 28, 2021

Hi, first thanks for the great plugin, so useful!

Twin.macro just released a babel plugin that make the import "twin.macro" not mandatory anymore.
However, auto-completion from this plugin doesn't work when we remove this import line.

Is there a way for those 2 plugins to be compatible?

Thanks!

@lightyen
Copy link
Owner

lightyen commented Mar 1, 2021

I will add a vscode setting to disable import checking in the next version.

But I still think that is not good without import "twin.macro" module when people didn't know what happen.

@luknl
Copy link
Author

luknl commented Mar 1, 2021

Ok great thanks!

@ben-rogerson
Copy link
Contributor

I will add a vscode setting to disable import checking in the next version.

Sweet - love your work @lightyen!

But I still think that is not good without import "twin.macro" module when people didn't know what happen.

I originally thought the same thing, but now after using it on a few projects I'm really enjoying it. It's an "opt-in" plugin, so twin-core stays as declarative as it has been.

@lightyen
Copy link
Owner

lightyen commented Mar 3, 2021

Use this setting in v0.7.0:

{
  "tailwindcss.jsxPropImportChecking": false
}

@luknl
Copy link
Author

luknl commented Mar 3, 2021

Works perfectly, thanks 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants