Skip to content

Commit 548f137

Browse files
Talljackyugang.cao
andauthored
fix: remove or delete update component.d.ts (#245)
Co-authored-by: yugang.cao <[email protected]>
1 parent 4337f93 commit 548f137

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/declaration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export async function generateDeclaration(ctx: Context, root: string, filepath:
4646
...imports,
4747
})
4848
.sort((a, b) => a[0].localeCompare(b[0]))
49+
.filter(([name]) => ctx.componentCustomMap[name] || ctx.componentNameMap[name])
4950
.map(([name, v]) => {
5051
if (!/^\w+$/.test(name))
5152
name = `'${name}'`

0 commit comments

Comments
 (0)