bluwy / whyframe

Develop components in isolation with just an iframe

Home Page:https://whyframe.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document optimization

peterroe opened this issue · comments

commented

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.

commented

That's true, sorry I didn't notice the yellow hint :)