{"bugs":{"url":"https://github.com/gregberge/svgr/issues"},"dist":{"shasum":"e599fb89a80f732598c95aa17fe3b0790fb9cef3","tarball":"https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-6.0.0-alpha.1.tgz","fileCount":6,"integrity":"sha512-U+CE/+4lDYQksUUZeHke8PEDguD31l+1I9NNGMWA4DqnDmLlTKJPJhn4N4rYPx72eDaXzfOiEYwKIIG9te3uBg==","signatures":[{"sig":"MEUCIE1Qy1s9KPuvMRk1ov/T0xPOWcqGzFkuilnO2DD4gbc8AiEA8rFxhURsN/+OOZzwXR76j+47hj/3eKtn8T4KrLEySoQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8537},"main":"./dist/index.js","name":"@svgr/plugin-jsx","author":{"name":"Greg Bergé","email":"berge.greg@gmail.com"},"readme":"# @svgr/plugin-jsx\n\n[![Build Status](https://img.shields.io/travis/smooth-code/svgr.svg)](https://travis-ci.org/smooth-code/svgr)\n[![Version](https://img.shields.io/npm/v/@svgr/plugin-jsx.svg)](https://www.npmjs.com/package/@svgr/plugin-jsx)\n[![MIT License](https://img.shields.io/npm/l/@svgr/plugin-jsx.svg)](https://github.com/smooth-code/svgr/blob/master/LICENSE)\n\nTransforms SVG into JSX.\n\n## Install\n\n```\b\nnpm install --save-dev @svgr/plugin-jsx\n```\n\n## Usage\n\n**.svgrrc**\n\n```json\n{\n  \"plugins\": [\"@svgr/plugin-jsx\"]\n}\n```\n\n## How does it work?\n\n`@svgr/plugin-jsx` consists in three phases:\n\n- Parsing the SVG code using [svg-parser](https://github.com/Rich-Harris/svg-parser)\n- Converting the [HAST](https://github.com/syntax-tree/hast) into a [Babel AST](https://github.com/babel/babel/blob/master/packages/babel-parser/ast/spec.md)\n- Applying [`@svgr/babel-preset`](../babel-preset/README.md) transformations\n\n## Applying custom transformations\n\nYou can extend the Babel config applied in this plugin using `jsx.babelConfig` config path:\n\n```js\n// .svgrrc.js\n\nmodule.exports = {\n  jsx: {\n    babelConfig: {\n      plugins: [\n        // For an example, this plugin will remove \"id\" attribute from \"svg\" tag\n        [\n          '@svgr/babel-plugin-remove-jsx-attribute',\n          {\n            elements: ['svg'],\n            attributes: ['id'],\n          },\n        ],\n      ],\n    },\n  },\n}\n```\n\nSeveral Babel plugins are available:\n\n- [`@svgr/babel-plugin-add-jsx-attribute`](../babel-plugin-add-jsx-attribute/README.md)\n- [`@svgr/babel-plugin-remove-jsx-attribute`](../babel-plugin-remove-jsx-attribute/README.md)\n- [`@svgr/babel-plugin-remove-jsx-empty-expression`](../babel-plugin-remove-jsx-empty-expression/README.md)\n- [`@svgr/babel-plugin-replace-jsx-attribute-value`](../babel-plugin-replace-jsx-attribute-value/README.md)\n- [`@svgr/babel-plugin-svg-dynamic-title`](../babel-plugin-svg-dynamic-title/README.md)\n- [`@svgr/babel-plugin-svg-em-dimensions`](../babel-plugin-svg-em-dimensions/README.md)\n- [`@svgr/babel-plugin-transform-react-native-svg`](../babel-plugin-transform-react-native-svg/README.md)\n- [`@svgr/babel-plugin-transform-svg-component`](../babel-plugin-transform-svg-component/README.md)\n\nIf you want to create your own, reading [Babel Handbook](https://github.com/jamiebuilds/babel-handbook/blob/master/translations/en/plugin-handbook.md) is a good start!\n\n## License\n\nMIT\n","engines":{"node":">=10"},"exports":"./dist/index.js","funding":{"url":"https://github.com/sponsors/gregberge","type":"github"},"gitHead":"22e2736665552263fff88683e1551b8ad852b150","license":"MIT","scripts":{"build":"rollup -c ../../build/rollup.config.js","reset":"rm -rf dist","prepublishOnly":"npm run reset && npm run build"},"typings":"./dist/index.d.ts","_npmUser":{"name":"neoziro","email":"berge.greg@gmail.com"},"homepage":"https://react-svgr.com","keywords":["svgr-plugin"],"repository":{"url":"git+https://github.com/gregberge/svgr.git#master","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.0+arm64 (darwin)","description":"Transform SVG into JSX","directories":{},"maintainers":[{"name":"neoziro","email":"berge.greg@gmail.com"}],"_nodeVersion":"16.13.0","dependencies":{"svg-parser":"^2.0.2","@babel/core":"^7.15.5","@svgr/babel-preset":"^6.0.0-alpha.1","@svgr/hast-util-to-babel-ast":"^6.0.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"@svgr/core":"^6.0.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-jsx_6.0.0-alpha.1_1635670718776_0.43592895170860335","host":"s3://npm-registry-packages"},"_id":"@svgr/plugin-jsx@6.0.0-alpha.1","version":"6.0.0-alpha.1"}