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
<a p-3/> transform failed with attributify mode in nuxt3 tsx. #1876
Comments
Have you try to use transformer-attributify-jsx? |
yes, and i found why p-3 invalid. i remove key={index}. it works well. |
i use it. |
Hi, i test it in my local, transform it correctly. test('testSomething', async () => {
const testCode = `
<a href="#" p-3 key={index}>友情链接</a>
`
const code = new MagicString(testCode)
await transformerAttributifyJsx().transform(code, 'app.jsx', { uno, tokens: new Set() } as any)
expect(code.toString()).toMatchInlineSnapshot(`
"
<a href=\\"#\\" p-3=\\"\\" key={index}>友情链接</a>
"
`)
}) |
please check your version. transformer-attributify-jsx.test.ts line:82 is |
Oh, sorry, i forget to pull the latest code. Yes, there is something wrong. Thanks for taking the time to catch this error. |
thanks. can a new version be released soon? |
If you haven't fixed it yet, I can try it. |
Sure , pr welcome ~ |
code below.
code transform:
correctly code:
The text was updated successfully, but these errors were encountered: