]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor: no undefined
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 26 Jan 2026 14:09:54 +0000 (15:09 +0100)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Thu, 29 Jan 2026 16:38:08 +0000 (17:38 +0100)
packages/router/src/volar/entries/sfc-typed-router.ts

index af18aad981e692d2f16211a0acd43064d1b22393..6ae70753d8de08aedba27e4f228ac78f0e42ffa1 100644 (file)
@@ -20,7 +20,7 @@ const plugin: VueLanguagePlugin<{ rootDir?: string }> = ({
   config,
 }) => {
   // Prioritize plugin options over tsconfig
-  const rootDir = config?.rootDir ?? compilerOptions.rootDir
+  const rootDir = config.rootDir ?? compilerOptions.rootDir
 
   // Warn if no rootDir specified
   if (!rootDir) {