mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 20:15:24 -04:00
Signed-off-by: yangbo <1442420648@qq.com> Change-Id: I6911269714cc854a3786d03b7441b5185c2bb7ef
This commit is contained in:
@@ -52,6 +52,8 @@ export function createLanguageService(rootFileNames: string[]): ts.LanguageServi
|
|||||||
path.resolve(__dirname, '../tsconfig.json'), ts.sys.readFile).config.compilerOptions;
|
path.resolve(__dirname, '../tsconfig.json'), ts.sys.readFile).config.compilerOptions;
|
||||||
Object.assign(compilerOptions, {
|
Object.assign(compilerOptions, {
|
||||||
'allowJs': false,
|
'allowJs': false,
|
||||||
|
'importsNotUsedAsValues': ts.ImportsNotUsedAsValues.Preserve,
|
||||||
|
'module': ts.ModuleKind.CommonJS,
|
||||||
'moduleResolution': ts.ModuleResolutionKind.NodeJs,
|
'moduleResolution': ts.ModuleResolutionKind.NodeJs,
|
||||||
'target': ts.ScriptTarget.ES2017,
|
'target': ts.ScriptTarget.ES2017,
|
||||||
'baseUrl': path.resolve(projectConfig.projectPath),
|
'baseUrl': path.resolve(projectConfig.projectPath),
|
||||||
|
|||||||
Reference in New Issue
Block a user