{"_id":"@rollup/plugin-image","_rev":"902765","name":"@rollup/plugin-image","description":"Import JPG, PNG, GIF, SVG, and WebP files","dist-tags":{"latest":"2.1.1"},"maintainers":[{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":""}],"time":{"modified":"2021-09-20T12:56:07.000Z","created":"2019-11-20T21:22:53.980Z","2.1.1":"2021-08-24T02:41:49.713Z","2.1.0":"2021-07-26T18:51:55.202Z","2.0.6":"2020-12-14T14:33:39.103Z","2.0.5":"2020-05-11T16:17:18.431Z","2.0.4":"2020-02-04T15:36:09.154Z","2.0.2":"2020-02-01T18:18:17.695Z","2.0.1":"2020-01-07T14:48:36.785Z","2.0.0":"2019-11-20T21:22:53.980Z"},"users":{},"author":{"name":"Rich Harris"},"repository":{"url":"git+https://github.com/rollup/plugins.git","directory":"packages/image"},"versions":{"2.1.1":{"name":"@rollup/plugin-image","version":"2.1.1","publishConfig":{"access":"public"},"description":"Import JPG, PNG, GIF, SVG, and WebP files","license":"MIT","repository":{"url":"git+https://github.com/rollup/plugins.git","directory":"packages/image"},"author":{"name":"Rich Harris"},"homepage":"https://github.com/rollup/plugins/tree/master/packages/image/#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"main":"dist/index.js","module":"dist/index.es.js","engines":{"node":">= 8.0.0"},"scripts":{"build":"rollup -c","ci:coverage":"nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov","ci:lint":"pnpm build && pnpm lint","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","ci:test":"pnpm test -- --verbose","prebuild":"del-cli dist","prepare":"if [ ! -d 'dist' ]; then pnpm build; fi","prerelease":"pnpm build","pretest":"pnpm build","release":"pnpm plugin:release --workspace-root -- --pkg $npm_package_name","test":"ava"},"keywords":["rollup","plugin","images","modules"],"peerDependencies":{"rollup":"^1.20.0 || ^2.0.0"},"dependencies":{"@rollup/pluginutils":"^3.1.0","mini-svg-data-uri":"^1.2.3"},"devDependencies":{"@rollup/plugin-buble":"^0.21.3","rollup":"^2.23.0"},"types":"./types/index.d.ts","ava":{"babel":{"compileEnhancements":false},"files":["!**/fixtures/**","!**/helpers/**","!**/recipes/**","!**/types.ts"]},"_id":"@rollup/plugin-image@2.1.1","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"shasum":"898d6b59ac0025d7971ef45640ab330cb0663b0c","size":4705,"noattachment":false,"key":"/@rollup/plugin-image/-/@rollup/plugin-image-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rollup/plugin-image/download/@rollup/plugin-image-2.1.1.tgz"},"_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"directories":{},"maintainers":[{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-image_2.1.1_1629772909362_0.3104777197351527"},"_hasShrinkwrap":false,"publish_time":1629772909713,"_cnpm_publish_time":1629772909713},"2.1.0":{"name":"@rollup/plugin-image","version":"2.1.0","publishConfig":{"access":"public"},"description":"Import JPG, PNG, GIF, SVG, and WebP files","license":"MIT","repository":{"url":"git+https://github.com/rollup/plugins.git","directory":"packages/image"},"author":{"name":"Rich Harris"},"homepage":"https://github.com/rollup/plugins/tree/master/packages/image/#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"main":"dist/index.js","module":"dist/index.es.js","engines":{"node":">= 8.0.0"},"scripts":{"build":"rollup -c","ci:coverage":"nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov","ci:lint":"pnpm build && pnpm lint","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","ci:test":"pnpm test -- --verbose","prebuild":"del-cli dist","prepare":"if [ ! -d 'dist' ]; then pnpm build; fi","prerelease":"pnpm build","pretest":"pnpm build","release":"pnpm plugin:release --workspace-root -- --pkg $npm_package_name","test":"ava"},"keywords":["rollup","plugin","images","modules"],"peerDependencies":{"rollup":"^1.20.0 || ^2.0.0"},"dependencies":{"@rollup/pluginutils":"^3.1.0","mini-svg-data-uri":"^1.2.3"},"devDependencies":{"@rollup/plugin-buble":"^0.21.3","rollup":"^2.23.0"},"types":"./types/index.d.ts","ava":{"babel":{"compileEnhancements":false},"files":["!**/fixtures/**","!**/helpers/**","!**/recipes/**","!**/types.ts"]},"_id":"@rollup/plugin-image@2.1.0","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"shasum":"55a477f07af04b1b0caf63f098568a8bf8b1fa8f","size":4473,"noattachment":false,"key":"/@rollup/plugin-image/-/@rollup/plugin-image-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rollup/plugin-image/download/@rollup/plugin-image-2.1.0.tgz"},"_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"directories":{},"maintainers":[{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-image_2.1.0_1627325514965_0.9329956294009547"},"_hasShrinkwrap":false,"publish_time":1627325515202,"_cnpm_publish_time":1627325515202},"2.0.6":{"name":"@rollup/plugin-image","version":"2.0.6","publishConfig":{"access":"public"},"description":"Import JPG, PNG, GIF, SVG, and WebP files","license":"MIT","repository":{"type":"git","url":"git+https://github.com/rollup/plugins.git"},"author":{"name":"Rich Harris"},"homepage":"https://github.com/rollup/plugins/tree/master/packages/image/#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"main":"dist/index.js","module":"dist/index.es.js","engines":{"node":">= 8.0.0"},"scripts":{"build":"rollup -c","ci:coverage":"nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov","ci:lint":"pnpm run build && pnpm run lint","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","ci:test":"pnpm run test -- --verbose","lint":"pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package","lint:docs":"prettier --single-quote --arrow-parens avoid --trailing-comma none --write *.md","lint:js":"eslint --fix --cache src test --ext .js,.ts","lint:package":"prettier --write package.json --plugin=prettier-plugin-package","prebuild":"del-cli dist","prepare":"pnpm run build","prepublishOnly":"pnpm run lint","pretest":"pnpm run build","test":"ava"},"keywords":["rollup","plugin","images","modules"],"peerDependencies":{"rollup":"^1.20.0 || ^2.0.0"},"dependencies":{"@rollup/pluginutils":"^3.1.0","mini-svg-data-uri":"^1.2.3"},"devDependencies":{"@rollup/plugin-buble":"^0.21.3","rollup":"^2.23.0"},"ava":{"babel":{"compileEnhancements":false},"files":["!**/fixtures/**","!**/helpers/**","!**/recipes/**","!**/types.ts"]},"_id":"@rollup/plugin-image@2.0.6","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"shasum":"2e6d7a72b25df81aa80c8c0866d45a45c1e6a265","size":5153,"noattachment":false,"key":"/@rollup/plugin-image/-/@rollup/plugin-image-2.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rollup/plugin-image/download/@rollup/plugin-image-2.0.6.tgz"},"_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"directories":{},"maintainers":[{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-image_2.0.6_1607956418986_0.6938320019087549"},"_hasShrinkwrap":false,"publish_time":1607956419103,"_cnpm_publish_time":1607956419103},"2.0.5":{"name":"@rollup/plugin-image","version":"2.0.5","publishConfig":{"access":"public"},"description":"Import JPG, PNG, GIF, SVG, and WebP files","license":"MIT","repository":{"type":"git","url":"git+https://github.com/rollup/plugins.git"},"author":{"name":"Rich Harris"},"homepage":"https://github.com/rollup/plugins/tree/master/packages/image/#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"main":"dist/index.js","engines":{"node":">= 8.0.0"},"scripts":{"build":"rollup -c","ci:coverage":"nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov","ci:lint":"pnpm run build && pnpm run lint","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","ci:test":"pnpm run test -- --verbose","lint":"pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package","lint:docs":"prettier --single-quote --write *.md","lint:js":"eslint --fix --cache src test --ext .js,.ts","lint:package":"prettier --write package.json --plugin=prettier-plugin-package","prebuild":"del-cli dist","prepare":"pnpm run build","prepublishOnly":"pnpm run lint","pretest":"pnpm run build","test":"ava"},"keywords":["rollup","plugin","images","modules"],"peerDependencies":{"rollup":"^1.20.0 || ^2.0.0"},"dependencies":{"@rollup/pluginutils":"^3.0.4","mini-svg-data-uri":"^1.1.3"},"devDependencies":{"@rollup/plugin-buble":"^0.21.0","rollup":"^2.0.0"},"ava":{"files":["!**/fixtures/**","!**/helpers/**","!**/recipes/**","!**/types.ts"]},"module":"dist/index.es.js","_id":"@rollup/plugin-image@2.0.5","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"shasum":"07859a69f5fe592643c2ad3ef59ae8a5c268a7ef","size":5002,"noattachment":false,"key":"/@rollup/plugin-image/-/@rollup/plugin-image-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rollup/plugin-image/download/@rollup/plugin-image-2.0.5.tgz"},"maintainers":[{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":""}],"_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-image_2.0.5_1589213838286_0.5992752515621087"},"_hasShrinkwrap":false,"publish_time":1589213838431,"_cnpm_publish_time":1589213838431},"2.0.4":{"name":"@rollup/plugin-image","version":"2.0.4","publishConfig":{"access":"public"},"description":"Import JPG, PNG, GIF, SVG, and WebP files","license":"MIT","repository":{"type":"git","url":"git+https://github.com/rollup/plugins.git"},"author":{"name":"Rich Harris"},"homepage":"https://github.com/rollup/plugins/tree/master/packages/image/#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"main":"dist/index.js","engines":{"node":">= 8.0.0"},"scripts":{"build":"rollup -c","ci:coverage":"nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov","ci:lint":"pnpm run build && pnpm run lint","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","ci:test":"pnpm run test -- --verbose","lint":"pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package","lint:docs":"prettier --single-quote --write *.md","lint:js":"eslint --fix --cache src test","lint:package":"prettier --write package.json --plugin=prettier-plugin-package","prebuild":"del-cli dist","prepare":"pnpm run build","prepublishOnly":"pnpm run lint","pretest":"pnpm run build","test":"ava"},"keywords":["rollup","plugin","images","modules"],"peerDependencies":{"rollup":"^1.20.0"},"dependencies":{"@rollup/pluginutils":"^3.0.4","mini-svg-data-uri":"^1.1.3"},"devDependencies":{"@rollup/plugin-buble":"^0.21.0","rollup":"^1.29.0"},"ava":{"files":["!**/fixtures/**","!**/helpers/**","!**/recipes/**","!**/types.ts"]},"module":"dist/index.es.js","_id":"@rollup/plugin-image@2.0.4","_nodeVersion":"12.3.1","_npmVersion":"6.11.2","dist":{"shasum":"a9b22737684986d2299b7803b82bf87af47d41de","size":4956,"noattachment":false,"key":"/@rollup/plugin-image/-/@rollup/plugin-image-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rollup/plugin-image/download/@rollup/plugin-image-2.0.4.tgz"},"maintainers":[{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":""}],"_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-image_2.0.4_1580830568885_0.8928451977574909"},"_hasShrinkwrap":false,"publish_time":1580830569154,"_cnpm_publish_time":1580830569154},"2.0.2":{"name":"@rollup/plugin-image","version":"2.0.2","publishConfig":{"access":"public"},"description":"Import JPG, PNG, GIF, SVG, and WebP files","license":"MIT","repository":{"type":"git","url":"git+https://github.com/rollup/plugins.git"},"author":{"name":"Rich Harris"},"homepage":"https://github.com/rollup/plugins/tree/master/packages/image/#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"main":"dist/index.js","engines":{"node":">= 8.0.0"},"scripts":{"build":"rollup -c","ci:coverage":"nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov","ci:lint":"pnpm run build && pnpm run lint","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","ci:test":"pnpm run test -- --verbose","lint":"pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package","lint:docs":"prettier --single-quote --write *.md","lint:js":"eslint --fix --cache src test","lint:package":"prettier --write package.json --plugin=prettier-plugin-package","prebuild":"del-cli dist","prepare":"pnpm run build","prepublishOnly":"pnpm run lint","pretest":"pnpm run build","test":"ava"},"keywords":["rollup","plugin","images","modules"],"peerDependencies":{"rollup":"^1.20.0"},"dependencies":{"@rollup/pluginutils":"^3.0.1"},"devDependencies":{"@rollup/plugin-buble":"^0.21.0","rollup":"^1.27.14"},"ava":{"files":["!**/fixtures/**","!**/helpers/**","!**/recipes/**","!**/types.ts"]},"module":"dist/index.es.js","_id":"@rollup/plugin-image@2.0.2","_nodeVersion":"12.3.1","_npmVersion":"6.11.2","dist":{"shasum":"ff09c846d8630ab5d42d0fbd1ef83cca4c53cecf","size":4501,"noattachment":false,"key":"/@rollup/plugin-image/-/@rollup/plugin-image-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rollup/plugin-image/download/@rollup/plugin-image-2.0.2.tgz"},"maintainers":[{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":""}],"_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-image_2.0.2_1580581097585_0.31305137402382566"},"_hasShrinkwrap":false,"publish_time":1580581097695,"_cnpm_publish_time":1580581097695},"2.0.1":{"name":"@rollup/plugin-image","version":"2.0.1","publishConfig":{"access":"public"},"description":"Import JPG, PNG, GIF, SVG, and WebP files","license":"MIT","repository":{"type":"git","url":"git+https://github.com/rollup/plugins.git"},"author":{"name":"Rich Harris"},"homepage":"https://github.com/rollup/plugins/tree/master/packages/image/#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"main":"dist/index.js","engines":{"node":">= 8.0.0"},"scripts":{"build":"rollup -c","ci:coverage":"nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov","ci:lint":"pnpm run build && pnpm run lint","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","ci:test":"pnpm run test -- --verbose","lint":"pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package","lint:docs":"prettier --single-quote --write *.md","lint:js":"eslint --fix --cache src test","lint:package":"prettier --write package.json --plugin=prettier-plugin-package","prebuild":"del-cli dist","prepare":"pnpm run build","prepublishOnly":"pnpm run lint","pretest":"pnpm run build","test":"ava"},"keywords":["rollup","plugin","images","modules"],"peerDependencies":{"rollup":"^1.20.0"},"dependencies":{"@rollup/pluginutils":"^3.0.1"},"devDependencies":{"rollup":"^1.27.14","rollup-plugin-buble":"^0.10.0"},"ava":{"files":["!**/fixtures/**","!**/helpers/**","!**/recipes/**","!**/types.ts"]},"module":"dist/index.es.js","_id":"@rollup/plugin-image@2.0.1","_nodeVersion":"12.3.1","_npmVersion":"6.11.2","dist":{"shasum":"3c74b0fea08fff05212b4b3068be02882b11f3e6","size":4472,"noattachment":false,"key":"/@rollup/plugin-image/-/@rollup/plugin-image-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rollup/plugin-image/download/@rollup/plugin-image-2.0.1.tgz"},"maintainers":[{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":""}],"_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-image_2.0.1_1578408516654_0.8882806734919335"},"_hasShrinkwrap":false,"publish_time":1578408516785,"_cnpm_publish_time":1578408516785},"2.0.0":{"name":"@rollup/plugin-image","version":"2.0.0","publishConfig":{"access":"public"},"description":"Import JPG, PNG, GIF, SVG, and WebP files","license":"MIT","repository":{"type":"git","url":"git+https://github.com/rollup/plugins.git"},"author":{"name":"Rich Harris"},"homepage":"https://github.com/rollup/plugins/packages/image/#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"main":"dist/index.js","engines":{"node":">= 8.0.0"},"scripts":{"build":"rollup -c","ci:coverage":"nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov","ci:lint":"pnpm run build && pnpm run lint && pnpm run security","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","ci:test":"pnpm run test -- --verbose","lint":"pnpm run lint:js && pnpm run lint:docs && pnpm run lint:package","lint:docs":"prettier --single-quote --write *.md","lint:js":"eslint --fix --cache src test","lint:package":"prettier --write package.json --plugin=prettier-plugin-package","prebuild":"del-cli dist","prepare":"pnpm run build","prepublishOnly":"pnpm run lint","pretest":"pnpm run build","security":"echo 'pnpm needs `npm audit` support'","test":"ava"},"keywords":["rollup","plugin","images","modules"],"peerDependencies":{"rollup":"^1.20.0"},"dependencies":{"rollup-pluginutils":"^2.8.2"},"devDependencies":{"rollup":"^1.20.0","rollup-plugin-buble":"^0.10.0"},"ava":{"files":["!**/fixtures/**","!**/helpers/**","!**/recipes/**","!**/types.ts"]},"jsnext:main":"dist/index.es.js","module":"dist/index.es.js","_id":"@rollup/plugin-image@2.0.0","_nodeVersion":"12.3.1","_npmVersion":"6.11.2","dist":{"shasum":"b84be641ff8dacc069cb264c42c1b8dcd445b54e","size":4367,"noattachment":false,"key":"/@rollup/plugin-image/-/@rollup/plugin-image-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rollup/plugin-image/download/@rollup/plugin-image-2.0.0.tgz"},"maintainers":[{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":""}],"_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-image_2.0.0_1574284973825_0.513134528062613"},"_hasShrinkwrap":false,"publish_time":1574284973980,"_cnpm_publish_time":1574284973980}},"readme":"[npm]: https://img.shields.io/npm/v/@rollup/plugin-image\n[npm-url]: https://www.npmjs.com/package/@rollup/plugin-image\n[size]: https://packagephobia.now.sh/badge?p=@rollup/plugin-image\n[size-url]: https://packagephobia.now.sh/result?p=@rollup/plugin-image\n\n[![npm][npm]][npm-url]\n[![size][size]][size-url]\n[![libera manifesto](https://img.shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com)\n\n# @rollup/plugin-image\n\n???? A Rollup plugin which imports JPG, PNG, GIF, SVG, and WebP files.\n\nImages are encoded using base64, which means they will be 33% larger than the size on disk. You should therefore only use this for small images where the convenience of having them available on startup (e.g. rendering immediately to a canvas without co-ordinating asynchronous loading of several images) outweighs the cost.\n\n## Requirements\n\nThis plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+.\n\n## Install\n\nUsing npm:\n\n```console\nnpm install @rollup/plugin-image --save-dev\n```\n\n## Usage\n\nAssuming a `src/index.js` exists and contains code like the following:\n\n```js\nimport logo from './rollup.png';\n\nconsole.log(logo);\n```\n\nCreate a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/en/#configuration-files) and import the plugin:\n\n```js\nimport image from '@rollup/plugin-image';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'output',\n    format: 'cjs'\n  },\n  plugins: [image()]\n};\n```\n\nThen call `rollup` either via the [CLI](https://www.rollupjs.org/guide/en/#command-line-reference) or the [API](https://www.rollupjs.org/guide/en/#javascript-api).\n\nOnce the bundle is executed, the `console.log` will display the Base64 encoded representation of the image.\n\n## Options\n\n### `dom`\n\nType: `Boolean`<br>\nDefault: `false`\n\nIf `true`, instructs the plugin to generate an ES Module which exports a DOM `Image` which can be used with a browser's DOM. Otherwise, the plugin generates an ES Module which exports a `default const` containing the Base64 representation of the image.\n\nUsing this option set to `true`, the export can be used as such:\n\n```js\nimport logo from './rollup.png';\ndocument.body.appendChild(logo);\n```\n\n### `exclude`\n\nType: `String` | `Array[...String]`<br>\nDefault: `null`\n\nA [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, which specifies the files in the build the plugin should _ignore_. By default no files are ignored.\n\n### `include`\n\nType: `String` | `Array[...String]`<br>\nDefault: `null`\n\nA [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.\n\n## Meta\n\n[CONTRIBUTING](/.github/CONTRIBUTING.md)\n\n[LICENSE (MIT)](/LICENSE)\n","_attachments":{},"homepage":"https://github.com/rollup/plugins/tree/master/packages/image/#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"license":"MIT"}