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

This commit is contained in:
TsMask committed 2024-08-15 10:22:39 +08:00
1 parent b4cbc1c190
commit f6b62c6c7e
1 file changed
+1
+1
View File
@@ -54,6 +54,7 @@ export default defineConfig(({ mode }) => {
},
},
build: {
target: 'esnext', // Use 'esnext' to support the latest features
sourcemap: false,
chunkSizeWarningLimit: 500, // 调整区块大小警告限制(以kB为单位)
rollupOptions: {