"SVGR v6 will be the last version to support CommonJS" and how to support it? #778
mikeaustin
started this conversation in
General
Replies: 1 comment
-
If you use:
The migration of SVGR into ESM should not have big impact. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
"SVGR v6 will be the last version to support CommonJS. If you are still using CommonJS you should Get Ready For ESM as soon as possible."
I'm curious what are the steps are to support ESM libraries. I understand changing package.json type to "module" and adding "export" instead of main, but if I remember it's not just that easy with a mix of libraries that either type.
Related
https://formidable.com/blog/2021/node-esm-and-exports
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
https://nodejs.org/api/packages.html#type
Beta Was this translation helpful? Give feedback.
All reactions