Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update functions and strings for IE compat #15

Merged
merged 1 commit into from Nov 12, 2020

Conversation

anicholls
Copy link
Contributor

@anicholls anicholls commented Nov 12, 2020

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
Copy link
Owner

Works in SB 5 as well

@NicholasBoll NicholasBoll merged commit 341c61f into NicholasBoll:master Nov 12, 2020
@NicholasBoll
Copy link
Owner

Published in v0.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants