Socket
Socket
Sign inDemoInstall

@hpe.com/vite-plugin-svg-to-jsx

Package Overview
Dependencies
101
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hpe.com/vite-plugin-svg-to-jsx

A vite plugin for transforming svg to jsx


Version published
Maintainers
6
Created

Readme

Source

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!

FAQs

Last updated on 29 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc