@hpe.com/vite-plugin-svg-to-jsx
v1.0.4
Published
A vite plugin for transforming svg to jsx
Downloads
6,443
Keywords
Readme
vite-plugin-svg-to-jsx
A function to transform svg to react
const svgToReact = (config: SvgoConfig): Plugin[]
How to use
import { svgToReact } from 'vite-plugin-svg-to-jsx';
How to release
With your changes safely in the main branch, run:
npm version patch # also takes minor or major
to bump the version number of the package as well as push it as a git tag for others.
Working between hew and another repo
Sometimes, you'll have to update hew as an upstream change to another repo, like determined. Here's how to handle that process:
- When you're working locally and want to check your ui kit changes in your other repo:
- make sure you're using the same version of node between this and your other repo
- run
npm link
in this repo folder - run
npm link vite-plugin-svg-to-jsx --save
in the other repo's folder - remember to run
npm unlink vite-plugin-svg-to-jsx
when you're done!
- remember to run