contentlayerdev / contentlayer

Contentlayer turns your content into data - making it super easy to import MD(X) and CMS content in your app
https://www.contentlayer.dev
MIT License
3.27k stars 200 forks source link

Remove .mjs import workaround once fixed in Next.js #121

Open schickling opened 2 years ago

schickling commented 2 years ago

Let's remove this workaround once this issue is fixed: https://github.com/vercel/next.js/issues/17806

https://github.com/contentlayerdev/contentlayer/blob/ec26a633754c0520e2f61d70398ac4f88463692a/packages/next-contentlayer/src/index-cjs.ts#L40-L47

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

joulev commented 8 months ago

@schickling https://github.com/vercel/next.js/pull/58967 should already fix this I think, the workaround should no longer be required.