mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-14 19:23:28 +08:00
fix: improve codegen output
This commit is contained in:
@ -312,13 +312,15 @@ function buildMinimalBundleCode(
|
|||||||
importStatements.push(
|
importStatements.push(
|
||||||
`import type { ComposeOption } from ${quote}echarts/core${quote}${semiStr}`
|
`import type { ComposeOption } from ${quote}echarts/core${quote}${semiStr}`
|
||||||
);
|
);
|
||||||
const importTypeStatements = importSources.map(([imports, mod]) =>
|
const importTypeStatements = importSources
|
||||||
importItems(
|
.map(([imports, mod]) =>
|
||||||
imports.filter(a => a.endsWith("Option")),
|
importItems(
|
||||||
mod,
|
imports.filter(a => a.endsWith("Option")),
|
||||||
{ ...options, type: true }
|
mod,
|
||||||
|
{ ...options, type: true }
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
.filter(Boolean);
|
||||||
importStatements.push(...importTypeStatements);
|
importStatements.push(...importTypeStatements);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user