Skip to content

Commit

Permalink
chore: add vite config example [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Oct 23, 2024
1 parent 63e0419 commit d484513
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ Vue SFC REPL as a Vue 3 component.

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

```ts
// vite.config.ts
import { defineConfig } from 'vite'
export default defineConfig({
optimizeDeps: {
exclude: ['@vue/repl'],
},
// ...
})
```

### With CodeMirror Editor

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

0 comments on commit d484513

Please sign in to comment.