unplugin-vue-components icon indicating copy to clipboard operation
unplugin-vue-components copied to clipboard

fix: remove outdated components

Open ahmedShawareb567 opened this issue 6 months ago • 1 comments

Description

Hotfix: Remove outdated components from components-info.json and components.d.ts to prevent incorrect type declarations and ensure consistency with current component exports. 🤖

Linked Issues

Additional context

I encountered an issue where deleted component files were not being removed from components-info.json and components.d.ts. This caused stale references to persist, even after the files were deleted. ⛈️

ahmedShawareb567 avatar May 30 '25 13:05 ahmedShawareb567

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@antfu I'd suggest to have similar option as recent dtsMode in https://github.com/unplugin/unplugin-auto-import

Ref: https://github.com/unplugin/unplugin-auto-import/pull/549

kevinmarrec avatar Sep 11 '25 20:09 kevinmarrec

I'd suggest to have similar option as recent dtsMode in

Yeah, I feel it would be better to have an option indeed instead of changing it back and forth. @kevinmarrec Would you like to help implement it? Thanks.

antfu avatar Sep 12 '25 01:09 antfu

@antfu I created #882 if it can help.

Based on tests it looks great, but I'm unsure of all the behaviors in userland.

I'm not really using this plugin, but wanted to help, so it would be better if someone could try to use my PR version of the plugin to see if the solution fits to the initial problem.

kevinmarrec avatar Sep 12 '25 15:09 kevinmarrec