Skip to content

Commit e3024d1

Browse files
committed
fix(volar): upgrade config read
1 parent 4c05ca3 commit e3024d1

File tree

6 files changed

+184
-166
lines changed

6 files changed

+184
-166
lines changed

packages/experiments-playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"typescript": "~5.9.3",
2222
"vite": "^7.3.0",
2323
"vite-plugin-vue-devtools": "^8.0.5",
24-
"vue-tsc": "^3.2.2"
24+
"vue-tsc": "^3.2.4"
2525
}
2626
}

packages/playground-file-based/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"unplugin-auto-import": "^21.0.0",
2222
"vite": "^7.3.0",
2323
"vite-plugin-vue-devtools": "^8.0.5",
24-
"vue-tsc": "^3.2.2"
24+
"vue-tsc": "^3.2.4"
2525
}
2626
}

packages/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"@vue/tsconfig": "^0.8.1",
2020
"vite": "^7.3.0",
2121
"vue-router": "workspace:*",
22-
"vue-tsc": "^3.2.2"
22+
"vue-tsc": "^3.2.4"
2323
}
2424
}

packages/router/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
"@vue/server-renderer": "3.6.0-beta.2",
185185
"@vue/test-utils": "^2.4.6",
186186
"browserstack-local": "^1.5.8",
187-
"chromedriver": "^143.0.3",
187+
"chromedriver": "^144.0.0",
188188
"connect-history-api-fallback": "^2.0.0",
189189
"dotenv": "^17.2.3",
190190
"faked-promise": "^2.2.2",
@@ -198,7 +198,7 @@
198198
"rollup-plugin-typescript2": "^0.36.0",
199199
"tsdown": "0.20.0-beta.3",
200200
"tsup": "^8.5.1",
201-
"vite": "^7.3.1",
201+
"vite": "^7.3.0",
202202
"vue": "3.6.0-beta.2"
203203
},
204204
"peerDependencies": {

packages/router/src/volar/entries/sfc-typed-router.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import type ts from 'typescript'
1414
- (low priority) Enhance typing of `to` route in `beforeEnter` route guards defined in `definePage`
1515
*/
1616

17-
const plugin: VueLanguagePlugin = ({
17+
const plugin: VueLanguagePlugin<{ rootDir?: string }> = ({
1818
compilerOptions,
1919
modules: { typescript: ts },
20-
...options
20+
config,
2121
}) => {
22-
// rootDir comes from plugin options (vuejs/language-tools#5678)
23-
const optionsRootDir = (options as { rootDir?: string }).rootDir
2422
// Prioritize plugin options over tsconfig
25-
const rootDir = optionsRootDir ?? compilerOptions.rootDir
23+
const rootDir = config?.rootDir ?? compilerOptions.rootDir
2624

2725
// Warn if no rootDir specified
2826
if (!rootDir) {

0 commit comments

Comments
 (0)