-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: allow any string as jsxFramework to enable extracting JSX comp… (
#2226) chore: allow any string as jsxFramework to enable extracting JSX components
- Loading branch information
Showing
4 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
'@pandacss/generator': patch | ||
'@pandacss/types': patch | ||
--- | ||
|
||
This change allows the user to set `jsxFramework` to any string to enable extracting JSX components. | ||
|
||
--- | ||
|
||
Context: In a previous version, Panda's extractor used to always extract JSX style props even when not specifying a | ||
`jsxFramework`. This was considered a bug and has been fixed, which reduced the amount of work panda does and artifacts | ||
generated if the user doesn't need jsx. | ||
|
||
Now, in some cases like when using Svelte or Astro, the user might still to use & extract JSX style props, but the | ||
`jsxFramework` didn't have a way to specify that. This change allows the user to set `jsxFramework` to any string to | ||
enable extracting JSX components without generating any artifacts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters