Skip to content

Commit d1ab950

Browse files
committed
chore: resolve build errors
1 parent 57aa5f7 commit d1ab950

File tree

5 files changed

+12
-34
lines changed

5 files changed

+12
-34
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"emmet-monaco-es": "^5.3.0",
7878
"fflate": "^0.8.0",
7979
"hash-sum": "^2.0.0",
80-
"monaco-editor-core": "^0.40.0",
80+
"monaco-editor-core": "^0.43.0",
8181
"monaco-editor-textmate": "^4.0.0",
8282
"monaco-textmate": "^3.0.1",
8383
"monaco-volar": "^0.4.0",

pnpm-lock.yaml

Lines changed: 9 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/editor/FileSelector.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ function doneNameFile() {
8686
}
8787
}
8888
89-
function editFileName(file: string) {
90-
pendingFilename.value = stripSrcPrefix(file)
91-
pending.value = file
92-
}
93-
9489
const fileSel = ref(null)
9590
9691
const activeFile = computed({

src/monaco/Monaco.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ onMounted(async () => {
158158
css: 'css',
159159
js: 'babel',
160160
ts: 'babel',
161-
}[extension.value] || props.mode
161+
}[extension.value!] || props.mode
162162
163163
const options = {
164164
parser,

src/monaco/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function initMonaco(store: Store) {
1717
if (initted) return
1818
loadMonacoEnv(store)
1919
loadWasm()
20-
emmetHTML(monaco, ['vue', 'html'])
20+
emmetHTML(monaco as any, ['vue', 'html'])
2121

2222
watchEffect(() => {
2323
// create a model for each file in the store

0 commit comments

Comments
 (0)