-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed as not planned
Labels
enhancement: pending triagep2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)
Description
Clear and concise description of the problem
Vite's some internal plugins uses the internal helper function fileToUrl
, which emits asset file to dev-server/bundle and return a URL for using in generated module code. It's also very useful for external plugins to emit asset files.
Suggested solution
Export fileToUrl
function from Vite and document it in the docs.
Alternative
Plugin authors could copy the code from fileToUrl
from their plugins. This is very inelegant.
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
poyoho, teidesu, boyeln, mytecor and brc-dd
Metadata
Metadata
Assignees
Labels
enhancement: pending triagep2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)