Reproduce vite-top-level-virtual-input from its authentic engineer request.
Reproduce vite-top-level-virtual-input from its authentic engineer request.: a task in vite-selfbench (Harbor dataset). Support virtual modules in Vite's top-level input option. When a configured plugin can resolve and load the specified input ID, Vite must use that module as the entry instead of…
The task
Support virtual modules in Vite's top-level `input` option. When a configured plugin can resolve and load the specified input ID, Vite must use that module as the entry instead of treating the ID as a path under the project root. Preserve existing behavior for ordinary file-based inputs and the default entry.
Part of dari-ai/vite-selfbench.