Skip to content

Commit d484513

Browse files
committed
chore: add vite config example [ci skip]
1 parent 63e0419 commit d484513

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ Vue SFC REPL as a Vue 3 component.
66

77
**Note: `@vue/repl` >= 2 now supports Monaco Editor, but also requires explicitly passing in the editor to be used for tree-shaking.**
88

9+
```ts
10+
// vite.config.ts
11+
import { defineConfig } from 'vite'
12+
export default defineConfig({
13+
optimizeDeps: {
14+
exclude: ['@vue/repl'],
15+
},
16+
// ...
17+
})
18+
```
19+
920
### With CodeMirror Editor
1021

1122
Basic editing experience with no intellisense. Lighter weight, fewer network requests, better for embedding use cases.

0 commit comments

Comments
 (0)