Signed-off-by: yangbo <1442420648@qq.com>
Change-Id: I6911269714cc854a3786d03b7441b5185c2bb7ef
This commit is contained in:
yangbo
2022-03-23 15:31:41 +08:00
parent ec365cafcd
commit 98aaabcfb9
+2
View File
@@ -52,6 +52,8 @@ export function createLanguageService(rootFileNames: string[]): ts.LanguageServi
path.resolve(__dirname, '../tsconfig.json'), ts.sys.readFile).config.compilerOptions;
Object.assign(compilerOptions, {
'allowJs': false,
'importsNotUsedAsValues': ts.ImportsNotUsedAsValues.Preserve,
'module': ts.ModuleKind.CommonJS,
'moduleResolution': ts.ModuleResolutionKind.NodeJs,
'target': ts.ScriptTarget.ES2017,
'baseUrl': path.resolve(projectConfig.projectPath),