You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am developing a plugin to enable SFC's style to work in shadow DOM. My idea is to modify the SFC script block, import the style contents, and insert them into the shadow root at runtime. The problem is how to correctly write the source path for style imports.
The only solution I have thought of is copying code from plugin-vue to ensure that the logic matches that of the official version. However, this would require me to constantly synchronize with any changes made by the official version. It could also result in differences between my plugin's logic and that of the official version if users install an incompatible combination of plugin-vue and my plugin.
Therefore, I am wondering if it is possible to export some helper functions for plugin creators, which would allow us to easily write import request ids for blocks.
Suggested solution
For instance, a function that get the request id of a style block like:
Related plugins
plugin-vue
plugin-vue-jsx
Description
I am developing a plugin to enable SFC's style to work in shadow DOM. My idea is to modify the SFC script block, import the style contents, and insert them into the shadow root at runtime. The problem is how to correctly write the source path for style imports.
The only solution I have thought of is copying code from plugin-vue to ensure that the logic matches that of the official version. However, this would require me to constantly synchronize with any changes made by the official version. It could also result in differences between my plugin's logic and that of the official version if users install an incompatible combination of plugin-vue and my plugin.
Therefore, I am wondering if it is possible to export some helper functions for plugin creators, which would allow us to easily write import request ids for blocks.
Suggested solution
For instance, a function that get the request id of a style block like:
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: