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

Remove layoutProps from compiled output #1017

Closed
wants to merge 1 commit into from
Closed

Conversation

silvenon
Copy link
Contributor

There is no need to collect exports into layoutProps just to spread it in the layout component, these variables are already in scope so we can just add them directly.

Unfortunately, this doesn't fix the Next.js issue outlined #742 (comment). Maybe MDX should allow providing a blacklist for certain export names, which won't get added to the layout component.

Fixes #742.

There is no need to collect exports into `layoutProps` just to spread it
in layout, these variables are already in scope so we can just add them
directly.
@silvenon silvenon requested a review from johno April 17, 2020 18:52
@vercel
Copy link

vercel bot commented Apr 17, 2020

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/mdx/mdx/9e6cl22xy
✅ Preview: https://mdx-git-remove-layoutprops.mdx.now.sh

@silvenon
Copy link
Contributor Author

I just saw #778 🤦 I'll take some time to get acquainted with plans for v2.

@silvenon silvenon closed this Apr 17, 2020
@wooorm wooorm deleted the remove-layoutProps branch December 18, 2020 08:22
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.

Remove layoutProps from transpiled output
1 participant