8000 rollup-plugins/packages/image at master · tada5hi/rollup-plugins · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"packages/image","repo":{"id":550974988,"defaultBranch":"master","name":"rollup-plugins","ownerLogin":"tada5hi","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2022-10-13T16:21:50.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/13162758?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1729161272.0","canEdit":false,"refType":"branch","currentOid":"0f452340894517cfad63757eb494207c6804da3e"},"tree":{"items":[{"name":"src","path":"packages/image/src","contentType":"directory"},{"name":"test","path":"packages/image/test","contentType":"directory"},{"name":"types","path":"packages/image/types","contentType":"directory"},{"name":"CHANGELOG.md","path":"packages/image/CHANGELOG.md","contentType":"file"},{"name":"README.md","path":"packages/image/README.md","contentType":"file"},{"name":"package.json","path":"packages/image/package.json","contentType":"file"},{"name":"rollup.config.mjs","path":"packages/image/rollup.config.mjs","contentType":"file"},{"name":"tsconfig.json","path":"packages/image/tsconfig.json","contentType":"symlink_file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cp dir=\"auto\"\u003e\u003ca href=\"https://www.npmjs.com/package/@rollup/plugin-image\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/0a548d3c1b201b754d5025de90a0143a31a5431746d8e26f5179007b5012870c/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f40726f6c6c75702f706c7567696e2d696d616765\" alt=\"npm\" data-canonical-src=\"https://img.shields.io/npm/v/@rollup/plugin-image\" style=\"max-width: 100%; height: auto;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagephobia.now.sh/result?p=@rollup/plugin-image\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/db81e25a3dad4562da611e3606e6cf00e97ce9aef71f9e636b21fb7e0cca0145/68747470733a2f2f7061636b61676570686f6269612e6e6f772e73682f62616467653f703d40726f6c6c75702f706c7567696e2d696d616765\" alt=\"size\" data-canonical-src=\"https://packagephobia.now.sh/badge?p=@rollup/plugin-image\" style=\"max-width: 100%; height: auto;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://liberamanifesto.com\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/08fba251e5f3978248d098e9212cd8cbeac1974d7d9e0275701d097009b358fa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c69626572612d6d616e69666573746f2d6c69676874677265792e737667\" alt=\"libera manifesto\" data-canonical-src=\"https://img.shields.io/badge/libera-manifesto-lightgrey.svg\" style=\"max-width: 100%; height: auto;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003e@rollup/plugin-image\u003c/h1\u003e\u003ca id=\"user-content-rollupplugin-image\" class=\"anchor\" aria-label=\"Permalink: @rollup/plugin-image\" href=\"#rollupplugin-image\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e🍣 A Rollup plugin which imports JPG, PNG, GIF, SVG, and WebP files.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eImages 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.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRequirements\u003c/h2\u003e\u003ca id=\"user-content-requirements\" class=\"anchor\" aria-label=\"Permalink: Requirements\" href=\"#requirements\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThis plugin requires an \u003ca href=\"https://github.com/nodejs/Release\"\u003eLTS\u003c/a\u003e Node version (v14.0.0+) and Rollup v1.20.0+.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInstall\u003c/h2\u003e\u003ca id=\"user-content-install\" class=\"anchor\" aria-label=\"Permalink: Install\" href=\"#install\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eUsing npm:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-text-shell-session notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"npm install @rollup/plugin-image --save-dev\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c1\"\u003enpm install @rollup/plugin-image --save-dev\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eUsage\u003c/h2\u003e\u003ca id=\"user-content-usage\" class=\"anchor\" aria-label=\"Permalink: Usage\" href=\"#usage\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eAssuming a \u003ccode\u003esrc/index.js\u003c/code\u003e exists and contains code like the following:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import logo from './rollup.png';\n\nconsole.log(logo);\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003elogo\u003c/span\u003e \u003cspan class=\"pl-k\"\u003efrom\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'./rollup.png'\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e;\u003c/span\u003e\n\n\u003cspan class=\"pl-smi\"\u003econsole\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003elog\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003elogo\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCreate a \u003ccode\u003erollup.config.js\u003c/code\u003e \u003ca href=\"https://www.rollupjs.org/guide/en/#configuration-files\" rel=\"nofollow\"\u003econfiguration file\u003c/a\u003e and import the plugin:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import 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};\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eimage\u003c/span\u003e \u003cspan class=\"pl-k\"\u003efrom\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'@rollup/plugin-image'\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e;\u003c/span\u003e\n\n\u003cspan class=\"pl-k\"\u003eexport\u003c/span\u003e \u003cspan class=\"pl-k\"\u003edefault\u003c/span\u003e \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n \u003cspan class=\"pl-c1\"\u003einput\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e'src/index.js'\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-c1\"\u003eoutput\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n \u003cspan class=\"pl-c1\"\u003edir\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e'output'\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-c1\"\u003eformat\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e'cjs'\u003c/span\u003e\n \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n \u003cspan class=\"pl-c1\"\u003eplugins\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\u003cspan class=\"pl-en\"\u003eimage\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\n\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThen call \u003ccode\u003erollup\u003c/code\u003e either via the \u003ca href=\"https://www.rollupjs.org/guide/en/#command-line-reference\" rel=\"nofollow\"\u003eCLI\u003c/a\u003e or the \u003ca href=\"https://www.rollupjs.org/guide/en/#javascript-api\" rel=\"nofollow\"\u003eAPI\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eOnce the bundle is executed, the \u003ccode\u003econsole.log\u003c/code\u003e will display the Base64 encoded representation of the image.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eOptions\u003c/h2\u003e\u003ca id=\"user-content-options\" class=\"anchor\" aria-label=\"Permalink: Options\" href=\"#options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003e\u003ccode\u003edom\u003c/code\u003e\u003c/h3\u003e\u003ca id=\"user-content-dom\" class=\"anchor\" aria-label=\"Permalink: dom\" href=\"#dom\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eType: \u003ccode\u003eBoolean\u003c/code\u003e\u003cbr\u003e\nDefault: \u003ccode\u003efalse\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf \u003ccode\u003etrue\u003c/code\u003e, instructs the plugin to generate an ES Module which exports a DOM \u003ccode\u003eImage\u003c/code\u003e which can be used with a browser's DOM. Otherwise, the plugin generates an ES Module which exports a \u003ccode\u003edefault const\u003c/code\u003e containing the Base64 representation of the image.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eUsing this option set to \u003ccode\u003etrue\u003c/code\u003e, the export can be used as such:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import logo from './rollup.png';\ndocument.body.appendChild(logo);\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003elogo\u003c/span\u003e \u003cspan class=\"pl-k\"\u003efrom\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'./rollup.png'\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e;\u003c/span\u003e\n\u003cspan class=\"pl-smi\"\u003edocument\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003ebody\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e.\u003c/span\u003e\u003cspan class=\"pl-en\"\u003eappendChild\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e(\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003elogo\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e)\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003e\u003ccode\u003eexclude\u003c/code\u003e\u003c/h3\u003e\u003ca id=\"user-content-exclude\" class=\"anchor\" aria-label=\"Permalink: exclude\" href=\"#exclude\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eType: \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003eArray[...String]\u003c/code\u003e\u003cbr\u003e\nDefault: \u003ccode\u003enull\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eA \u003ca href=\"https://github.com/micromatch/picomatch\"\u003epicomatch pattern\u003c/a\u003e, or array of patterns, which specifies the files in the build the plugin should \u003cem\u003eignore\u003c/em\u003e. By default no files are ignored.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003e\u003ccode\u003einclude\u003c/code\u003e\u003c/h3\u003e\u003ca id=\"user-content-include\" class=\"anchor\" aria-label=\"Permalink: include\" href=\"#include\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eType: \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003eArray[...String]\u003c/code\u003e\u003cbr\u003e\nDefault: \u003ccode\u003enull\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eA \u003ca href=\"https://github.com/micromatch/picomatch\"\u003epicomatch pattern\u003c/a\u003e, or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eMeta\u003c/h2\u003e\u003ca id=\"user-content-meta\" class=\"anchor\" aria-label=\"Permalink: Meta\" href=\"#meta\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"/tada5hi/rollup-plugins/blob/master/.github/CONTRIBUTING.md\"\u003eCONTRIBUTING\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"/tada5hi/rollup-plugins/blob/master/LICENSE\"\u003eLICENSE (MIT)\u003c/a\u003e\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"@rollup/plugin-image","anchor":"rollupplugin-image","htmlText":"@rollup/plugin-image"},{"level":2,"text":"Requirements","anchor":"requirements","htmlText":"Requirements"},{"level":2,"text":"Install","anchor":"install","htmlText":"Install"},{"level":2,"text":"Usage","anchor":"usage","htmlText":"Usage"},{"level":2,"text":"Options","anchor":"options","htmlText":"Options"},{"level":3,"text":"dom","anchor":"dom","htmlText":"dom"},{"level":3,"text":"exclude","anchor":"exclude","htmlText":"exclude"},{"level":3,"text":"include","anchor":"include","htmlText":"include"},{"level":2,"text":"Meta","anchor":"meta","htmlText":"Meta"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Ftada5hi%2Frollup-plugins%2Ftree%2Fmaster%2Fpackages%2Fimage"}},"totalCount":8,"showBranchInfobar":true},"fileTree":{"packages":{"items":[{"name":"alias","path":"packages/alias","contentType":"directory"},{"name":"auto-install","path":"packages/auto-install","contentType":"directory"},{"name":"babel","path":"packages/babel","contentType":"directory"},{"name":"beep","path":"packages/beep","contentType":"directory"},{"name":"buble","path":"packages/buble","contentType":"directory"},{"name":"commonjs","path":"packages/commonjs","contentType":"directory"},{"name":"data-uri","path":"packages/data-uri","contentType":"directory"},{"name":"dsv","path":"packages/dsv","contentType":"directory"},{"name":"dynamic-import-vars","path":"packages/dynamic-import-vars","contentType":"directory"},{"name":"eslint","path":"packages/eslint","contentType":"directory"},{"name":"esm-shim","path":"packages/esm-shim","contentType":"directory"},{"name":"graphql","path":"packages/graphql","contentType":"directory"},{"name":"html","path":"packages/html","contentType":"directory"},{"name":"image","path":"packages/image","contentType":"directory"},{"name":"inject","path":"packages/inject","contentType":"directory"},{"name":"json","path":"packages/json","contentType":"directory"},{"name":"legacy","path":"packages/legacy","contentType":"directory"},{"name":"multi-entry","path":"packages/multi-entry","contentType":"directory"},{"name":"node-resolve","path":"packages/node-resolve","contentType":"directory"},{"name":"pluginutils","path":"packages/pluginutils","contentType":"directory"},{"name":"replace","path":"packages/replace","contentType":"directory"},{"name":"run","path":"packages/run","contentType":"directory"},{"name":"strip","path":"packages/strip","contentType":"directory"},{"name":"sucrase","path":"packages/sucrase","contentType":"directory"},{"name":"swc","path":"packages/swc","contentType":"directory"},{"name":"terser","path":"packages/terser","contentType":"directory"},{"name":"typescript","path":"packages/typescript","contentType":"directory"},{"name":"url","path":"packages/url","contentType":"directory"},{"name":"virtual","path":"packages/virtual","contentType":"directory"},{"name":"wasm","path":"packages/wasm","contentType":"directory"},{"name":"yaml","path":"packages/yaml","contentType":"directory"},{"name":".eslintignore","path":"packages/.eslintignore","contentType":"file"},{"name":".eslintrc","path":"packages/.eslintrc","contentType":"file"}],"totalCount":33},"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".husky","path":".husky","contentType":"directory"},{"name":".vscode","path":".vscode","contentType":"directory"},{"name":"packages","path":"packages","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"shared","path":"shared","contentType":"directory"},{"name":"util","path":"util","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".eslintignore","path":".eslintignore","contentType":"file"},{"name":".eslintrc.js","path":".eslintrc.js","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".npmrc","path":".npmrc","contentType":"file"},{"name":".nvmrc","path":".nvmrc","contentType":"file"},{"name":".prettierignore","path":".prettierignore","contentType":"file"},{"name":".prettierrc.js","path":".prettierrc.js","contentType":"file"},{"name":"CODEOWNERS","path":"CODEOWNERS","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"codecov.yml","path":"codecov.yml","contentType":"file"},{"name":"package.json","path":"package.json","contentType":"file"},{"name":"pnpm-lock.yaml","path":"pnpm-lock.yaml","contentType":"file"},{"name":"pnpm-workspace.yaml","path":"pnpm-workspace.yaml","contentType":"file"},{"name":"tsconfig.base.json","path":"tsconfig.base.json","contentType":"file"},{"name":"tsconfig.eslint.json","path":"tsconfig.eslint.json","contentType":"file"}],"totalCount":24}},"fileTreeProcessingTime":20.26733,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/tada5hi/rollup-plugins/branches":{"post":"atdN3jGfQoGqR0M45s7D5eXAT3FyzBmtzoRN4vKa9dxV8NnIgH6bK31FotewY4BaKqx6JhU9CamtGdWyCic1NQ"},"/tada5hi/rollup-plugins/branches/fetch_and_merge/master":{"post":"3AXSxzQ4UkgbHPHDh3XN7oDH19GrJLPWCajqbPQZnFyLZkPnzyuVsWTX4nArF3sTjR9mxdg7olZif1V9yl4vWQ"},"/tada5hi/rollup-plugins/branches/fetch_and_merge/master?discard_changes=true":{"post":"9qob3DG7w7VfWoV7C3uuK_7qsRUxNeoBwMwvklbZUpihyYr8yqgETCCRlsinGRjW8zIAAUIq-4GrG5CDaJ7hnQ"}}},"title":"rollup-plugins/packages/image at master · tada5hi/rollup-plugins","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-b84e9496fc59.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0