You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you know, recma plugins are a part of mdx ecosystem.
The package @mdx-js/mdx itself is an ESM package which uses remark / reyhpe / recma plugins that might only ESM and mostly. This is not directly related with nextjs which can import ESM only packages, as well.
I think this package should be and enough to be only ESM.
The text was updated successfully, but these errors were encountered:
Can you clarify what the benefits of converting this package to ESM by default would be for end users? There's also some discussion here as to CJS / ESM thoughts: mdx-js/mdx#2230 (comment)
I have created about 10 remark/rehype/recma plugins up to now, and all of them are ESM only. I've been using them in nextjs v.13 and v.14 apps in CJS setup with no problem.
As an example you can have a look my latest recma plugin recma-mdx-escape-missing-components which is ESM only as well. It is tested in a CJS setup nextjs v.14.1 app.
This is for your information. The benefit is that all remark / mdx ecosystem is towards to ESM only. I recommend you to convert the package to ESM only, because it doesn't cause any problem.
The benefit is that all remark / mdx ecosystem is towards to ESM only.
I'm not sure I understand this benefit. I can understand other packages might be ESM-only, but given this package is CJS and ESM compatible it presuambly still works within that ecosystem? Sorry if I'm missing something here!
Thanks for the plugin.
As you know, recma plugins are a part of mdx ecosystem.
The package
@mdx-js/mdx
itself is an ESM package which uses remark / reyhpe / recma plugins that might only ESM and mostly. This is not directly related withnextjs
which can import ESM only packages, as well.I think this package should be and enough to be only ESM.
The text was updated successfully, but these errors were encountered: