# repl
**Repository Path**: vuejs/repl
## Basic Information
- **Project Name**: repl
- **Description**: Vue SFC REPL as a Vue 3 component
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 2
- **Forks**: 3
- **Created**: 2022-08-03
- **Last Updated**: 2025-06-15
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# @vue/repl
Vue SFC REPL as a Vue 3 component.
## Basic Usage
**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.
```vue
```
### With Monaco Editor
With Volar support, autocomplete, type inference, and semantic highlighting. Heavier bundle, loads dts files from CDN, better for standalone use cases.
```vue
```
## Advanced Usage
Customize the behavior of the REPL by manually initializing the store.
See [v4 Migration Guide](https://github.com/vuejs/repl/releases/tag/v4.0.0)
```vue
```
Use only the Preview without the editor
```vue
```