Open KevinGhadyani-Okta opened 1 year ago
These options are CLI only. It means the error is to has "API Override" for these options. Could you please fix the doc?
I'd actually like it if those could also work with the API. They worked previously in v5, but now they're not there anymore. Can we match the API spec to the CLI capabilities?
There you go: https://github.com/gregberge/svgr/pull/972 I spent some time to convert a rather complex cli command to api and just figured it out; it would be awesome to have those options in the API too.
Going through the TypeScript types for
Config
in@svgr/core
, it's missing two options still listed in the website but that no longer exist in the code:ignoreExisting
andindexTemplate
.In the TS for
Config
, there's no option here forignoreExisting
norindexTemplate
. Both of these are still documented on the website:Source: https://react-svgr.com/docs/options/#indexjs-template
But they're not in the output
index.js
anymore. It's possibleignoreExisting
isn't required anymore, but what aboutindexTemplate
? How am I supposed to template the index file?