Skip to content

Commit 516e655

Browse files
authored
chore(repl): Update neocodemirror to 0.0.14 (#504)
1 parent d9368b3 commit 516e655

File tree

5 files changed

+210
-555
lines changed

5 files changed

+210
-555
lines changed

.changeset/pink-maps-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/repl': patch
3+
---
4+
5+
Bump neocodemirror: Fixes atrribute deletion freezing editor problem

packages/repl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"@codemirror/view": "^6.14.0",
7474
"@jridgewell/sourcemap-codec": "^1.4.15",
7575
"@lezer/highlight": "^1.1.6",
76-
"@neocodemirror/svelte": "0.0.13",
76+
"@neocodemirror/svelte": "0.0.14",
7777
"@replit/codemirror-lang-svelte": "^6.0.0",
7878
"@rich_harris/svelte-split-pane": "^1.1.1",
7979
"@rollup/browser": "^3.25.3",

packages/repl/src/lib/CodeMirror.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@
233233
autocomplete,
234234
extensions: [codeFolding(), watcher],
235235
diagnostics,
236-
instanceStore: cmInstance,
237-
onTextChange: (value) => {
238-
code = value;
239-
dispatch('change', { value: code });
240-
}
236+
instanceStore: cmInstance
237+
}}
238+
on:codemirror:textChange={({ detail: value }) => {
239+
code = value;
240+
dispatch('change', { value: code });
241241
}}
242242
>
243243
{#if !$cmInstance.view}

packages/repl/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { sveltekit } from '@sveltejs/kit/vite';
44
const config = {
55
plugins: [sveltekit()],
66
resolve: {
7-
dedupe: ['@codemirror/state']
7+
dedupe: ['@codemirror/state', '@codemirror/language', '@codemirror/view']
88
},
99
server: {
1010
fs: {

0 commit comments

Comments
 (0)