From 71cbb74d49a548872df91b534e5d3e4aa3dea723 Mon Sep 17 00:00:00 2001 From: liuycag Date: Wed, 29 Jun 2022 17:20:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dts=E5=88=9B=E5=BB=BA=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=A8=8B=E5=BA=8F=E6=8E=A5=E5=8F=A3=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81es6=E8=AF=AD=E6=B3=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: #I5EEL7 Signed-off-by: liuycag --- src/gen/tools/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen/tools/common.js b/src/gen/tools/common.js index 4331ba8b..4a43124e 100644 --- a/src/gen/tools/common.js +++ b/src/gen/tools/common.js @@ -16,7 +16,7 @@ const re = require("./re"); const tsc = require("../../node_modules/typescript"); function checkFileError(ifname) { - let program = tsc.createProgram([ifname], {}) + let program = tsc.createProgram([ifname], {target: tsc.ScriptTarget.Latest,}) let emitResult = program.emit(); let allDiagnostics = tsc.getPreEmitDiagnostics(program).concat(emitResult.diagnostics); -- Gitee