Description
Describe the bug
The PluginContext
types say that this.fs
should exist in plugin hooks like transform
or buildStart
but it's undefined during dev/serve mode.
Unlike this.emitFile
, it does not print a warning message in its place either.
Reproduction
Steps to reproduce
No response
System Info
vite @ 6.3.5
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.