gloriasoft / veaury

Use React in Vue3 and Vue3 in React, And as perfect as possible!
MIT License
1.31k stars 83 forks source link

How to integrate veaury into quasar-vite app? #78

Open mukeshghodela-easternts opened 1 year ago

devilwjp commented 1 year ago

@mukeshghodela-easternts Like the standard vite project configuration, use veauryVitePlugins.

mukeshghodela-easternts commented 1 year ago

@devilwjp But it is giving error "vite.createFilter is not a function"

devilwjp commented 1 year ago
// FILE: vite.config.js

import { defineConfig } from 'vite'
import veauryVitePlugins from 'veaury/vite/index.js'
import vue from '@vitejs/plugin-vue'
import { quasar, transformAssetUrls } from '@quasar/vite-plugin'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    veauryVitePlugins({
      type: 'vue',
      // Configuration of @vitejs/plugin-vue
      vueOptions: { template: { transformAssetUrls } },
    }),
    quasar({
      sassVariables: 'src/quasar-variables.sass'
    })
  ]
})
mukeshghodela-easternts commented 1 year ago

@devilwjp Thanks I will try this :)

prajapati-mukesh commented 1 year ago

@devilwjp How to use React components with Typescript. I am trying to use svg in tsx file

image