fix ts type error
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user