-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ESM for templates #955
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
馃殌 Feature Proposal
Support ESM templates.
Error when loading "--template": svgr-template.mjs
Currently the docs do show to use CJS: https://react-svgr.com/docs/custom-templates/#custom-index-template
Motivation
The future of JS is ESM, we should be moving away from CJS everywhere.
Example
Everything re-written from CJS to ESM.
Pitch
Less pain having to deal with CJS.
Slightly related to #707
Is this on the roadmap?
The text was updated successfully, but these errors were encountered: