fix: 构建目标改为esnext,兼容pdf-js编译

This commit is contained in:
TsMask
2024-08-15 10:22:39 +08:00
parent b4cbc1c190
commit f6b62c6c7e

View File

@@ -54,6 +54,7 @@ export default defineConfig(({ mode }) => {
}, },
}, },
build: { build: {
target: 'esnext', // Use 'esnext' to support the latest features
sourcemap: false, sourcemap: false,
chunkSizeWarningLimit: 500, // 调整区块大小警告限制以kB为单位 chunkSizeWarningLimit: 500, // 调整区块大小警告限制以kB为单位
rollupOptions: { rollupOptions: {