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 0.0.2 to 0.0.3

2

index.js

@@ -9,3 +9,3 @@ module.exports = (options = {}) => ({

const svg = await fs.promises.readFile(args.path, 'utf8');
const contents = await svgr(svg, { ...options });
const contents = await svgr(svg, { ...options }, { filePath: args.path });
return {

@@ -12,0 +12,0 @@ contents,

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

@@ -6,0 +6,0 @@ "author": "Kazi Jawad",

@@ -38,3 +38,3 @@ # esbuild-plugin-svgr

4. Pass in optional [supported](https://github.com/gregberge/svgr/blob/master/packages/core/src/config.js#L3) configuration options:
4. Pass in optional [supported](https://react-svgr.com/docs/options/) configuration options:
```js

@@ -41,0 +41,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