From 0f7a9a3b15925292310cb1c726fd1479e43726ac Mon Sep 17 00:00:00 2001 From: johnsoncodehk Date: Wed, 20 Jul 2022 07:20:42 +0800 Subject: [PATCH] fix: use os path to parse tsconfig close #1591, close #1593, --- packages/vue-typescript/src/utils/ts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue-typescript/src/utils/ts.ts b/packages/vue-typescript/src/utils/ts.ts index 0c63d1e6d..b11003e2d 100644 --- a/packages/vue-typescript/src/utils/ts.ts +++ b/packages/vue-typescript/src/utils/ts.ts @@ -1,5 +1,5 @@ import type * as ts from 'typescript/lib/tsserverlibrary'; -import { posix as path } from 'path'; +import * as path from 'path'; import type { VueCompilerOptions } from '../types'; export function createParsedCommandLine( @@ -17,7 +17,7 @@ export function createParsedCommandLine( content.options.outDir = undefined; // TODO: patching ts server broke with outDir + rootDir + composite/incremental let baseVueOptions = {}; - const folder = path.dirname(tsConfig); + const folder = path.dirname(tsConfigPath); extendsSet.add(tsConfig);