Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add components prefix#850

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
antfu merged 3 commits intounplugin:mainfromilyaliao:feat/prefix
Jun 29, 2025
Merged

Conversation

@ilyaliao
Copy link
Collaborator

Description

This PR is a minimal implementation of#612. Since the original PR is outdated, I’m submitting a new one.

It simply adds support for prefixing component names.

Linked Issues

resolve:#438

craigrileyuk reacted with hooray emoji
Co-authored-by: winches <wincheshe@gmail.com>
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz CodeflowRun & review this pull request inStackBlitz Codeflow.

@ilyaliaoilyaliao marked this pull request as ready for reviewJune 25, 2025 14:48
@ilyaliaoilyaliao requested a review fromantfu as acode ownerJune 25, 2025 14:48
@ilyaliaoilyaliao marked this pull request as draftJune 25, 2025 14:48
@ilyaliaoilyaliao marked this pull request as ready for reviewJune 25, 2025 15:25
@antfuantfu merged commit6d86696 intounplugin:mainJun 29, 2025
6 checks passed
@ilyaliaoilyaliao deleted the feat/prefix branchJuly 1, 2025 04:45
@jongbonga
Copy link

@ilyaliao how do I make this work with primevue? I tried but the component doesn't show, seereproduction andissue

ilyaliao reacted with thumbs up emoji

@ilyaliao
Copy link
CollaboratorAuthor

ilyaliao commentedJul 17, 2025
edited
Loading

@ilyaliao how do I make this work with primevue? I tried but the component doesn't show, seereproduction andissue

Hi jongbonga 👋

Thanks for asking, but sorry, this PR doesn't include adding prefix inresolvers, but I think I can help you solve the problem!

Please refer to:primefaces/primevue#6875 (comment)

@craigrileyuk
Copy link

craigrileyuk commentedJul 28, 2025
edited
Loading

This should probably be added to the README documentation now it's merged.

ilyaliao reacted with thumbs up emoji

@ilyaliao
Copy link
CollaboratorAuthor

This should probably be added to the README documentation now it's merged.

Good idea! Would you like to open a PR?

@jhoefker
Copy link

jhoefker commentedJul 31, 2025
edited
Loading

Hey guys, thanks for adding support for prefix. Unfortunately, I face an issue while importing the components.

My setup:
vite.config.js

Components({prefix: 'Pre'})

... the components.d.ts is generated correctly with:

...PreBadgeCircle: typeof import('./src/components/design-system/badge-circle/badge-circle.vue')['default']...

However I can't import the component with<pre-badge-circle> in my components. I get this error:

Failed to resolve component: pre-badge-circleIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

Interesting is that using<badge-circle> still works.

Have I forgot something in the config?

ilyaliao reacted with thumbs up emoji

@ilyaliao
Copy link
CollaboratorAuthor

Hey guys, thanks for adding support for prefix. Unfortunately, I face an issue while importing the components.

My setup: vite.config.js

Components({prefix: 'Pre'})

... the components.d.ts is generated correctly with:

...PreBadgeCircle: typeof import('./src/components/design-system/badge-circle/badge-circle.vue')['default']...

However I can't import the component with<pre-badge-circle> in my components. I get this error:

Failed to resolve component: pre-badge-circleIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

Interesting is that using<badge-circle> still works.

Have I forgot something in the config?

This looks like a bug, I will fix it.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@antfuantfuantfu approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

How do we add prefix for all components?

5 participants

@ilyaliao@jongbonga@craigrileyuk@jhoefker@antfu

[8]ページ先頭

©2009-2025 Movatter.jp