Closed silvenon closed 3 years ago
The logic for parsing ESM imports and exports lives in https://github.com/micromark/micromark-extension-mdxjs-esm From https://github.com/micromark/micromark-extension-mdxjs-esm/blob/c1b0734136b3d954f56c3384361b6bb4e17698b9/test.js#L315-L321 it appears this should be supported :thinking:
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). So, u installing that, reinstalling, should do the job!
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.