web-infra-dev / rspress

🦀💨 A fast Rspack-based static site generator.
https://rspress.dev
MIT License
1.43k stars 132 forks source link

[Feature]: The playground plugin requires iframe to isolate the style to avoid style pollution. #1394

Open easy1090 opened 2 months ago

easy1090 commented 2 months ago

What problem does this feature solve?

The Playground plugin requires ifame to isolate the style to avoid style pollution.The style rendered in the palyground plugin will reduce the style of document theme has some errors.

What does the proposed API look like?

Maybe like the preview plugin's iframe api.

SoonIter commented 2 months ago

will be fixed in fully refactor of plugin-preview and plugin-playground https://github.com/web-infra-dev/rspress/discussions/1105