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

add scoped variables #8

Merged
merged 2 commits into from
Jul 9, 2020
Merged

Conversation

chewnoill
Copy link
Contributor

Hey! 👋

This PR brings next-mdx-remote more in line with how the mdx-runtime works.

see: https://github.com/mdx-js/mdx/blob/master/packages/runtime/src/index.js

Great work over here by the way, I like what you're doing

documentation was included on the wrong line.
@hashicorp-cla
Copy link

hashicorp-cla commented Jun 10, 2020

CLA assistant check
All committers have signed the CLA.

@jescalan
Copy link
Contributor

jescalan commented Jul 8, 2020

This is incredible, thank you so much for the contribution @chewnoill! Going to take a moment to ensure I fully understand the changes that were made here, then will get this shipped out :shipit:

Copy link
Contributor

@jescalan jescalan left a comment

Choose a reason for hiding this comment

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

This is really excellent. Thank you so much. Just one small comment with some additional dead code that can be removed!

.then((jsx) => {
return `${renderer}\n${jsx}`
})
return mdx(source, { ...options, skipExport: true })
Copy link
Contributor

Choose a reason for hiding this comment

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

I hadn't dug up this skipExport option, this is a great find. I think we can also remove this transform safely now that it has been added!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

This includes a refactor that removes the dependency on require-from-string.
@chewnoill chewnoill force-pushed the chewy/scoped-variables branch from a23bff5 to 75226ae Compare July 9, 2020 10:42
@jescalan jescalan merged commit 8d3eee4 into hashicorp:master Jul 9, 2020
@jescalan
Copy link
Contributor

jescalan commented Jul 9, 2020

👏🏼 thank you again for the contribution! I'll have a release out for this shortly

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

Successfully merging this pull request may close these issues.

3 participants