Skip to content

withDragAndDrop default export not handled correctly in rolldown #2795

Description

@Mourdraug

Check that this is really a bug

  • I confirm

Reproduction link

https://github.com/Mourdraug/React-Big-Calendar-Export-issue

Bug description

Rolldown seems to have issues handling default export of withDragAndDrop correctly.
In runtime this import gives me Object { default: withDragAndDrop(Calendar), … }
Possibly related to:
https://rolldown.rs/in-depth/bundling-cjs#ambiguous-default-import-from-cjs-modules

Expected Behavior

No response

Actual Behavior

No response

react-big-calendar version

1.19.4

React version

19.2.4

Platform/Target and Browser Versions

Windows Firefox 148.0.2

Validations

  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a react-big-calendar issue and not an implementation issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions