forked from vhaudiquet/rhema-together
feat: render the terminal with ghostty-web
ghostty-web runs Ghostty's VT parser as WebAssembly behind an xterm-compatible API. The component keeps its lifecycle; the imports and the WASM bootstrap change. The emulator imports on demand, so the 624 KB chunk loads only when the terminal pane opens. The CSP needs wasm-unsafe-eval for WebAssembly compilation and data: in connect-src for the inlined module the library fetches. The terminal renders to a canvas, so the xterm stylesheet and FitAddon package are gone.
This commit is contained in:
1 parent
808a78afa8
commit
3f61dd4db8
7 files changed
+58
-58
No files matched your search
+1
-2
@@ -10,8 +10,7 @@
|
||||
"typecheck": "nuxt typecheck"
|
||||
},
|
||||
"dependencies": {
|
||||
"@xterm/addon-fit": "^0.11.0",
|
||||
"@xterm/xterm": "^6.0.0",
|
||||
"ghostty-web": "0.4.0",
|
||||
"lucide-vue-next": "^1.0.0",
|
||||
"nuxt": "^4.7.0",
|
||||
"vue": "^3.5.0"
|
||||
|
||||
Reference in new issue
Block a user