fix: 构建目标改为esnext,兼容pdf-js编译
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user