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

CSF: Ignore __esModule export #8317

Merged
merged 1 commit into from
Oct 7, 2019
Merged

CSF: Ignore __esModule export #8317

merged 1 commit into from
Oct 7, 2019

Conversation

shilman
Copy link
Member

@shilman shilman commented Oct 7, 2019

Issue: #8080

What I did

Gatsby's default configuration seems to add __esModule: true to exports, which screws up CSF loading. Rather than fight it, let's just ignore those stories, since this seems like a standard thing for CommonJS / ESM interop (whatever that means)

How to test

yarn jest --testPathPattern start.test.js

@vercel
Copy link

vercel bot commented Oct 7, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-8080-ignore-es-module-export.storybook.now.sh

@shilman shilman added bug csf patch:yes Bugfix & documentation PR that need to be picked to main branch labels Oct 7, 2019
@ndelangen
Copy link
Member

LGTM

@shilman shilman merged commit c669021 into next Oct 7, 2019
@shilman shilman deleted the 8080-ignore-es-module-export branch October 7, 2019 14:28
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Oct 14, 2019
shilman added a commit that referenced this pull request Oct 14, 2019
CSF: Ignore __esModule export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug csf patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants