mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
Adopt module 'Preserve' for TS 5.4+ (#206478)
This commit is contained in:
parent
bc83cb0632
commit
c087be9705
|
@ -26,8 +26,8 @@ export function inferredProjectCompilerOptions(
|
|||
serviceConfig: TypeScriptServiceConfiguration,
|
||||
): Proto.ExternalProjectCompilerOptions {
|
||||
const projectConfig: Proto.ExternalProjectCompilerOptions = {
|
||||
module: 'ESNext' as Proto.ModuleKind,
|
||||
moduleResolution: 'Node' as Proto.ModuleResolutionKind,
|
||||
module: (version.gte(API.v540) ? 'Preserve' : 'ESNext') as Proto.ModuleKind,
|
||||
moduleResolution: (version.gte(API.v540) ? 'Bundler' : 'Node') as Proto.ModuleResolutionKind,
|
||||
target: 'ES2022' as Proto.ScriptTarget,
|
||||
jsx: 'react' as Proto.JsxEmit,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user