This commit is contained in:
nonameShijian 2024-03-27 16:42:36 +08:00
parent 37b64e9e81
commit 342044ab20
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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,