Closed P-Mz closed 2 years ago
The plugin does not replace imported variables, which is not its job. You will get the same error even if you disable this plugin. I think this should be a feature request.
You can just change defaultProps
to { ...defaultProps }
to force Vue to fallback to runtime merging
Otherwise, you can install a plugin to do this automatically for you.
https://stackblitz.com/edit/vitejs-vite-9mc6hi?file=src%2Fcomponents%2FHelloWorld.vue