Skip to content

chore: improve html plugin name#5158

Merged
antfu merged 4 commits into
mainfrom
html-plugin-rename
Oct 1, 2021
Merged

chore: improve html plugin name#5158
antfu merged 4 commits into
mainfrom
html-plugin-rename

Conversation

@patak-cat
Copy link
Copy Markdown
Member

Description

The htmlInlineScriptProxyPlugin is named vite:html. This plugin has a clear responsibility, that is to load inline scripts of entry html files as separate modules. I think it would be helpful to rename it accordingly so it shows with a more descriptive name in plugin inspect.

This plugin is fundamental to the way Vite works, so IMO there isn't a chance that someone would depend in its name at this point (for example to remove it). It should be safe to merge even as a patch.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Comment thread packages/vite/src/node/plugins/html.ts Outdated
Comment thread packages/vite/src/node/plugins/html.ts Outdated
Comment thread packages/vite/src/node/plugins/html.ts Outdated
@patak-cat patak-cat requested a review from antfu September 30, 2021 18:52
@antfu antfu merged commit e8a1d19 into main Oct 1, 2021
aleclarson pushed a commit to aleclarson/vite that referenced this pull request Nov 8, 2021
* chore: improve html plugin name

* chore: spacing

* chore: spacing

* chore: spacing
@antfu antfu deleted the html-plugin-rename branch December 24, 2021 05:04
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.

3 participants