Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-plugin-svgr

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-svgr - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

4

package.json
{
"name": "esbuild-plugin-svgr",
"description": "A plugin for esbuild that enables importing *.svg files as React components.",
"version": "1.1.0",
"version": "2.0.0",
"license": "MIT",

@@ -18,4 +18,4 @@ "author": "Kazi Jawad",

"dependencies": {
"@svgr/core": "^6.5.1"
"@svgr/core": "^8.0.0"
}
}

@@ -8,2 +8,3 @@ # esbuild-plugin-svgr

1. Install the plugin in your project:
```bash

@@ -16,2 +17,3 @@ npm install --save-dev esbuild-plugin-svgr

2. Add this plugin to your esbuild build script:
```js

@@ -29,2 +31,3 @@ import esbuild from 'esbuild'

3. Import your `*.svg` file from JavaScript:
```js

@@ -43,2 +46,3 @@ import Icon from './icon.svg';

4. Pass in optional [supported](https://react-svgr.com/docs/options/) configuration options:
```js

@@ -45,0 +49,0 @@ esbuild.build({

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc