Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit021dcb0

Browse files
committed
chore: prevent Panda from extracting the Tooltip content prop
since it's a valid CSS prop name -> <Tooltip content="Hide `*, :before, :after` styles">
1 parentad34a74 commit021dcb0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎panda.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,13 @@ export default defineConfig({
2323
outdir:"styled-system",
2424
jsxFramework:"react",
2525
// importMap: "styled-system",
26+
hooks:{
27+
'parser:before':({ configure})=>{
28+
configure({
29+
// ignore the <Tooltip /> entirely,
30+
// prevents: `🐼 error [sheet:process] > 1 | .content_Hide_\`\*\,_\:before\,_\:after\`_styles {content: Hide `*, :before, :after` styles;`
31+
matchTag:tag=>tag!=='Tooltip',
32+
})
33+
}
34+
}
2635
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp