Skip to content

fix: normalize internal plugin names - #4976

Merged
patak-cat merged 2 commits into
mainfrom
normalize-plugin-names
Sep 19, 2021
Merged

fix: normalize internal plugin names#4976
patak-cat merged 2 commits into
mainfrom
normalize-plugin-names

Conversation

@patak-cat

Copy link
Copy Markdown
Member

Description

Ensure that all internal and official plugins names follow the 'vite:{name}' format.
Plugin React and Vue were already using this format, but legacy and vue-jsx were not. There were several internal plugins that weren't following either.

Since we are now recommending the use of @antfu's https://github.com/antfu/vite-plugin-inspect, people will start to see and maybe rely on these names. This is a breaking change but I think it can safely be applied as part of the 2.6 beta


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@patak-cat
patak-cat requested a review from antfu September 18, 2021 19:27
@patak-cat patak-cat added this to the 2.6 milestone Sep 18, 2021
antfu
antfu previously approved these changes Sep 18, 2021
@patak-cat

Copy link
Copy Markdown
Member Author

@benmccann would you check this one just in case SvelteKit is removing or swapping a plugin by name?

Shinigami92
Shinigami92 previously approved these changes Sep 18, 2021
Comment thread packages/vite/src/node/plugins/loadFallback.ts Outdated
@patak-cat
patak-cat dismissed stale reviews from Shinigami92 and antfu via a45e68e September 18, 2021 20:24
Co-authored-by: Shinigami <chrissi92@hotmail.de>

@Shinigami92 Shinigami92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antfu's review should still count 😅
Feel free to merge

@benmccann

Copy link
Copy Markdown
Collaborator

This is fine from my end. Thanks for checking

@patak-cat
patak-cat merged commit 37f0b2f into main Sep 19, 2021
@patak-cat
patak-cat deleted the normalize-plugin-names branch September 19, 2021 08:37
ygj6 pushed a commit to ygj6/vite that referenced this pull request Sep 22, 2021
aleclarson pushed a commit to aleclarson/vite that referenced this pull request Nov 8, 2021
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.

4 participants