Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

How to add option to rollup config? #221

Open
@betfix

Description

@betfix

One of my files has this import:
import { createPortal } from "react-dom";

During build it's getting an error:
Error: 'createPortal' is not exported by node_modules\react-dom\index.js

I found a similar issue here:
rollup/rollup-plugin-node-resolve#58
and the solution may be to add namedExports to rollup.config.js

But the rollup config seems to come from microbundle. How to customize it with namedExports?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions