Skip to content

v2.7.0 breaks legacy module import #475

Closed
@kaidjohnson

Description

@kaidjohnson

What is the current behavior?

var TransitionGroup = require('react-transition-group/TransitionGroup');

v2.7.0 returns an object { default: <TransitionGroup> }

What is the expected behavior?

v2.6.1 returns the TransitionGroup function directly.

react-transition-group is a ternary transitive dependency from a few depths of our package tree, but I've confirmed that downgrading to 2.6.1 fixes the issue for us, but forces us to surface a ternary transitive dependency in our package.json directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions