{"bugs":{"url":"https://github.com/gregberge/svgr/issues"},"dist":{"shasum":"a57d3fe849895d5b321f27a554af2f3cfc314534","tarball":"https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-6.0.0-alpha.4.tgz","fileCount":6,"integrity":"sha512-Fua6NmR3Jyf5l7r72Er/e94hlxGQwWF1U5MOhsnY/j8LpqvJ8Z0QmmNJhddvCF+eDbnJ8WE2KSobhHfXRB7vUg==","signatures":[{"sig":"MEYCIQDAKBiMsr01VWHxS5eAevf8WvdfUNvKNUe0eh5ItBVJIwIhAM6G6/eaRMvccRp7SRFmK7fovdzhTpi5XR53cKCobO29","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11566},"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":"a5effba17307c1ab1c04da3c1b8cee79c060cd46","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.4","@svgr/hast-util-to-babel-ast":"^6.0.0-alpha.3"},"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.4_1636792861989_0.7520942775737249","host":"s3://npm-registry-packages"},"_id":"@svgr/plugin-jsx@6.0.0-alpha.4","version":"6.0.0-alpha.4"}