dump247 / storybook-state

Manage component state in React storybook.
MIT License
76 stars 17 forks source link

Bundled versions >=1.6.0 breaks tests in node environment #22

Open hexagon6 opened 5 years ago

hexagon6 commented 5 years ago

See comment: https://github.com/dump247/storybook-state/commit/1741d3eb87be1736377f008f6c368925587e149e#r34210654

Unfortunately this change (https://github.com/dump247/storybook-state/commit/1741d3eb87be1736377f008f6c368925587e149e) breaks some test setups that run on node, as import stays in the bundle, but is not yet officially supported by node (without flag). (e.g. running @storybook/addon-storyshots with jest uses node).

Is it possible to revert this change and release a new version on npm?

hexagon6 commented 5 years ago

I've tested with 1.5.2 which works flawlessly, 1.6.1 does not.