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

MDX: Don't use root babelrc by default #11185

Merged
merged 1 commit into from
Jun 16, 2020
Merged

Conversation

shilman
Copy link
Member

@shilman shilman commented Jun 16, 2020

Issue: #11094 #8096

What I did

Make the MDX processing opt out of user's babelrc config by default. User can opt-in if needed by overriding it with babelrc: true.

This was causing a problem especially in Vue, where the users' babelrc presets were conflicting with the React MDX plugins. This fixes those issues.

How to test

See the Addons/Docs stories in vue-kitchen-sink before & after this change.

  • Before: docs tab broken with h is not undefined
  • After: success

Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

OK, makes sense to me

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.

2 participants