diff --git a/game/entry.js b/game/entry.js index beeeb229c..6678ac740 100644 --- a/game/entry.js +++ b/game/entry.js @@ -4,6 +4,7 @@ import { userAgent } from "../noname/util/index.js"; const coreAndVersion = get.coreInfo(); const core = coreAndVersion[0], version = coreAndVersion[1]; +//@todo: 77 -> 80 if (core === 'chrome' && !isNaN(version) && version < 77) { const tip = '检测到您的浏览器内核版本小于77,请及时升级浏览器或手机webview内核!'; console.warn(tip); diff --git a/game/game.js b/game/game.js index ddd50bb99..f071cb26e 100644 --- a/game/game.js +++ b/game/game.js @@ -166,6 +166,7 @@ new Promise(resolve => { // 使用ts compiler对ts文件进行编译 const result = ts.transpile(code, { module: ts.ModuleKind.CommonJS, + //@todo: ES2019 -> ES2020 target: ts.ScriptTarget.ES2019, inlineSourceMap: true, resolveJsonModule: true,