NicholasBoll / cypress-storybook

Cypress commands for Storybook projects
MIT License
116 stars 20 forks source link

fix: Update functions and strings for IE compat #15

Closed anicholls closed 3 years ago

anicholls commented 3 years ago

Some changes a few months ago introduced arrow functions and template literals to react.js. Storybook 6's default webpack/babel config no longer transpiles this package. Since this file is not transpiled before publishing, this causes errors in IE when importing in the preview iframe.

This PR replaces arrow functions for regular functions and template literals for string concatenation.

✅ Verified that this works in Storybook 6.0.28

NicholasBoll commented 3 years ago

Works in SB 5 as well

NicholasBoll commented 3 years ago

Published in v0.2.2