-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
How to get import statements detected? #37
Comments
The logic for parsing ESM imports and exports lives in https://github.com/micromark/micromark-extension-mdxjs-esm |
I'm guessing you have an older version of mdx-js/mdx in there too. It uses locked versions of dependencies, whereas xdm uses wide ranges (I think the problem is specifically mdast-util-to-hast through remark-rehype). |
Fix deployed! |
It works, awesome! 🎉 |
When I install
xdm
as a dependency, running the following:interprets the
import
statement as text:But the same thing works fine inside the xdm repo! 😅
Any ideas why? 🙏
I'm using the latest xdm, 1.7.0.
The text was updated successfully, but these errors were encountered: