Document optimization
peterroe opened this issue · comments
The user should be prompted in the documentation that the whyframeVue()
must come before the vue()
, Otherwise, an error will be reported
export default defineConfig({
plugins: [
// Initialize core plugin
whyframe(),
// Or initialize Vue integration plugin
whyframeVue(),
+ vue()
]
})
It's currently documented in the yellow quote box at https://whyframe.dev/docs/integrations/vite#setup, and it should also work if you got the order flip because whyframeVue()
uses enforce: 'pre'
for the plugin.
Or perhaps you got vue()
before whyframe()
instead? I got a fix locally to fix that ootb too.
That's true, sorry I didn't notice the yellow hint :)