-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Open
Labels
Description
Describe the bug
Vite injects __vitePreload on each dynamic import, I would expected this not be included when modulePreload
is set to false
.
Eg. If I want to handle preloading manually or not at all.
Reproduction
https://stackblitz.com/edit/vitejs-vite-p54vgg
Steps to reproduce
Run vite build
and the output is actually larger then the source.
System Info
..
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.
vadimmarkov, samuelstroschein, wmertens, bwillert, viocha and 1 more