Socket
Socket
Sign inDemoInstall

@figma-export/output-components-as-svgr

Package Overview
Dependencies
88
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.8.0 to 5.0.0

2

dist/index.d.ts
import * as FigmaExport from '@figma-export/types';
import { Config } from '@svgr/core';
declare type Options = {
type Options = {
output: string;

@@ -5,0 +5,0 @@ getDirname?: (options: FigmaExport.ComponentOutputterParamOption) => string;

{
"name": "@figma-export/output-components-as-svgr",
"version": "4.8.0",
"version": "5.0.0",
"description": "Outputter for @figma-export that exports components as React components using svgr",

@@ -28,10 +28,10 @@ "main": "dist/index.js",

"dependencies": {
"@figma-export/types": "^4.8.0",
"@figma-export/utils": "^4.8.0",
"@svgr/core": "~6.3.1"
"@figma-export/types": "^5.0.0",
"@figma-export/utils": "^5.0.0",
"@svgr/core": "~8.1.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
},
"gitHead": "a35d7d156bd0816312d6dba39d33ec3d42b14777"
"gitHead": "710491acee80e899e280680fb12a412da5283af4"
}

@@ -83,2 +83,27 @@ # @figma-export/output-components-as-svgr

## :warning: @svgr/plugin-jsx
Starting from v7 they [removed `plugin-jsx` from the core](https://github.com/gregberge/svgr/releases/tag/v7.0.0) so you'll need to [install it manually](https://www.npmjs.com/package/@svgr/plugin-jsx).
```sh
npm install --save-dev @svgr/plugin-jsx
```
```js
// .figmaexportrc.js
...
outputters: [
require('@figma-export/output-components-as-svgr')({
output: './output/svgr',
getSvgrConfig: () => ({
plugins: ['@svgr/plugin-jsx']
})
})
]
...
```
## Install

@@ -85,0 +110,0 @@

Sorry, the diff of this file is not supported yet

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