-
Notifications
You must be signed in to change notification settings - Fork 2
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 imports requirement #2
Comments
It's an optional function |
Yup! Like this: hamlim/inline-mdx.macro#9 |
Great, thank you! I will have a look at it 🤓 |
I am currently stuck that mdx suddenly generates a class instead of a functional component so the code breaks at the moment. Not sure what's triggering it returning a class 🤔 Ever seen this before, @kentcdodds? |
Nope 🙃 |
Looks like mdx changed it in v16.1.0 👎 |
I think you should be able to access the program node which you can use to access the body and insert the imports manually without requiring people to call the
imports()
function. Wanna give that a try?The text was updated successfully, but these errors were encountered: