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

Insert semicolon to ensure whitespace is not significant #622

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

johno
Copy link
Member

@johno johno commented Jul 9, 2019

For large documents Babel will deopt styling which can
cause whitespace to change. When this happens we can result
in something like:

/* ... */;}MDXContent.isMDXComponent=true/* ... */

This will result in invalid syntax that causes the document
to break builds. With an explicit semicolon that will no
longer happen.

Closes #618

For large documents Babel will deopt styling which can
cause whitespace to change. When this happens we can result
in something like:

    /* ... */;}MDXContent.isMDXComponent=true/* ... */

This will result in invalid syntax that causes the document
to break builds. With an explicit semicolon that will no
longer happen.

Closes #618
@vercel
Copy link

vercel bot commented Jul 9, 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://mdx-git-add-semicolon.mdx.now.sh

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

Successfully merging this pull request may close these issues.

[BABEL] Note: The code generator has deoptimised the styling of undefined as it exceeds the max of 500KB.
2 participants