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.
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