Skip to content

[Feature][plugin-comp-preview]: combine plugin-preview and plugin-playground into one #1574

Open
0 of 6 issues completed
Open
@SoonIter

Description

What problem does this feature solve?

#1105 (comment)

closes #1452

What does the proposed API look like?

some historical problems need to be solved

  1. support tsx syntax highlight and no type error, closes [Feature]: Support highlighting in tsx code when uses @rspress/plugin-preview #1113

Image

  1. 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

  1. style isolated (iframe or shadow-dom), closes [Feature]: The playground plugin requires iframe to isolate the style to avoid style pollution. #1394

  2. multiple files support(optional), closes [Feature]: optimize @rspress/plugin-preview style #1315

Sub-issues

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions