- yarn add --dev @svgr/cli
- Config in package.json
"scripts": {
    "svgr": "npx @svgr/cli --out-dir src/components/icons --ignore-existing -- src/assests/icons"
}- yarn svgr
- Use with semi-ui
import {Divider, Icon, Typography} from '@douyinfe/semi-ui';
import SvgBulleye from './components/icons/Bulleye';
<Icon svg={<SvgBulleye />} />