-
-
Notifications
You must be signed in to change notification settings - Fork 193
Labels
Description
Related plugins
Describe the bug
Although, it is probably the intended behaviour, I need React declared as external.
I am wondering what I could do to get this plugin working.
I am getting
- The entry point "react" cannot be marked as external
- The entry point "react-dom" cannot be marked as external
I need it because my application is built around "micro-frontends", I have multiple React component defined in different projects, but React is provided to them externally via an import map. There has to be only one React, otherwise it does not work.
Any way we could make that use case work?
Reproduction
Steps to reproduce
No response
System Info
-Used Package Manager
pnpm
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.
- 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.