Skip to content

Commit

Permalink
fix: try upgrade @vue/language-core
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 1, 2024
1 parent 2e3d85f commit 8226ef8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/twoslash-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"typescript": "*"
},
"dependencies": {
"@vue/language-core": "~2.0.29",
"@vue/language-core": "~2.1.4",
"twoslash": "workspace:*",
"twoslash-protocol": "workspace:*"
}
Expand Down
7 changes: 6 additions & 1 deletion packages/twoslash-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ export function createTwoslasher(createOptions: CreateTwoslashVueOptions = {}):
return cache.get(key)!

function getLanguage() {
const vueLanguagePlugin = createVueLanguagePlugin<string>(ts, id => id, () => '', () => true, defaultCompilerOptions, resolveVueCompilerOptions(vueCompilerOptions))
const vueLanguagePlugin = createVueLanguagePlugin<string>(
ts,
defaultCompilerOptions,
resolveVueCompilerOptions(vueCompilerOptions),
id => id,
)
return createLanguage(
[vueLanguagePlugin],
new FileMap(ts.sys.useCaseSensitiveFileNames),
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8226ef8

Please sign in to comment.