fix ts type error

This commit is contained in:
duanfuxiang
2025-01-06 13:51:41 +08:00
parent aa4bcf326d
commit c8bf0d263c
5 changed files with 18 additions and 10 deletions

View File

@@ -43,6 +43,9 @@ const context = await esbuild.context({
inject: [path.resolve('import-meta-url-shim.js')],
target: 'es2020',
logLevel: 'info', // 'debug' for more detailed output
logOverride: {
'import-is-undefined': 'silent', // 忽略 import-is-undefined 警告
},
sourcemap: prod ? false : 'inline',
treeShaking: true,
outfile: 'main.js',