Skip to content

Commit

Permalink
Update frameworks/vue.mdx (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
tthzwq authored May 15, 2024
1 parent 2d5b8ad commit 52529e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/frameworks/vue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ Currently, `Farm` uses `Vite` plugins for both `vue2` and `vue3` and `vue2.7` co

```javascript title="farm.config.ts"
import { defineConfig } from '@farmfe/core';
import Vue from '@vite/plugin-vue'
import Vue from '@vitejs/plugin-vue'

export default defineConfig({
plugins: [Vue()],
vitePlugins: [Vue()],
});
```

### Integrating jsx

```javascript title="farm.config.ts"
import { defineConfig } from '@farmfe/core';
import VueJsx from '@vite/plugin-vue-jsx'
import VueJsx from '@vitejs/plugin-vue-jsx'

export default defineConfig({
plugins: [VueJsx()],
vitePlugins: [VueJsx()],
});
```

Expand Down

0 comments on commit 52529e8

Please sign in to comment.