Parcel demo not working (https://mdxjs.com/getting-started/parcel)
Mac
Install parcel and mdx.
Create an index.mdx file with # test this
run parcel index.mdx
Should render
Doesn't render
(I'm new to both parcel and mdx)
/cc @ifyoumakeit, @hamlim, who made the plugin initially.
Hmm, it has been a while since I've used parcel with MDX (mostly using webpack these days). I can try and take a look at it today though!
Alright so I think the plugin only works when your parcel entry point is a different file, e.g. parcel index.html and from within that index.html file you import the MDX file and render it.
I setup an example here following those docs: https://github.com/hamlim/parcel-mdx-demo
Seems like there might be an opportunity here to improve that documentation to call this out possibly?
Most helpful comment
Alright so I think the plugin only works when your parcel entry point is a different file, e.g.
parcel index.htmland from within thatindex.htmlfile you import the MDX file and render it.I setup an example here following those docs: https://github.com/hamlim/parcel-mdx-demo
Seems like there might be an opportunity here to improve that documentation to call this out possibly?