Skip to content

Conversation

Kanade-Lu
Copy link
Contributor

Description

  • After use unplugin-vue-components, i can't find any way to find .vue file all refrence, .vue component refrence will point to components.d.ts . However, I actually need this feature when I am refactoring code. If there are other ways to collect all references to components, this PR will no longer be needed
  • when enable this option, will generate a json on buildEnd as follows
{
     "BatchAddTipSetup": [
        "/src/modules/coupon/issueCoupon.vue",
        "/src/components/setup/relevantDealer/relevantDealerSetup.vue",
        "/src/components/setup/relevantStoreSetup/relevantStoreSetup.vue",
        "/src/modules/fixedPrice/components/participateDealer.vue",
        "/src/modules/fixedPrice/features/FixedPriceParticipateStore.vue",
        "/src/components/setup/ParticipateStore/ParticipateStoreSetup.vue",
        "/src/modules/secretAuction/features/SecretAuctionParticipateStore.vue",
        "/src/modules/secretAuction/components/secretAuctionDealer.vue",
        "/src/components/relevantDealerGrpc/relevantDealerGrpc.vue",
        "/src/components/relevantStoreGrpc/relevantStoreGrpc.vue"
    ],
    "BatchAddInputSetup": [
        "/src/modules/sessionRule/newRule/newRule.vue"
    ],
    "ConfirmDialogSetup": [
        "/src/modules/sessionRule/ruleManage/sessionRuleManageList.vue",
        "/src/components/setup/relevantDealer/relevantDealerSetup.vue",
        "/src/modules/fixedPrice/components/participateDealer.vue",
        "/src/modules/secretAuction/components/secretAuctionDealer.vue"
    ],
}

And i add exclude option to exclude component library (like element plus) avoid collecting unnecessary information

@Kanade-Lu Kanade-Lu requested a review from antfu as a code owner December 26, 2024 02:16
Copy link

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

@Kanade-Lu
Copy link
Contributor Author

vscode可以通过直接查找ts类型的所有引用处理,不需要此功能

@Kanade-Lu Kanade-Lu closed this Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant