🐛 Bug Report
Unable to generate file with custom extension with the config file option. It is working with CLI option.
To Reproduce
Create a .svgrrc.js file :
module.exports = {
ext: 'tsx',
}
Run npx @svgr/cli -d icons icons
Expected behavior
Output files with tsx extension
Envinfo
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown
System:
OS: macOS 10.15.3
CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Memory: 47.21 MB / 16.00 GB
Shell: 3.1.0 - /Users/jordid/homebrew/bin/fish
Binaries:
Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
Yarn: 1.22.4 - ~/homebrew/bin/yarn
npm: 6.14.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
(Not sure the envinfo output is as expected )
🐛 Bug Report
Unable to generate file with custom extension with the config file option. It is working with CLI option.
To Reproduce
Create a
.svgrrc.jsfile :Run
npx @svgr/cli -d icons iconsExpected behavior
Output files with
tsxextensionEnvinfo
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdownSystem: OS: macOS 10.15.3 CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz Memory: 47.21 MB / 16.00 GB Shell: 3.1.0 - /Users/jordid/homebrew/bin/fish Binaries: Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node Yarn: 1.22.4 - ~/homebrew/bin/yarn npm: 6.14.4 - ~/.nvm/versions/node/v12.16.1/bin/npm(Not sure the envinfo output is as expected )