Skip to content

Support builds without index.html #262

@mrmckeb

Description

@mrmckeb

Clear and concise description of the problem

We have a micro-frontend architecture, and our newest MFE is using Vite 8.

For HMR, we have this in our entry file, which works well. It would be great to have a similar option for the DevTools.

import "@vitejs/plugin-react/preamble";

Suggested solution

Add a preamble for DevTools.

import "@vitejs/devtools/preamble";

Alternative

No response

Additional context

I'm not sure how this would work across multiple MFEs, or if that's on your roadmap.

Validations

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions