[Feature][plugin-comp-preview]: combine plugin-preview and plugin-playground into one #1574
Open
Enhancement
0 of 6 issues completed
Description
What problem does this feature solve?
closes #1452
What does the proposed API look like?
some historical problems need to be solved
- support tsx syntax highlight and no type error, closes [Feature]: Support highlighting in tsx code when uses @rspress/plugin-preview #1113
- support
```tsx pure
```tsx playground
```tsx preview
can be used together
```tsx
default value should be pure
"playground" should be editable "preview" to reduce the learn cost
-
style isolated (iframe or shadow-dom), closes [Feature]: The playground plugin requires iframe to isolate the style to avoid style pollution. #1394
-
multiple files support(optional), closes [Feature]: optimize @rspress/plugin-preview style #1315