New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3 to 1.0.0

22

index.d.ts

@@ -1,20 +0,4 @@

declare function svgrPlugin(options?: {
configFile?: string;
ext?: string;
icon?: boolean;
native?: boolean | object;
typescript?: boolean;
dimensions?: boolean;
expandProps?: string;
ref?: boolean;
memo?: boolean;
replaceAttrValues?: object;
svgProps?: object;
titleProp?: boolean;
template?: any;
outDir?: string;
indexTemplate?: any;
ignoreExisting?: boolean;
filenameCase?: string;
}): {
import { Config } from "@svgr/core";
declare function svgrPlugin(options?: Config): {
name: string;

@@ -21,0 +5,0 @@ setup(build: unknown): void;

2

index.js
module.exports = (options = {}) => ({
name: 'svgr',
setup(build) {
const svgr = require('@svgr/core').default;
const svgr = require('@svgr/core').transform;
const fs = require('fs');

@@ -6,0 +6,0 @@

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

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

"dependencies": {
"@svgr/core": "^5.5.0"
"@svgr/core": "^6.1.2"
}
}
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