|
|
@ -86,7 +86,7 @@ export async function setupMonacoEditor(monaco: any) { |
|
|
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs, |
|
|
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs, |
|
|
module: monaco.languages.typescript.ModuleKind.ESNext, |
|
|
module: monaco.languages.typescript.ModuleKind.ESNext, |
|
|
noEmit: true, |
|
|
noEmit: true, |
|
|
lib: ['esnext'] // 关键:只包含 ES 标准库,排除 DOM 库
|
|
|
lib: ['es2024','esnext'] // 关键:只包含 ES 标准库,排除 DOM 库
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// 移除默认的 TypeScript 诊断提供器
|
|
|
// 移除默认的 TypeScript 诊断提供器
|
|
|
|