We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 705bff3 commit 4484b4eCopy full SHA for 4484b4e
src/demo/utils/codegen.js
@@ -312,13 +312,15 @@ function buildMinimalBundleCode(
312
importStatements.push(
313
`import type { ComposeOption } from ${quote}echarts/core${quote}${semiStr}`
314
);
315
- const importTypeStatements = importSources.map(([imports, mod]) =>
316
- importItems(
317
- imports.filter(a => a.endsWith("Option")),
318
- mod,
319
- { ...options, type: true }
+ const importTypeStatements = importSources
+ .map(([imports, mod]) =>
+ importItems(
+ imports.filter(a => a.endsWith("Option")),
+ mod,
320
+ { ...options, type: true }
321
+ )
322
)
- );
323
+ .filter(Boolean);
324
importStatements.push(...importTypeStatements);
325
}
326
0 commit comments