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

Addon-docs: Restore IE11 compat by transpiling acorn-jsx #9021

Merged
merged 1 commit into from Dec 2, 2019
Merged

Addon-docs: Restore IE11 compat by transpiling acorn-jsx #9021

merged 1 commit into from Dec 2, 2019

Conversation

bpeab
Copy link
Contributor

@bpeab bpeab commented Dec 1, 2019

Issue: #8884

What I did

I added a new Webpack rule for the acorn-jsx dependency - that's used by addon-docs - with babel-loader to transpile it. Since acorn-jsx uses ES6 classes, it wasn't working on IE 11.

How to test

yarn storybook on any kitchen-sink that's using addon-docs and browser with Internet Explorer 11.

@vercel
Copy link

vercel bot commented Dec 1, 2019

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/storybook/monorepo/iw4wv2l7o
🌍 Preview: https://monorepo-git-fork-bpeab-transpile-acorn-jsx.storybook.now.sh

@shilman shilman changed the title Resolve #8884 by transpiling acorn-jsx Addon-docs: Restore IE11 compat by transpiling acorn-jsx Dec 2, 2019
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for fixing this!!!

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

Successfully merging this pull request may close these issues.

None yet

2 participants