Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option genComponentUsedPath #812

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

stackblitz bot commented Dec 26, 2024

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

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