{"bugs":{"url":"https://github.com/gregberge/svgr/issues"},"dist":{"shasum":"0d7a002ee378e18d1a331888f7f4514d49a3b3e5","tarball":"https://registry.npmjs.org/@svgr/rollup/-/rollup-6.0.0-alpha.4.tgz","fileCount":6,"integrity":"sha512-DKkU24QvPUZCK1f/yjiJi/7MZixBa2L2XcOhW4kEGyOatx9wH7wCjxFxqJIzy5s2HPK5/1TiB4NaZHtrt8ZCsQ==","signatures":[{"sig":"MEUCIQCSW3mrZ/sVxM1JB/vHteRTkAftK2bB2dQl365pWneMRwIgePeo6nAA0MSY3fLTwp5EDCaDWIjOy0HmVj0vbLMAU8w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13243},"main":"./dist/index.js","name":"@svgr/rollup","author":{"name":"Greg Bergé","email":"berge.greg@gmail.com"},"readme":"# @svgr/rollup\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/rollup.svg)](https://www.npmjs.com/package/@svgr/rollup)\n[![MIT License](https://img.shields.io/npm/l/@svgr/rollup.svg)](https://github.com/smooth-code/svgr/blob/master/LICENSE)\n\nRollup plugin for SVGR.\n\n```\nnpm install @svgr/rollup --save-dev\n```\n\nIn your `rollup.config.js`:\n\n```js\n{\n  plugins: [svgr()]\n}\n```\n\nIn your code:\n\n```js\nimport Star from './star.svg'\n\nconst App = () => (\n  <div>\n    <Star />\n  </div>\n)\n```\n\n### Passing options\n\n```js\n{\n  plugins: [svgr({ native: true })]\n}\n```\n\n### Using with `url` plugin\n\nIt is possible to use it with [`url`](https://github.com/rollup/rollup-plugin-url).\n\nIn your `rollup.config.js`:\n\n```js\n{\n  plugins: [url(), svgr()]\n}\n```\n\nIn your code:\n\n```js\nimport starUrl, { ReactComponent as Star } from './star.svg'\n\nconst App = () => (\n  <div>\n    <img src={starUrl} alt=\"star\" />\n    <Star />\n  </div>\n)\n```\n\nThe named export defaults to `ReactComponent`, but can be customized with the `namedExport` option.\n\nPlease note that by default, `@svgr/rollup` will try to export the React Component via default export if there is no other plugin handling svg files with default export. When there is already any other plugin using default export for svg files, `@svgr/rollup` will always export the React component via named export.\n\nIf you prefer named export in any case, you may set the `exportType` option to `named`.\n\n### Use your own Babel configuration\n\nBy default, `@svgr/rollup` applies a babel transformation with [optimized configuration](https://github.com/smooth-code/svgr/blob/master/packages/rollup/src/index.js). In some case you may want to apply a custom one (if you are using Preact for an example). You can turn off Babel transformation by specifying `babel: false` in options.\n\n```js\n{\n  plugins: [svgr({ babel: false })]\n}\n```\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","svg","react","rollup","rollup-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":"SVGR Rollup plugin.","directories":{},"maintainers":[{"name":"neoziro","email":"berge.greg@gmail.com"}],"_nodeVersion":"16.13.0","dependencies":{"@svgr/core":"^6.0.0-alpha.4","@babel/core":"^7.15.5","@svgr/plugin-jsx":"^6.0.0-alpha.4","@babel/preset-env":"^7.15.6","@svgr/plugin-svgo":"^6.0.0-alpha.1","rollup-pluginutils":"^2.8.2","@babel/preset-react":"^7.14.5","@babel/plugin-transform-react-constant-elements":"^7.14.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rollup":"^2.56.3","rollup-plugin-url":"^3.0.1","rollup-plugin-image":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/rollup_6.0.0-alpha.4_1636792863562_0.09455320846422888","host":"s3://npm-registry-packages"},"_id":"@svgr/rollup@6.0.0-alpha.4","version":"6.0.0-alpha.4"}