Skip to content

The entry point "react" cannot be marked as external #958

@belzile

Description

@belzile

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions