Merge pull request #10337 from dataease/pr@dev-v2@chore_frontend

chore: 前端打包错误
This commit is contained in:
fit2cloud-chenyw 2024-06-18 11:27:39 +08:00 committed by GitHub
commit 18c34411b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -14,7 +14,7 @@ export default {
],
build: {
rollupOptions: {
external: id => /de-xpack/.test(id),
external: id => /de-xpack/.test(id) || /extensions-view-3dpie/.test(id),
output: {
// 用于命名代码拆分时创建的共享块的输出命名
chunkFileNames: `assets/chunk/[name]-${pkg.version}-${pkg.name}.js`,

View File

@ -33,10 +33,15 @@ const generateRamStr = (len: number) => {
}
const importProxy = (bytesArray: any[]) => {
const promise = import(
/* const promise = import(
`../../../../../../../${formatArray(bytesArray[7])}/${formatArray(bytesArray[8])}/${formatArray(
bytesArray[9]
)}/${formatArray(bytesArray[10])}/${formatArray(bytesArray[11])}.vue`
) */
const promise = import(
`../../../../../../../extensions-view-3dpie/${formatArray(bytesArray[8])}/${formatArray(
bytesArray[9]
)}/${formatArray(bytesArray[10])}/${formatArray(bytesArray[11])}.vue`
)
promise
.then((res: any) => {