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
Right now Vue throws an error based on whether a script or template is inserted into the template. While this is good for basic vue apps this is not good when Vite PluginVue Nested SFC is used. If you don't know. Vue Nested SFC allows you to create other SFCs inside of an SFC it even automatically exports all of them.
I ran into an issue where vite threw an error for not including a script tag or a template inside of an SFC. I went to the plugin author about this but he said he could not do anything. Now I have to put an empty template or script tag in order to stop the error and it does not even allow me to use script setup at all.
Suggested solution
I suggest allowing the user of a Vite plugin a way to intercept Vite errors when writing a plugin. This will allow the user to write plugins that don't interfere with the DX of using a tool. I think there is a way for a plugin to know about the existence of another plugin but there should be a way to intercept errors as well.
Description
Right now Vue throws an error based on whether a script or template is inserted into the template. While this is good for basic vue apps this is not good when Vite PluginVue Nested SFC is used. If you don't know. Vue Nested SFC allows you to create other SFCs inside of an SFC it even automatically exports all of them.
I ran into an issue where vite threw an error for not including a script tag or a template inside of an SFC. I went to the plugin author about this but he said he could not do anything. Now I have to put an empty template or script tag in order to stop the error and it does not even allow me to use script setup at all.
Suggested solution
I suggest allowing the user of a Vite plugin a way to intercept Vite errors when writing a plugin. This will allow the user to write plugins that don't interfere with the DX of using a tool. I think there is a way for a plugin to know about the existence of another plugin but there should be a way to intercept errors as well.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: