forked from github/dataease
Merge pull request #10337 from dataease/pr@dev-v2@chore_frontend
chore: 前端打包错误
This commit is contained in:
commit
18c34411b1
@ -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`,
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user