Skip to content

Rollup 0.49.3 regression bundling React #1631

Description

@shanewholloway

Working with React 15.6.1, I discovered a regression when bundling with Rollup 0.49.3 in the form of a RangeError: Maximum call stack size exceeded exception. This gist bundles without error with Rollup 0.49.2.

Repro

Gist reproduction

git checkout https://gist.github.com/shanewholloway/0300fe7a4f6ce1b200275b880f79a2d2

Error text:

Error during rollup build: RangeError: Maximum call stack size exceeded
    at Set.values (native)
    at Function.from (native)
    at Node.hasEffectsWhenMutated (/Users/sholloway/sandbox/2017-09-12-rollup-react/node_modules/rollup/dist/rollup.js:6900:10)
    at Node.hasEffectsWhenMutated (/Users/sholloway/sandbox/2017-09-12-rollup-react/node_modules/rollup/dist/rollup.js:7091:21)
    at declaration.declaration.included.declaration.isParam.declaration.isGlobal.declaration.isExternal.declaration.isNamespace.declaration.assignedExpressions.Array.from.some.node (/Users/sholloway/sandbox/2017-09-12-rollup-react/node_modules/rollup/dist/rollup.js:6900:74)
    at Array.some (<anonymous>)
    at Node.hasEffectsWhenMutated (/Users/sholloway/sandbox/2017-09-12-rollup-react/node_modules/rollup/dist/rollup.js:6900:55)
    at Node.hasEffectsWhenMutated (/Users/sholloway/sandbox/2017-09-12-rollup-react/node_modules/rollup/dist/rollup.js:7091:21)
    at declaration.declaration.included.declaration.isParam.declaration.isGlobal.declaration.isExternal.declaration.isNamespace.declaration.assignedExpressions.Array.from.some.node (/Users/sholloway/sandbox/2017-09-12-rollup-react/node_modules/rollup/dist/rollup.js:6900:74)
    at Array.some (<anonymous>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions