{"_id":"rspack-plugin-svg-sprite","_rev":"13-976ba5f7fe560d494aec3896f0eff5b2","name":"rspack-plugin-svg-sprite","dist-tags":{"latest":"1.7.0"},"versions":{"1.1.1":{"name":"rspack-plugin-svg-sprite","version":"1.1.1","keywords":["rspack","rspack-plugin","rspack-loader","svg","svg-sprite","svg-sprite-loader","svg-icon","sprite","sprite-sheet","icon","loader","plugin","webpack","webpack5","extract","inline","symbol"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.1.1","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"8693eec11570d2260a99ecbe258e94942e56c993","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.1.1.tgz","fileCount":23,"integrity":"sha512-THuN+29HljVuT6Yukz2xOCxh0WfUqfQPJhtb9K7sWUBEbzp/hB3KJqgMJ+YcNQgkEG5dQ3mE9oCrx09sNAtfGg==","signatures":[{"sig":"MEUCIQCXPsy1i9P0nLtMA4rGViMWL/UoS9+AO5Pk+EsiiEPILAIgQNevYB1XQETMw3N2XFXi7jCchgnS5YGmZJk6YQVpKwQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44413},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./loader":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"},"./plugin":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"},"./runtime/symbol":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"},"./runtime/browser-sprite":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}},"gitHead":"85f26680b94363eadcb45d1e8031661427761238","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github"],"branches":["main"]},"scripts":{"lint":"eslint src/","test":"tsc && rstest run","build":"tsc","format":"prettier --write .","prepare":"husky","test:ci":"tsc && rstest run --coverage","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit","dev:rspack":"pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"prettier --check .","prepublishOnly":"pnpm build"},"_npmUser":{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"},"repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"10.9.4","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"husky":"^9.1.7","eslint":"^10.0.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","lint-staged":"^16.2.7","@rspack/core":"^1.7.6","@rstest/core":"^0.8.5","semantic-release":"^25.0.3","typescript-eslint":"^8.56.0","eslint-config-prettier":"^10.1.8","@rstest/coverage-istanbul":"^0.2.1"},"peerDependencies":{"@rspack/core":">=0.5.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.1.1_1771738623182_0.028418631046456477","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"rspack-plugin-svg-sprite","version":"1.2.0","keywords":["rspack","rspack-plugin","rspack-loader","svg","svg-sprite","svg-sprite-loader","svg-icon","sprite","sprite-sheet","icon","loader","plugin","webpack","webpack5","extract","inline","symbol"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.2.0","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"06649e525fb3674e8df2cf31aa2103e96805d324","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.2.0.tgz","fileCount":23,"integrity":"sha512-ByBH/gBe5B6FBBfNVUBq9+1b+FzbhVbRrPN1LsfonA0OfTytll8IEk6KrsWN8MBua09Ze6EjkMJSo7ws1Kd1Gw==","signatures":[{"sig":"MEQCIFJ2dt78gS5Gq/8djeqjwDhKhcYIV6TqLEBQn3MV176NAiBP1B2bHNUglMmFrHqi3cn732ELhXLgsImCHE7xnHG+Eg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44191},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./loader":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"},"./plugin":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"},"./runtime/symbol":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"},"./runtime/browser-sprite":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}},"gitHead":"1cd36088d3f52a65f2c77fd49d4202f0b9e40a84","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github"],"branches":["main"]},"scripts":{"lint":"eslint src/","test":"tsc && rstest run","build":"tsc","format":"prettier --write .","prepare":"husky","test:ci":"tsc && rstest run --coverage","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit","dev:rspack":"pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"prettier --check .","prepublishOnly":"pnpm build"},"_npmUser":{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"},"repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"10.9.4","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"husky":"^9.1.7","eslint":"^10.0.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","lint-staged":"^16.2.7","@rspack/core":"^1.7.6","@rstest/core":"^0.8.5","semantic-release":"^25.0.3","typescript-eslint":"^8.56.0","eslint-config-prettier":"^10.1.8","@rstest/coverage-istanbul":"^0.2.1"},"peerDependencies":{"@rspack/core":">=0.5.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.2.0_1771742169164_0.5425556093373023","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"rspack-plugin-svg-sprite","version":"1.3.0","keywords":["rspack","rspack-plugin","rspack-loader","svg","svg-sprite","svg-sprite-loader","svg-icon","sprite","sprite-sheet","icon","loader","plugin","webpack","webpack5","extract","inline","symbol"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.3.0","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"fe91981f0a9915a5087dde2dacf2e6d672dc169a","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.3.0.tgz","fileCount":23,"integrity":"sha512-4WVQJ1gvx9b2hbDx3SEWNjXhAXJADepVVO4eLDjE4l8j5MdUXOBWoYBpJx1fIDQGL7b0Tt3iZ5VZqPN9yIVetA==","signatures":[{"sig":"MEYCIQCRAUkmWiR/AeHpv9FnuGuOY15U/+sDOjiua6gjadrIqgIhAK2Cm+4Cri09zhdLPv2TKnHLqRkmj49nuPnRDE0TvGh+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48718},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./loader":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"},"./plugin":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"},"./runtime/symbol":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"},"./runtime/browser-sprite":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}},"gitHead":"3f9dd40e1bf7d4684a4fa1b9e2d071c7bdb3ea73","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github"],"branches":["main"]},"scripts":{"lint":"eslint src/","test":"tsc && rstest run","build":"tsc","format":"prettier --write .","prepare":"husky","test:ci":"tsc && rstest run --coverage","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit","dev:rspack":"pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"prettier --check .","prepublishOnly":"pnpm build"},"_npmUser":{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"},"repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"10.9.4","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"husky":"^9.1.7","eslint":"^10.0.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","lint-staged":"^16.2.7","@rspack/core":"^1.7.6","@rstest/core":"^0.8.5","semantic-release":"^25.0.3","typescript-eslint":"^8.56.0","eslint-config-prettier":"^10.1.8","@rstest/coverage-istanbul":"^0.2.1"},"peerDependencies":{"@rspack/core":">=0.5.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.3.0_1771745153835_0.5967198396110511","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"rspack-plugin-svg-sprite","version":"1.4.0","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.4.0","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"fc3d76d28e308d9f4c6f33f112168faab0622a5d","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.4.0.tgz","fileCount":28,"integrity":"sha512-TLA/I4nFyR3GYlGhyCc1SH4gJW6OTNfMn28NmscPGFYFmEhqjz3i/CGr68sffAPHGHbPDD8qMklykeYW1O15nw==","signatures":[{"sig":"MEYCIQCrK1T9uPKwf9x0PTGDTveCpQ2aUncmkdYwoFffHp96iQIhAN23iqkjvrLjk4vkuSeg5ZCWmlRn2pWQ7bAm7onz6acE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":60105},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./client.d.ts"},"./loader":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"},"./plugin":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"},"./rsbuild":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"},"./runtime/symbol":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"},"./runtime/browser-sprite":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}},"gitHead":"922e56cb268c9a55efffda3be7bcc260fb56c527","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github"],"branches":["main"]},"scripts":{"lint":"eslint src/","test":"tsc && rstest run","build":"tsc","format":"prettier --write .","prepare":"husky","test:ci":"tsc && rstest run --coverage","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit","dev:rspack":"pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"prettier --check .","prepublishOnly":"pnpm build"},"_npmUser":{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"},"repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"10.9.4","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"husky":"^9.1.7","eslint":"^10.0.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","lint-staged":"^16.2.7","@rspack/core":"^1.7.6","@rstest/core":"^0.8.5","semantic-release":"^25.0.3","typescript-eslint":"^8.56.0","eslint-config-prettier":"^10.1.8","@rstest/coverage-istanbul":"^0.2.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.4.0_1772311930376_0.04738533620158014","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"rspack-plugin-svg-sprite","version":"1.3.1","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.3.1","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"35e127a4745a6c789f9c5bfa06622ec51949305f","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.3.1.tgz","fileCount":28,"integrity":"sha512-HfQWO8fU/MFdC0V3RP8/GYsVI1zt583hB/m0c26qipaMXMzDa64LqS02P2ei84MEwKHBH1LvOOSpEZ0CQ/gi1A==","signatures":[{"sig":"MEUCIEJuQBVoD/rklEKTRfYsE7U8Mbu5szHCWBDzOaFz6+2vAiEArSHGA1gRY57xlGlE/GrMhO4odoEFnGQUB8ETnqT7UTs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66450},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./client.d.ts"},"./loader":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"},"./plugin":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"},"./rsbuild":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"},"./runtime/symbol":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"},"./runtime/browser-sprite":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}},"gitHead":"d9c8969ab8c1c3b692c46a8ac03b5b3ddd20a91c","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github"],"branches":["main"]},"scripts":{"lint":"eslint src/","test":"tsc && rstest run","build":"tsc","format":"prettier --write .","prepare":"husky","test:ci":"tsc && rstest run --coverage","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit","dev:rspack":"pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"prettier --check .","prepublishOnly":"pnpm build"},"_npmUser":{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"},"repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"10.9.4","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"husky":"^9.1.7","eslint":"^10.0.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","lint-staged":"^16.2.7","@rspack/core":"^1.7.6","@rstest/core":"^0.8.5","semantic-release":"^25.0.3","typescript-eslint":"^8.56.0","eslint-config-prettier":"^10.1.8","@rstest/coverage-istanbul":"^0.2.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.3.1_1772439783569_0.3474345701929298","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"rspack-plugin-svg-sprite","version":"1.5.0","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.5.0","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"ac929b9746bbe48e4d95e66d1b2b57e47cf7d667","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.5.0.tgz","fileCount":28,"integrity":"sha512-J3o5Dp3lWgvwEhxMJJJ2/DK9pi+dah1/aMH84L3cRPhaLexqNicxz6Z1bHdsiKwOFlIZLh07PTLF8JC6cRhIsw==","signatures":[{"sig":"MEYCIQDwiQK6r4JLispR3lUBa6cOhWHkhGzEcezNaw8GKuWjUAIhAPPpWyahZKwnRSYFm3AXpd48uouBaqtgIxVDDB6yfEEz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66450},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./client.d.ts"},"./loader":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"},"./plugin":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"},"./rsbuild":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"},"./runtime/symbol":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"},"./runtime/browser-sprite":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}},"gitHead":"3046db902a47d272d62b732b33b6c3831a010c34","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github"],"branches":["main"]},"scripts":{"lint":"eslint src/","test":"tsc && rstest run","build":"tsc","format":"prettier --write .","prepare":"husky","test:ci":"tsc && rstest run --coverage","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit","dev:rspack":"pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"prettier --check .","prepublishOnly":"pnpm build"},"_npmUser":{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"},"repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"10.9.4","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"husky":"^9.1.7","eslint":"^10.0.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","lint-staged":"^16.2.7","@rspack/core":"^1.7.6","@rstest/core":"^0.8.5","semantic-release":"^25.0.3","typescript-eslint":"^8.56.0","eslint-config-prettier":"^10.1.8","@rstest/coverage-istanbul":"^0.2.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.5.0_1772440120028_0.07003165730883998","host":"s3://npm-registry-packages-npm-production"}},"1.5.1":{"name":"rspack-plugin-svg-sprite","version":"1.5.1","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.5.1","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"257521ae23e0ad3fb74b51719e7689a056b6dc6c","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.5.1.tgz","fileCount":28,"integrity":"sha512-px0Mesmza28vgSWN95y3UA6w0fHzEthIggHyRI5kSeaeWGNHqC2/Jkd28LCGhOXxaKqTFo8RBI1/cm5zvKxkNA==","signatures":[{"sig":"MEQCIFMWHG9MuofVHsWsuG9fFj8XBsr6uMrFuCQleCwrMGkiAiAlolrHYpiBig1UyQClu7mR/D73oIRNbFpHdM3KSC1KRQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67137},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./client.d.ts"},"./loader":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"},"./plugin":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"},"./rsbuild":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"},"./runtime/symbol":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"},"./runtime/browser-sprite":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}},"gitHead":"b957d1ed9a298930fc19668d7bcb7095967cdaf7","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github"],"branches":["main"]},"scripts":{"lint":"eslint src/","test":"tsc && rstest run","build":"tsc","format":"prettier --write .","prepare":"husky","test:ci":"tsc && rstest run --coverage","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit","dev:rspack":"pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"prettier --check .","prepublishOnly":"pnpm build"},"_npmUser":{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"},"repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"10.9.4","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"husky":"^9.1.7","eslint":"^10.0.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","lint-staged":"^16.2.7","@rspack/core":"^1.7.6","@rstest/core":"^0.8.5","semantic-release":"^25.0.3","typescript-eslint":"^8.56.0","eslint-config-prettier":"^10.1.8","@rstest/coverage-istanbul":"^0.2.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.5.1_1772494663772_0.6528119695554961","host":"s3://npm-registry-packages-npm-production"}},"1.5.2":{"name":"rspack-plugin-svg-sprite","version":"1.5.2","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.5.2","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"131323ee32d000a1ae5dc68165738f3c790ee5ec","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.5.2.tgz","fileCount":28,"integrity":"sha512-pLmOVDY6crkQ1uJksQX0OtaYIHgUx66un5wnfY1Gz/enBi0iReBtK/N3WtFfokaykXe7DSuFArXcqD7PTlTD0Q==","signatures":[{"sig":"MEUCIFiuu7B5hPOFHDO5K4mSHjPJ9e5iR2hAzux6It/iydTcAiEAwUOoNiYJXRxA9bKlAwivvQ6Srw85OiVEKwZFhkYLt1I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQC1x7U9xzOh8yhLjuDJt4OzL9iQq9EjQ+zL6zqMFNGB7AIhANlner325q2KZz1blkQdSHfZZrZFpvnkci1Hep3a4+9W","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":67700},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./client.d.ts"},"./loader":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"},"./plugin":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"},"./rsbuild":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"},"./runtime/symbol":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"},"./runtime/browser-sprite":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}},"gitHead":"abdc6660e08258f8a5e532002a45fcdc3d4d8250","release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github"],"branches":["main"]},"scripts":{"lint":"eslint src/","test":"tsc && rstest run","build":"tsc","format":"prettier --write .","prepare":"husky","test:ci":"tsc && rstest run --coverage","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit","dev:rspack":"pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"prettier --check .","prepublishOnly":"pnpm build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c9ba333c-0a0a-4c22-a26e-08a4bc6e146d"}},"repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"11.20.0","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"26.13.1","_hasShrinkwrap":false,"packageManager":"pnpm@12.18.0","devDependencies":{"husky":"^9.1.7","eslint":"^10.0.1","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","lint-staged":"^16.2.7","@rspack/core":"^1.7.6","@rstest/core":"^0.8.5","semantic-release":"^25.0.3","typescript-eslint":"^8.56.0","eslint-config-prettier":"^10.1.8","@rstest/coverage-istanbul":"^0.2.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.5.2_1794704394788_0.11652491783027374","host":"s3://npm-registry-packages-npm-production"}},"1.5.3":{"name":"rspack-plugin-svg-sprite","version":"1.5.3","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.5.3","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"e1cde402cd29d324af9dfe95a792e9a524e04839","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.5.3.tgz","fileCount":29,"integrity":"sha512-dqdIxc5DxYCXWL5boV1Pt7U0FfKDpMZsOAw2CPCEVhoKDPvac02NajZaBlq6pWfcQS70didQalY9vZV9QmKRbQ==","signatures":[{"sig":"MEQCIGfTJ5YI7M2/xG3Wd82CT78d6Rn4oRpCNKYyE96q+ldqAiBSLpVQ4WbQTsJ1Bt8W4R5GTdcGz3ncYjv3LJ1WxnO56A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCCc4sLKYfk+EFTl5IFI6rzupnyYV7fDmdF9iU90amPgAIgdZAiu7QvjlSutQ6n+57DWGKwJmbhVZT3CRQlCd//4YA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rspack-plugin-svg-sprite@1.5.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":88569},"main":"dist/index.js","_from":"file:out/rspack-plugin-svg-sprite-1.5.3.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./client.d.ts"},"./loader":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"},"./plugin":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"},"./rsbuild":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"},"./runtime/symbol":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"},"./runtime/browser-sprite":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}},"scripts":{"lint":"eslint src/","test":"tsc && rstest run","build":"tsc","format":"prettier --write .","test:ci":"tsc && rstest run --coverage","lint:fix":"eslint src/ --fix","changeset":"changeset","typecheck":"tsc --noEmit","dev:rspack":"pnpm build && pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"prettier --check .","version-packages":"changeset version"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"58352b33-eb6e-4c31-95cc-e98378f00741"}},"_resolved":"/home/runner/work/rspack-plugin-svg-sprite/rspack-plugin-svg-sprite/out/rspack-plugin-svg-sprite-1.5.3.tgz","_integrity":"sha512-dqdIxc5DxYCXWL5boV1Pt7U0FfKDpMZsOAw2CPCEVhoKDPvac02NajZaBlq6pWfcQS70didQalY9vZV9QmKRbQ==","repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"11.20.0","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"26.13.1","_hasShrinkwrap":false,"devDependencies":{"svgo":"4.1.0","husky":"^9.1.7","eslint":"^10.0.1","webpack":"5.105.2","prettier":"^3.8.1","rspack-v2":"npm:@rspack/core@2.3.2","@eslint/js":"^10.0.1","rsbuild-v2":"npm:@rsbuild/core@2.3.2","typescript":"^5.9.3","htmlparser2":"9.1.0","lint-staged":"^16.2.7","svgo-loader":"5.0.0","@rspack/core":"^1.7.6","@rstest/core":"^0.8.5","@rsbuild/core":"1.7.3","@changesets/cli":"3.0.3","typescript-eslint":"^8.56.0","eslint-config-prettier":"^10.1.8","@rstest/coverage-istanbul":"^0.2.1","@changesets/changelog-github":"1.0.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.5.3_1794722049690_0.31992821456699716","host":"s3://npm-registry-packages-npm-production"}},"1.6.0":{"name":"rspack-plugin-svg-sprite","version":"1.6.0","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.6.0","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"8718885642c2d8948ace9c25a444e1f69d83146d","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.6.0.tgz","fileCount":41,"integrity":"sha512-CNNCHX41WC9GbvHi2w6M6Ejt+hDkPhMiVJFasTpph2Mc7n4bC/tJHj7d0JYnfnkUTCs0RX/rNmOZk5Qfkn8RKQ==","signatures":[{"sig":"MEQCID+y9y4Bxqv7WD6Wj4SMJU62VmjExYRdSk+XEt9JtWx4AiAhv9F7qmPqoJtk/M/81NsiKp1u+49L4DfDU/xYh3K35Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQD/m+6cKGwX973ebq1sRn+J8ZWqcm9prrCYPZdNrMUuNgIgcultMFszzdz6OW8TzV9mkRlHyG1SyxRhdH+eRnis5SY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rspack-plugin-svg-sprite@1.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":131643},"main":"dist/index.js","type":"commonjs","_from":"file:out/rspack-plugin-svg-sprite-1.6.0.tgz","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./client":{"types":"./client.d.ts"},"./loader":{"import":{"types":"./dist/loader.d.mts","default":"./dist/loader.mjs"},"default":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"}},"./plugin":{"import":{"types":"./dist/plugin.d.mts","default":"./dist/plugin.mjs"},"default":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"}},"./rsbuild":{"import":{"types":"./dist/rsbuild.d.mts","default":"./dist/rsbuild.mjs"},"default":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"}},"./package.json":"./package.json","./runtime/symbol":{"import":{"types":"./dist/runtime/symbol.d.mts","default":"./dist/runtime/symbol.mjs"},"default":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"}},"./runtime/browser-sprite":{"import":{"types":"./dist/runtime/browser-sprite.d.mts","default":"./dist/runtime/browser-sprite.mjs"},"default":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}}},"scripts":{"knip":"pnpm build && knip","lint":"oxlint src/ scripts/","test":"tsc && rstest run","build":"tsc","format":"oxfmt .","test:ci":"tsc && rstest run --coverage","lint:fix":"oxlint src/ scripts/ --fix","test:e2e":"pnpm --filter rspack-plugin-svg-sprite-e2e test","changeset":"changeset","typecheck":"tsc --noEmit && tsc -p tsconfig.test.json","dev:rspack":"pnpm build && pnpm --filter svg-sprite-consumer-demo dev","dev:webpack":"pnpm --filter svg-sprite-webpack-demo dev","format:check":"oxfmt --check .","check:package":"node scripts/ci/package-check.mjs","version-packages":"changeset version"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"58352b33-eb6e-4c31-95cc-e98378f00741"}},"_resolved":"/home/runner/work/rspack-plugin-svg-sprite/rspack-plugin-svg-sprite/out/rspack-plugin-svg-sprite-1.6.0.tgz","_integrity":"sha512-CNNCHX41WC9GbvHi2w6M6Ejt+hDkPhMiVJFasTpph2Mc7n4bC/tJHj7d0JYnfnkUTCs0RX/rNmOZk5Qfkn8RKQ==","repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"_npmVersion":"11.20.0","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"26.13.1","typesVersions":{"*":{"client":["./client.d.ts"],"loader":["./dist/loader.d.ts"],"plugin":["./dist/plugin.d.ts"],"rsbuild":["./dist/rsbuild.d.ts"],"runtime/symbol":["./dist/runtime/symbol.d.ts"],"runtime/browser-sprite":["./dist/runtime/browser-sprite.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"knip":"6.45.1","svgo":"4.1.0","oxfmt":"0.78.0","oxlint":"1.93.0","webpack":"5.105.2","lefthook":"2.2.2","rspack-v2":"npm:@rspack/core@2.3.2","rsbuild-v2":"npm:@rsbuild/core@2.3.2","typescript":"7.0.2","htmlparser2":"9.1.0","svgo-loader":"5.0.0","@rspack/core":"^1.7.6","@rstest/core":"0.12.6","@rsbuild/core":"1.7.3","@changesets/cli":"3.0.3","@rstest/coverage-istanbul":"0.12.6","@changesets/changelog-github":"1.0.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.6.0_1794780620910_0.12253848694583624","host":"s3://npm-registry-packages-npm-production"}},"1.6.2":{"name":"rspack-plugin-svg-sprite","version":"1.6.2","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.6.2","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"1ea30eba9074d5737e8a6f64ce5c420089b7c555","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.6.2.tgz","fileCount":44,"integrity":"sha512-I/S5jKrLuUG+T9Hoq+ZdewNUNSEHWeMhZmm7ESriYOZ58bBmdZdSUk9SgBswd6+ep1AjgMJH7JvcoS0Z6t2mtA==","signatures":[{"sig":"MEQCIDj1KQNhEOY6+VnOkMh9/Acm//qouawnQAPSvbCWcqK+AiBCa4z4bYOeiXIAg8NqRuDt1y6EckRALckSG8MsqsxwhQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIEW63o/D2pY1S/Es+ff+uCaLnKKXPrgoyR1NkExtSGbbAiEA9Y9phfvPlj1vcq3B4i6JeELDgADk7nr3RDI9ix0/8oM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rspack-plugin-svg-sprite@1.6.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":156540},"main":"dist/index.js","type":"commonjs","_from":"file:out/rspack-plugin-svg-sprite-1.6.2.tgz","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./client":{"types":"./client.d.ts"},"./loader":{"import":{"types":"./dist/loader.d.mts","default":"./dist/loader.mjs"},"default":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"}},"./plugin":{"import":{"types":"./dist/plugin.d.mts","default":"./dist/plugin.mjs"},"default":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"}},"./rsbuild":{"import":{"types":"./dist/rsbuild.d.mts","default":"./dist/rsbuild.mjs"},"default":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"}},"./package.json":"./package.json","./runtime/symbol":{"import":{"types":"./dist/runtime/symbol.d.mts","default":"./dist/runtime/symbol.mjs"},"default":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"}},"./runtime/browser-sprite":{"import":{"types":"./dist/runtime/browser-sprite.d.mts","default":"./dist/runtime/browser-sprite.mjs"},"default":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}}},"scripts":{"knip":"bun run build && knip","lint":"oxlint src/ scripts/","test":"tsc && rstest run","build":"tsc","format":"oxfmt .","prepare":"node scripts/hooks/install.mjs","test:ci":"tsc && rstest run --coverage","lint:fix":"oxlint src/ scripts/ --fix","test:e2e":"bun run --filter rspack-plugin-svg-sprite-e2e test","changeset":"changeset","typecheck":"tsc --noEmit && tsc -p tsconfig.test.json","dev:rspack":"bun run build && bun run --filter svg-sprite-consumer-demo dev","dev:webpack":"bun run --filter svg-sprite-webpack-demo dev","format:check":"oxfmt --check .","check:package":"node scripts/ci/package-check.mjs","test:mutation":"bunx @stryker-mutator/core@10.1.1 run","prepublishOnly":"bun run build","version-packages":"changeset version"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"58352b33-eb6e-4c31-95cc-e98378f00741"}},"_resolved":"/home/runner/work/rspack-plugin-svg-sprite/rspack-plugin-svg-sprite/out/rspack-plugin-svg-sprite-1.6.2.tgz","_integrity":"sha512-I/S5jKrLuUG+T9Hoq+ZdewNUNSEHWeMhZmm7ESriYOZ58bBmdZdSUk9SgBswd6+ep1AjgMJH7JvcoS0Z6t2mtA==","repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"workspaces":[".","examples/*","e2e"],"_npmVersion":"11.20.0","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"26.13.1","typesVersions":{"*":{"client":["./client.d.ts"],"loader":["./dist/loader.d.ts"],"plugin":["./dist/plugin.d.ts"],"rsbuild":["./dist/rsbuild.d.ts"],"runtime/symbol":["./dist/runtime/symbol.d.ts"],"runtime/browser-sprite":["./dist/runtime/browser-sprite.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"bun@1.4.4","devDependencies":{"knip":"6.45.1","svgo":"4.1.0","oxfmt":"0.78.0","oxlint":"1.93.0","webpack":"5.105.2","lefthook":"2.2.2","rspack-v2":"npm:@rspack/core@2.3.2","fast-check":"4.10.2","rsbuild-v2":"npm:@rsbuild/core@2.3.2","typescript":"7.0.2","htmlparser2":"9.1.0","svgo-loader":"5.0.0","@rspack/core":"^1.7.6","@rstest/core":"0.12.6","@rsbuild/core":"1.7.3","@changesets/cli":"3.0.3","@rstest/coverage-istanbul":"0.12.6","@changesets/changelog-github":"1.0.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"trustedDependencies":[],"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.6.2_1794800239268_0.4912060793253742","host":"s3://npm-registry-packages-npm-production"}},"1.6.4":{"name":"rspack-plugin-svg-sprite","version":"1.6.4","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"author":{"name":"Yichen Zhu"},"license":"MIT","_id":"rspack-plugin-svg-sprite@1.6.4","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"a3777fb6ee0c2c4b261ce2847dadfd2e57de36bf","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.6.4.tgz","fileCount":47,"integrity":"sha512-/JTNgVhyt0Y+2d5z5Nzs5NA6+iJoOEZAhtzewQIwQYaBr3ql1SA/jL9EjqpboS/wCta7cbL0uFlUcpDTEgW5mg==","signatures":[{"sig":"MEQCICFgHCHD9CZLwtogFQ+Fu6wjKP25ZrtGxVUjL0Zzaaf+AiAnE90MBXqnyNcRJNbIeIe+HtNxbKxBr5pg+NJvZarnpg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIBiJ1h92X6dMjUrtEVa+vh/vdF66ZW9yQlaA9jl6Rt1dAiAjQCRvigCkAGuupaV3TtB7d/Of3mPi4LOsOeMlK18rSw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rspack-plugin-svg-sprite@1.6.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":170164},"main":"dist/index.js","type":"commonjs","_from":"file:out/rspack-plugin-svg-sprite-1.6.4.tgz","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./client":{"types":"./client.d.ts"},"./loader":{"import":{"types":"./dist/loader.d.mts","default":"./dist/loader.mjs"},"default":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"}},"./plugin":{"import":{"types":"./dist/plugin.d.mts","default":"./dist/plugin.mjs"},"default":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"}},"./rsbuild":{"import":{"types":"./dist/rsbuild.d.mts","default":"./dist/rsbuild.mjs"},"default":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"}},"./package.json":"./package.json","./runtime/symbol":{"import":{"types":"./dist/runtime/symbol.d.mts","default":"./dist/runtime/symbol.mjs"},"default":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"}},"./runtime/browser-sprite":{"import":{"types":"./dist/runtime/browser-sprite.d.mts","default":"./dist/runtime/browser-sprite.mjs"},"default":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}}},"scripts":{"knip":"bun run build && knip","lint":"oxlint src/ scripts/","test":"tsc && rstest run","bench":"bun run build && bun run --filter svg-sprite-bench bench","build":"tsc","format":"oxfmt .","prepare":"node scripts/hooks/install.mts","test:ci":"tsc && rstest run --coverage","lint:fix":"oxlint src/ scripts/ --fix","test:e2e":"bun run --filter rspack-plugin-svg-sprite-e2e test","changeset":"changeset","typecheck":"tsc --noEmit && tsc -p .config/tsconfig.test.json && tsc -p .config/tsconfig.scripts.json","dev:rspack":"bun run build && bun run --filter svg-sprite-consumer-demo dev","dev:webpack":"bun run --filter svg-sprite-webpack-demo dev","format:check":"oxfmt --check .","check:package":"node scripts/ci/package-check.mts","test:mutation":"bunx @stryker-mutator/core@10.1.1 run .config/stryker.config.mjs","prepublishOnly":"bun run build","version-packages":"changeset version"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"58352b33-eb6e-4c31-95cc-e98378f00741"}},"_resolved":"/home/runner/work/rspack-plugin-svg-sprite/rspack-plugin-svg-sprite/out/rspack-plugin-svg-sprite-1.6.4.tgz","_integrity":"sha512-/JTNgVhyt0Y+2d5z5Nzs5NA6+iJoOEZAhtzewQIwQYaBr3ql1SA/jL9EjqpboS/wCta7cbL0uFlUcpDTEgW5mg==","repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"workspaces":[".","examples/*","e2e","bench","website"],"_npmVersion":"11.20.0","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"_nodeVersion":"26.13.1","typesVersions":{"*":{"client":["./client.d.ts"],"loader":["./dist/loader.d.ts"],"plugin":["./dist/plugin.d.ts"],"rsbuild":["./dist/rsbuild.d.ts"],"runtime/symbol":["./dist/runtime/symbol.d.ts"],"runtime/browser-sprite":["./dist/runtime/browser-sprite.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"bun@1.4.4","devDependencies":{"knip":"6.45.1","svgo":"4.1.0","oxfmt":"0.78.0","oxlint":"1.93.0","webpack":"5.105.2","lefthook":"2.2.2","happy-dom":"21.0.4","rspack-v2":"npm:@rspack/core@2.3.2","fast-check":"4.10.2","rsbuild-v2":"npm:@rsbuild/core@2.3.2","typescript":"7.0.2","@types/node":"26.6.6","htmlparser2":"9.1.0","svgo-loader":"5.0.0","@rspack/core":"^1.7.6","@rstest/core":"0.12.6","@rsbuild/core":"1.7.3","typescript-5.0":"npm:typescript@5.0.4","typescript-5.2":"npm:typescript@5.2.2","typescript-5.3":"npm:typescript@5.3.3","typescript-5.9":"npm:typescript@5.9.3","@changesets/cli":"3.0.3","svg-sprite-loader":"6.0.11","@rstest/coverage-istanbul":"0.12.6","@changesets/changelog-github":"1.0.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"trustedDependencies":[],"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rspack-plugin-svg-sprite_1.6.4_1794961564085_0.6953644193312812","host":"s3://npm-registry-packages-npm-production"}},"1.7.0":{"_id":"rspack-plugin-svg-sprite@1.7.0","bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"dist":{"shasum":"d499c0201f4d2b2d2fe34566ab03263ebd29da76","tarball":"https://registry.npmjs.org/rspack-plugin-svg-sprite/-/rspack-plugin-svg-sprite-1.7.0.tgz","fileCount":47,"integrity":"sha512-uw/mUrvNXmMK4HnVw5a/yt1NZTNh/1VMnGwpBuTzCVdQEzG/0TNyEEMOyVY3bcgchpUIijFvlzo5DPoTyASz/g==","signatures":[{"sig":"MEQCIEfiKYv1ss+DXweOsBS50G8SOMCXMsgbbY5DP/jR4s0dAiBv4ngSp1j8cJenblk6cLYH0sV42kgQLznc7OsMdVLzVQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE8G4T1MzixRIaQI01hDFLLg+E1TDGkTbUTq8YWuelxbAiEAouBQQvSY/J6K60+pLIFdVYN1qRzTceXF3v6/8LZOel4="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/rspack-plugin-svg-sprite@1.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":179005},"main":"dist/index.js","name":"rspack-plugin-svg-sprite","type":"commonjs","_from":"file:out/rspack-plugin-svg-sprite-1.7.0.tgz","types":"dist/index.d.ts","author":{"name":"Yichen Zhu"},"exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./client":{"types":"./client.d.ts"},"./loader":{"import":{"types":"./dist/loader.d.mts","default":"./dist/loader.mjs"},"default":{"types":"./dist/loader.d.ts","default":"./dist/loader.js"}},"./plugin":{"import":{"types":"./dist/plugin.d.mts","default":"./dist/plugin.mjs"},"default":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"}},"./rsbuild":{"import":{"types":"./dist/rsbuild.d.mts","default":"./dist/rsbuild.mjs"},"default":{"types":"./dist/rsbuild.d.ts","default":"./dist/rsbuild.js"}},"./package.json":"./package.json","./runtime/symbol":{"import":{"types":"./dist/runtime/symbol.d.mts","default":"./dist/runtime/symbol.mjs"},"default":{"types":"./dist/runtime/symbol.d.ts","default":"./dist/runtime/symbol.js"}},"./runtime/browser-sprite":{"import":{"types":"./dist/runtime/browser-sprite.d.mts","default":"./dist/runtime/browser-sprite.mjs"},"default":{"types":"./dist/runtime/browser-sprite.d.ts","default":"./dist/runtime/browser-sprite.js"}}},"license":"MIT","scripts":{"knip":"bun run build && knip","lint":"oxlint src/ scripts/","test":"tsc && rstest run","bench":"bun run build && bun run --filter svg-sprite-bench bench","build":"tsc","format":"oxfmt .","prepare":"node scripts/hooks/install.mts","test:ci":"tsc && rstest run --coverage","lint:fix":"oxlint src/ scripts/ --fix","test:e2e":"bun run --filter rspack-plugin-svg-sprite-e2e test","changeset":"changeset","typecheck":"tsc --noEmit && tsc -p .config/tsconfig.test.json && tsc -p .config/tsconfig.scripts.json","dev:rspack":"bun run build && bun run --filter svg-sprite-consumer-demo dev","dev:webpack":"bun run --filter svg-sprite-webpack-demo dev","format:check":"oxfmt --check .","check:package":"node scripts/ci/package-check.mts","test:mutation":"bunx @stryker-mutator/core@10.1.1 run .config/stryker.config.mjs","prepublishOnly":"bun run build","version-packages":"changeset version"},"version":"1.7.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"58352b33-eb6e-4c31-95cc-e98378f00741"}},"homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"_resolved":"/home/runner/work/rspack-plugin-svg-sprite/rspack-plugin-svg-sprite/out/rspack-plugin-svg-sprite-1.7.0.tgz","_integrity":"sha512-uw/mUrvNXmMK4HnVw5a/yt1NZTNh/1VMnGwpBuTzCVdQEzG/0TNyEEMOyVY3bcgchpUIijFvlzo5DPoTyASz/g==","repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"workspaces":[".","examples/*","e2e","bench","website"],"_npmVersion":"11.20.0","description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","directories":{},"maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"resolutions":{"qs":"6.16.1","ws":"8.21.0","tmp":"0.2.7","braces":"3.0.3","lodash":"4.18.1","nanoid":"3.3.18","fast-uri":"3.1.9","basic-ftp":"6.2.4","node-forge":"1.4.3","proxy-addr":"2.0.8","body-parser":"1.20.9","compression":"1.8.2","shell-quote":"1.12.0","browserslist":"4.28.7","launch-editor":"2.14.2","source-map-js":"1.2.2","glob/minimatch":"3.1.5","follow-redirects":"1.16.3","svgo-loader/svgo":"2.8.4","websocket-driver":"0.7.5","anymatch/picomatch":"2.3.2","css-loader/postcss":"8.5.33","readdirp/picomatch":"2.3.2","webpack-dev-server":"5.2.6","@vue/server-renderer":"3.5.42","decode-uri-component":"0.5.1","micromatch/picomatch":"2.3.2","serialize-javascript":"7.1.4","tinyglobby/picomatch":"4.0.7","http-proxy-middleware":"2.0.10","express/path-to-regexp":"0.1.13","postcss-selector-parser":"7.1.6","@changesets/git/picomatch":"2.3.2","@vue/compiler-sfc/postcss":"8.5.33","minimatch/brace-expansion":"1.1.22","@babel/plugin-transform-modules-systemjs":"7.29.4"},"_nodeVersion":"26.13.1","typesVersions":{"*":{"client":["./client.d.ts"],"loader":["./dist/loader.d.ts"],"plugin":["./dist/plugin.d.ts"],"rsbuild":["./dist/rsbuild.d.ts"],"runtime/symbol":["./dist/runtime/symbol.d.ts"],"runtime/browser-sprite":["./dist/runtime/browser-sprite.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"bun@1.4.4","devDependencies":{"knip":"6.45.1","svgo":"4.1.0","oxfmt":"0.78.0","oxlint":"1.93.0","webpack":"5.105.2","lefthook":"2.2.2","happy-dom":"21.0.4","rspack-v2":"npm:@rspack/core@2.3.2","fast-check":"4.10.2","rsbuild-v2":"npm:@rsbuild/core@2.3.2","typescript":"7.0.2","@types/node":"26.6.6","htmlparser2":"9.1.0","svgo-loader":"5.0.0","@rspack/core":"^1.7.6","@rstest/core":"0.12.6","@rsbuild/core":"1.7.3","typescript-5.0":"npm:typescript@5.0.4","typescript-5.2":"npm:typescript@5.2.2","typescript-5.3":"npm:typescript@5.3.3","typescript-5.9":"npm:typescript@5.9.3","@changesets/cli":"3.0.3","svg-sprite-loader":"6.0.11","@rstest/coverage-istanbul":"0.12.6","@changesets/changelog-github":"1.0.1"},"peerDependencies":{"@rspack/core":">=0.5.0","@rsbuild/core":">=1.0.0"},"trustedDependencies":[],"peerDependenciesMeta":{"@rspack/core":{"optional":true},"@rsbuild/core":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rspack-plugin-svg-sprite_1.7.0_1794962166104_0.843183539805338"}}},"time":{"created":"2026-02-22T05:37:03.180Z","modified":"2026-11-18T00:36:06.518Z","1.1.1":"2026-02-22T05:37:03.322Z","1.2.0":"2026-02-22T06:36:09.335Z","1.3.0":"2026-02-22T07:25:53.974Z","1.4.0":"2026-02-28T20:52:10.517Z","1.3.1":"2026-03-02T08:23:03.726Z","1.5.0":"2026-03-02T08:28:40.165Z","1.5.1":"2026-03-02T23:37:43.923Z","1.5.2":"2026-11-15T00:59:54.879Z","1.5.3":"2026-11-15T05:54:09.773Z","1.6.0":"2026-11-15T22:10:21.023Z","1.6.2":"2026-11-16T03:37:19.391Z","1.6.4":"2026-11-18T00:26:04.200Z","1.7.0":"2026-11-18T00:36:06.196Z"},"bugs":{"url":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/issues"},"author":{"name":"Yichen Zhu"},"license":"MIT","homepage":"https://github.com/yichenzhu1337/rspack-plugin-svg-sprite#readme","keywords":["rspack","rspack-plugin","rspack-loader","rsbuild","rsbuild-plugin","svg","svg-sprite","svg-sprite-loader","svg-icon","svg-icons","sprite","sprite-sheet","icon","icon-system","loader","plugin","bundler-plugin","webpack","webpack5","extract","inline","symbol","react","vue","migration","drop-in"],"repository":{"url":"git+https://github.com/yichenzhu1337/rspack-plugin-svg-sprite.git","type":"git"},"description":"SVG sprite loader and plugin for Rspack — drop-in replacement for svg-sprite-loader with inline and extract mode support","maintainers":[{"name":"yichenzhu","email":"yichenzhu1337@gmail.com"}],"readme":"# rspack-plugin-svg-sprite\n\n> SVG sprite loader and plugin for [Rspack](https://rspack.dev/) and [Rsbuild](https://rsbuild.dev/) — a drop-in replacement for [`svg-sprite-loader`](https://github.com/JetBrains/svg-sprite-loader), which doesn't work with Rspack.\n\n[![version](https://npmx.dev/api/registry/badge/version/rspack-plugin-svg-sprite)](https://npmx.dev/package/rspack-plugin-svg-sprite)\n[![downloads](https://npmx.dev/api/registry/badge/downloads/rspack-plugin-svg-sprite)](https://npmx.dev/package/rspack-plugin-svg-sprite)\n[![CI](https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/actions/workflows/ci.yml/badge.svg)](https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/actions/workflows/ci.yml)\n[![coverage](https://codecov.io/gh/yichenzhu1337/rspack-plugin-svg-sprite/branch/main/graph/badge.svg)](https://codecov.io/gh/yichenzhu1337/rspack-plugin-svg-sprite)\n[![dependencies](https://npmx.dev/api/registry/badge/dependencies/rspack-plugin-svg-sprite)](https://npmx.dev/package/rspack-plugin-svg-sprite)\n[![types](https://npmx.dev/api/registry/badge/types/rspack-plugin-svg-sprite)](https://npmx.dev/package/rspack-plugin-svg-sprite)\n[![license](https://npmx.dev/api/registry/badge/license/rspack-plugin-svg-sprite)](https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/blob/main/LICENSE)\n[![renovate](https://img.shields.io/badge/maintained%20with-renovate-1A1F6C?logo=renovate&logoColor=white)](https://github.com/yichenzhu1337/rspack-plugin-svg-sprite/blob/main/.github/renovate.json)\n\n**[Documentation](https://yichenzhu1337.github.io/rspack-plugin-svg-sprite/docs/)** ([llms.txt](https://yichenzhu1337.github.io/rspack-plugin-svg-sprite/docs/llms.txt) for AI agents) | **[Live Demo](https://yichenzhu1337.github.io/rspack-plugin-svg-sprite/)** | **[Open in StackBlitz](https://stackblitz.com/github/yichenzhu1337/rspack-plugin-svg-sprite/tree/main/starters/stackblitz)** | **[npm](https://www.npmjs.com/package/rspack-plugin-svg-sprite)** | **[npmcharts](https://npmcharts.com/compare/rspack-plugin-svg-sprite?minimal=true)**\n\n```bash\nnpm install rspack-plugin-svg-sprite -D\n```\n\n**Coming from `svg-sprite-loader`?** Swap the loader path and the plugin import; your component code stays the same. [See the diff ↓](#-migrating-from-svg-sprite-loader)\n\n## 🧭 Contents\n\n| Start here                                       | Reference                                                                 | Help                                    |\n| ------------------------------------------------ | ------------------------------------------------------------------------- | --------------------------------------- |\n| [🚀 Quick Start](#-quick-start)                  | [⚙️ API Reference](#️-api-reference)                                      | [🐛 Troubleshooting](#-troubleshooting) |\n| [📦 Extract Mode](#-extract-mode)                | [🔍 How It Works](#-how-it-works)                                         | [🧩 Compatibility](#-compatibility)     |\n| [🏗️ Rsbuild Integration](#️-rsbuild-integration) | [📊 Alternatives & Comparison](#-alternatives--comparison)                | [📚 Examples](#-examples)               |\n| [🛠️ Framework Recipes](#️-framework-recipes)     | [🔄 Migrating from svg-sprite-loader](#-migrating-from-svg-sprite-loader) | [🙌 Contributing](#-contributing)       |\n\n---\n\n## 🤔 Why SVG sprites?\n\nIndividual SVG files mean one HTTP request per icon — 50 icons = 50 requests. Inlining SVGs directly into JSX bloats your bundle with duplicated markup. SVG sprites solve both problems: all icons are combined into a single file (or a single hidden DOM element), and each icon is referenced by `<use href=\"#id\" />` — one request, zero duplication, full CSS styling support, and resolution-independent rendering at any size.\n\n## 💡 What is this?\n\n`rspack-plugin-svg-sprite` lets you import `.svg` files in your Rspack (or Webpack 5) project and automatically combine them into an SVG sprite sheet — either inlined in the DOM or extracted as an external `.svg` file.\n\nIt was created because the popular [`svg-sprite-loader`](https://github.com/JetBrains/svg-sprite-loader) depends on internal Webpack APIs (`NormalModule.getCompilationHooks`, `compilation.hooks.additionalAssets`, etc.) that do not exist in Rspack ([rspack#11609](https://github.com/web-infra-dev/rspack/issues/11609)). This package reimplements the same functionality using Rspack-compatible APIs while keeping the exact same exported symbol shape (`id`, `viewBox`, `url`, `content`), so your existing component code works without changes.\n\n## ✨ Features\n\n- **Inline mode** (default) — SVG symbols are injected into the DOM at runtime via a hidden `<svg>` element. No plugin needed.\n- **Extract mode** — SVG symbols are emitted as an external `.svg` sprite file at build time. Great for caching and performance.\n- **Drop-in replacement** for `svg-sprite-loader` — same config options, same export shape.\n- **Works with both Rspack and Webpack 5** — auto-detects the bundler at runtime.\n- **TypeScript** — fully typed, ships with `.d.ts` declarations.\n- **Lightweight** — zero runtime dependencies.\n- **Customizable symbol IDs** — use `[name]`, `[folder]`, or a custom function.\n\n## 🚀 Quick Start\n\n### Install\n\n```bash\nnpm install rspack-plugin-svg-sprite -D\n# or\npnpm add rspack-plugin-svg-sprite -D\n# or\nyarn add rspack-plugin-svg-sprite -D\n# or\nbun add rspack-plugin-svg-sprite -d\n```\n\n### Configure (inline mode)\n\n```js\n// rspack.config.js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n        type: 'javascript/auto',\n        loader: 'rspack-plugin-svg-sprite/loader',\n        options: {\n          symbolId: '[name]',\n        },\n      },\n    ],\n  },\n};\n```\n\n> ⚠️ **Heads up:** The `type: 'javascript/auto'` is required to prevent rspack/webpack's built-in asset module handling from intercepting `.svg` files before the loader runs. Without it, the loader may silently fail to process your SVGs.\n\n### Use in your components\n\n```jsx\nimport logo from './logo.svg';\n\n// logo.id      → \"logo\"\n// logo.viewBox → \"0 0 24 24\"\n// logo.url     → \"#logo\"\n\n<svg viewBox={logo.viewBox}>\n  <use href={logo.url} />\n</svg>;\n```\n\nThat's it. Every imported SVG is automatically registered as a `<symbol>` in a hidden sprite and referenced by `#id`.\n\n### Accessibility\n\nAn icon next to visible text is decorative. Hide it from assistive technology:\n\n```jsx\n<svg viewBox={icon.viewBox} aria-hidden=\"true\" focusable=\"false\">\n  <use href={icon.url} />\n</svg>\n```\n\nAn icon that stands alone, such as an icon-only button, needs a label:\n\n```jsx\n<svg viewBox={icon.viewBox} role=\"img\" aria-label=\"Search\">\n  <use href={icon.url} />\n</svg>\n```\n\nThe hidden inline sprite itself is already marked `aria-hidden`. The end-to-end tests run axe on every consumer app to keep these patterns working.\n\n### TypeScript\n\nThis package ships with a client type declaration. Add it to your `tsconfig.json` so `import icon from './icon.svg'` is fully typed:\n\n```jsonc\n// tsconfig.json\n{\n  \"compilerOptions\": {\n    \"types\": [\"rspack-plugin-svg-sprite/client\"],\n  },\n}\n```\n\nThis gives you autocompletion for `id`, `viewBox`, `url`, and `content` on every SVG import.\n\n<details>\n<summary>Alternative: manual declaration file</summary>\n\nIf you prefer, create a `svg.d.ts` file instead:\n\n```ts\ndeclare module '*.svg' {\n  const symbol: {\n    id: string;\n    viewBox: string;\n    url: string;\n    content: string;\n  };\n  export default symbol;\n}\n```\n\nMake sure this file is included by your `tsconfig.json` (e.g., in the `include` array or alongside your source files).\n\n</details>\n\n## 📦 Extract Mode\n\nTo emit SVGs as an external `.svg` sprite file instead of inlining them, enable extract mode and add the plugin:\n\n```js\n// rspack.config.js\nconst { SvgSpritePlugin } = require('rspack-plugin-svg-sprite');\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n        type: 'javascript/auto',\n        loader: 'rspack-plugin-svg-sprite/loader',\n        options: {\n          extract: true,\n          symbolId: 'icon-[name]',\n          spriteFilename: 'sprites/icons.svg',\n          publicPath: '/assets/',\n        },\n      },\n    ],\n  },\n  plugins: [\n    new SvgSpritePlugin({\n      plainSprite: true,\n      spriteAttrs: { id: 'svg-sprite' },\n    }),\n  ],\n};\n```\n\nIn extract mode, the exported `url` points to the external file:\n\n```jsx\nimport icon from './icon.svg';\n\n// icon.url → \"/assets/sprites/icons.svg#icon-icon\"\n\n<svg viewBox={icon.viewBox}>\n  <use href={icon.url} />\n</svg>;\n```\n\n## ⚙️ API Reference\n\n### Loader Options\n\n| Option           | Type                 | Default        | Description                                                                                                                                                                                   |\n| ---------------- | -------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `symbolId`       | `string \\| function` | `'[name]'`     | Pattern for generating symbol IDs. Supports `[name]`, `[folder]`, `[ext]` placeholders, or a function `(filePath) => id`.                                                                     |\n| `esModule`       | `boolean`            | `true`         | Use ES module export (`export default`) vs CommonJS (`module.exports`).                                                                                                                       |\n| `extract`        | `boolean`            | `false`        | Enable extract mode to emit an external sprite file instead of inlining.                                                                                                                      |\n| `spriteFilename` | `string`             | `'sprite.svg'` | Output filename for the extracted sprite (extract mode only). Symbol ids must be unique within one sprite file.                                                                               |\n| `publicPath`     | `string`             | `''`           | Public URL prefix for the sprite file (extract mode only). Read from `output.publicPath` if not set; `'auto'` and function values resolve at runtime.                                         |\n| `content`        | `boolean`            | `true`         | Extract mode only: set `false` to leave the `<symbol>` markup out of each module (`icon.content` is then `''`). The sprite file is unchanged. Ignored in inline mode, which needs the markup. |\n\n`include` and `exclude` are not loader options. To limit which SVGs become sprite symbols, use the `include` / `exclude` conditions of the bundler rule itself, or the options of the same name on the Rsbuild plugin (`pluginSvgSprite({ include: /icons/ })`).\n\n### Plugin Options (Extract Mode)\n\n| Option        | Type      | Default | Description                                                             |\n| ------------- | --------- | ------- | ----------------------------------------------------------------------- |\n| `plainSprite` | `boolean` | `false` | Generate a plain sprite without preview styles and `<use>` elements.    |\n| `spriteAttrs` | `object`  | `{}`    | Additional attributes to add to the root `<svg>` element of the sprite. |\n\n### Exported Symbol Shape\n\nEvery `import icon from './icon.svg'` returns an object with:\n\n| Property  | Type     | Example                                            | Description                                        |\n| --------- | -------- | -------------------------------------------------- | -------------------------------------------------- |\n| `id`      | `string` | `\"icon-home\"`                                      | The symbol ID inside the sprite.                   |\n| `viewBox` | `string` | `\"0 0 24 24\"`                                      | The original SVG `viewBox` attribute.              |\n| `url`     | `string` | `\"#icon-home\"` or `\"/sprites/icons.svg#icon-home\"` | Fragment reference (inline) or full URL (extract). |\n| `content` | `string` | `\"<symbol id=\\\"icon-home\\\" ...>...</symbol>\"`      | Raw `<symbol>` markup.                             |\n\n> ✅ This matches `svg-sprite-loader`'s export shape exactly, so migrating requires no component changes.\n\n## 🏗️ Rsbuild Integration\n\nIf you're using [Rsbuild](https://rsbuild.dev/), use the built-in Rsbuild plugin for one-line setup:\n\n```js\n// rsbuild.config.js\nconst { pluginSvgSprite } = require('rspack-plugin-svg-sprite/rsbuild');\n\nmodule.exports = {\n  plugins: [\n    pluginSvgSprite({\n      symbolId: 'icon-[name]',\n      extract: true,\n      spriteFilename: 'sprites/icons.svg',\n    }),\n  ],\n};\n```\n\n> 💡 **Tip:** The Rsbuild plugin handles the loader rule, `type: 'javascript/auto'`, and the `SvgSpritePlugin` automatically.\n\n## 🛠️ Framework Recipes\n\n### Next.js (with next-rspack)\n\n```js\n// next.config.js\nconst { SvgSpritePlugin } = require('rspack-plugin-svg-sprite');\n\nmodule.exports = {\n  webpack(config) {\n    // Remove Next.js default SVG handling\n    const fileLoaderRule = config.module.rules.find((rule) => rule.test?.test?.('.svg'));\n    if (fileLoaderRule) fileLoaderRule.exclude = /\\.svg$/;\n\n    config.module.rules.push({\n      test: /\\.svg$/,\n      type: 'javascript/auto',\n      loader: 'rspack-plugin-svg-sprite/loader',\n      options: { symbolId: 'icon-[name]', extract: true },\n    });\n\n    config.plugins.push(new SvgSpritePlugin({ plainSprite: true }));\n    return config;\n  },\n};\n```\n\n### Vue + Rspack\n\n```js\n// rspack.config.js\nconst { SvgSpritePlugin } = require('rspack-plugin-svg-sprite');\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n        type: 'javascript/auto',\n        loader: 'rspack-plugin-svg-sprite/loader',\n        options: { symbolId: '[name]' },\n      },\n    ],\n  },\n};\n```\n\n```vue\n<template>\n  <svg :viewBox=\"icon.viewBox\">\n    <use :href=\"icon.url\" />\n  </svg>\n</template>\n\n<script setup>\nimport icon from './icon.svg';\n</script>\n```\n\n## 🔄 Migrating from svg-sprite-loader\n\n```diff\n// rspack.config.js\n-const SpriteLoaderPlugin = require('svg-sprite-loader/plugin');\n+const { SvgSpritePlugin } = require('rspack-plugin-svg-sprite');\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n+       type: 'javascript/auto',\n-       loader: 'svg-sprite-loader',\n+       loader: 'rspack-plugin-svg-sprite/loader',\n        options: {\n          symbolId: 'icon-[name]',\n+         // Add extract: true if you were using extract mode\n        },\n      },\n    ],\n  },\n  plugins: [\n-   new SpriteLoaderPlugin(),\n+   new SvgSpritePlugin(), // Only needed for extract mode\n  ],\n};\n```\n\n> ✅ **No component changes:** your component code stays the same — the exported symbol object has the identical shape (`id`, `viewBox`, `url`, `content`).\n\n## 🔄 Migrating from `asset/resource`\n\nIf you're currently using rspack/webpack's built-in `asset/resource` type to handle SVGs (common in webpack 5+ / rspack projects), you can replace it with this plugin to get proper SVG sprite support:\n\n```diff\n// rspack.config.js\n+const { SvgSpritePlugin } = require('rspack-plugin-svg-sprite');\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n-       type: 'asset/resource',\n-       generator: {\n-         filename: 'images/icons/[name].[contenthash][ext]',\n-       },\n+       type: 'javascript/auto',\n+       loader: 'rspack-plugin-svg-sprite/loader',\n+       options: {\n+         extract: true,\n+         symbolId: '[name]',\n+         spriteFilename: 'sprite.svg',\n+       },\n      },\n    ],\n  },\n+ plugins: [\n+   new SvgSpritePlugin({ plainSprite: true }),\n+ ],\n};\n```\n\n> 💡 **Key points:**\n\n- `type: 'javascript/auto'` is **required** — it overrides the previous `asset/resource` handling and lets the loader process SVGs as JavaScript modules.\n- The sprite file is emitted to your output directory (e.g., `dist/sprite.svg`).\n- If you were using a separate CLI tool (like `svg-sprite`) to generate sprites as a post-build step, you can remove that — the plugin handles everything inside the rspack build pipeline.\n\n## 🔍 How It Works\n\n### Inline Mode\n\n1. The loader parses each `.svg` file and wraps its content in an SVG `<symbol>` element.\n2. It generates a JS module that imports a browser-side sprite manager.\n3. At runtime, the sprite manager creates a hidden `<svg>` element in `document.body` and appends all symbols.\n4. You reference symbols via `<use href=\"#symbolId\" />`.\n\n### Extract Mode\n\n1. The loader wraps each SVG as a `<symbol>` and registers it with the plugin via the compilation object.\n2. During Rspack's `processAssets` stage, the plugin collects all registered symbols and emits a combined `.svg` sprite file.\n3. The exported JS module contains the external file URL (e.g., `/sprites/icons.svg#symbolId`).\n\n## 📊 Alternatives & Comparison\n\nLooking for the right SVG solution for Rspack? Here's how the options compare:\n\n<details>\n<summary>📊 Full comparison table</summary>\n\n| Feature               | rspack-plugin-svg-sprite | svg-sprite-loader           | @svgr/webpack    | @rsbuild/plugin-svgr | vite-plugin-svg-icons |\n| --------------------- | ------------------------ | --------------------------- | ---------------- | -------------------- | --------------------- |\n| **Rspack support**    | Native                   | No (uses Webpack internals) | Via config       | Rsbuild only         | No (Vite only)        |\n| **Approach**          | SVG sprites (`<use>`)    | SVG sprites (`<use>`)       | React components | React components     | SVG sprites           |\n| **Inline mode**       | Yes                      | Yes                         | N/A              | N/A                  | Yes                   |\n| **Extract mode**      | Yes                      | Yes                         | N/A              | N/A                  | No                    |\n| **Webpack 5 support** | Yes                      | Yes                         | Yes              | No                   | No                    |\n| **Runtime deps**      | Zero                     | 1                           | Several          | Several              | Several               |\n| **Maintained**        | Yes                      | No (archived)               | Yes              | Yes                  | Yes                   |\n| **Drop-in migration** | —                        | Yes (same API)              | Different API    | Different API        | Different API         |\n\n</details>\n\n**When to use SVG sprites** (this plugin): You want icons combined into a single file with `<use href=\"#id\">` references — optimal for large icon sets, full CSS styling control, and caching. Best when migrating from `svg-sprite-loader`.\n\n**When to use SVGR**: You want each SVG as a React component with props for color, size, etc. Better for SVGs that need dynamic manipulation via React props rather than CSS.\n\n## 🧩 Compatibility\n\n| Bundler                            | Tested versions | What the test suite covers                                       |\n| ---------------------------------- | --------------- | ---------------------------------------------------------------- |\n| [Rspack](https://rspack.dev/)      | 1.7 and 2.3     | Inline and extract builds, watch mode, persistent cache restarts |\n| [Rsbuild](https://rsbuild.dev/)    | 1.7 and 2.3     | The `pluginSvgSprite` wrapper                                    |\n| [Webpack](https://webpack.js.org/) | 5.105           | Inline and extract builds, watch mode, filesystem cache restarts |\n\nThe peer range still accepts `@rspack/core` 0.5 and newer, so existing installs keep working, but versions older than 1.7 are not exercised by the tests.\n\n### Module formats and TypeScript\n\n- **CommonJS and ESM.** Every entry (`.`, `/plugin`, `/loader`, `/rsbuild`, `/runtime/*`) works with `require()` and with `import`. From 1.6.0, ESM default imports of the subpaths give the real value, so an ESM config can write `import SvgSpritePlugin from 'rspack-plugin-svg-sprite/plugin'`.\n- **One implementation.** The ESM entry points re-export the CommonJS build, so a page always has exactly one sprite, even when app code imports the runtime directly.\n- **TypeScript.** Types resolve under `moduleResolution` `node16`, `nodenext` and `bundler`, and from 1.6.0 also under the older `node10` setting for every subpath.\n- **TypeScript versions.** The declarations compile on TypeScript 5.0 and newer. CI checks them on 5.0, 5.2, 5.3, 5.9 and 7.\n\n## 📚 Examples\n\nThe repository includes three runnable demo apps:\n\n| Example                                              | Bundler   | Plugin                     | Port | Description                                                       |\n| ---------------------------------------------------- | --------- | -------------------------- | ---- | ----------------------------------------------------------------- |\n| [`react-rspack`](examples/react-rspack/)             | Rspack    | `rspack-plugin-svg-sprite` | 3000 | Extract mode: 265 flags in one sprite, light and dark theme       |\n| [`react-webpack`](examples/react-webpack/)           | Webpack 5 | `svg-sprite-loader`        | 4000 | Same UI using the original loader (for comparison)                |\n| [`vue-rspack-extract`](examples/vue-rspack-extract/) | Rspack    | `rspack-plugin-svg-sprite` | 3002 | Vue 3 + extract mode with `plainSprite` and external `<use href>` |\n\n**[Live demo (Rspack)](https://yichenzhu1337.github.io/rspack-plugin-svg-sprite/)** — see the plugin in action.\n\n**[Open the starter in StackBlitz](https://stackblitz.com/github/yichenzhu1337/rspack-plugin-svg-sprite/tree/main/starters/stackblitz)** — a minimal Rspack project that installs the published package ([`starters/stackblitz`](starters/stackblitz/)).\n\nRun locally from the project root:\n\n```bash\nbun install\nbun run dev:rspack   # http://localhost:3000\nbun run dev:webpack  # http://localhost:4000\n```\n\n## 🐛 Troubleshooting\n\n### Sprite file not emitted / icons not rendering\n\n**Symptom:** The build succeeds with no errors, but `sprite.svg` is not in the output directory and SVG icons don't render.\n\n**Cause:** rspack/webpack's built-in asset module handling is intercepting `.svg` files before the loader runs.\n\n**Fix:** Add `type: 'javascript/auto'` to your SVG rule:\n\n```js\n{\n  test: /\\.svg$/,\n  type: 'javascript/auto', // ← Add this\n  loader: 'rspack-plugin-svg-sprite/loader',\n  options: { extract: true, symbolId: '[name]' },\n}\n```\n\n### Warning: \"SvgSpritePlugin is registered but no SVG symbols were collected\"\n\nThis means the plugin is in your `plugins` array but no SVGs went through the loader. Common causes:\n\n1. **Missing `type: 'javascript/auto'`** on the loader rule (see above).\n2. **`include`/`exclude` filters** on the rule don't match your SVG file paths.\n3. **No SVG imports** in your code — at least one `.svg` file must be imported for the loader to process it.\n\n### Warning: \"Extract mode is enabled but SvgSpritePlugin was not found\"\n\nThis means the loader is running in extract mode (`extract: true`) but `SvgSpritePlugin` isn't in the `plugins` array. Add it:\n\n```js\nconst { SvgSpritePlugin } = require('rspack-plugin-svg-sprite');\n\nmodule.exports = {\n  plugins: [new SvgSpritePlugin()],\n};\n```\n\n### Icon is a broken image, or DevTools shows `data:image/svg+xml;base64`\n\n**Symptom:** The build succeeds, but the icon does not render and its source is a `data:` URI or a hashed `.svg` file that contains JavaScript.\n\n**Cause:** Another rule (your own image rule, or a framework default) assigns an asset module type to `.svg` files. The sprite loader still runs, but its JavaScript output is emitted as the image instead of being executed.\n\n**Fix:** The loader prints a build warning that names the file and the module type, for example `... is handled as module type \"asset/inline\"`. Add `type: 'javascript/auto'` to the rule that uses `rspack-plugin-svg-sprite/loader`, or exclude your icon folder from the other rule.\n\n### Icons vanish from the extracted sprite during development, or after a cached rebuild\n\n**Symptom:** In extract mode, icons disappear from `sprite.svg` after you edit a file while the dev server is running. Or, with a persistent build cache (`cache.type: 'persistent'` in Rspack 2, `experiments.cache` in Rspack 1, `cache.type: 'filesystem'` in webpack), the second build emits no sprite at all.\n\n**Cause:** Versions up to 1.5.2 let the bundler cache SVG modules in extract mode. A cached module skips the loader, so its symbol was never registered with the plugin.\n\n**Fix:** Upgrade to 1.5.3 or newer. In extract mode the loader now opts out of caching, so every icon is read again on each rebuild (roughly 0.05 to 0.1 ms per icon). Inline mode is unaffected and stays cached.\n\n### Two icons show the same gradient, clip path, or class styling\n\n**Cause:** All symbols live in one SVG document. Icons minified by SVGO often reuse ids such as `id=\"a\"`, and Illustrator exports reuse class names such as `.cls-1`. The first definition in the document wins.\n\n**Fix:** Let SVGO prefix ids and class names per file before the sprite loader runs:\n\n```bash\nnpm install svgo svgo-loader -D\n```\n\n```js\n{\n  test: /\\.svg$/,\n  type: 'javascript/auto',\n  use: [\n    { loader: 'rspack-plugin-svg-sprite/loader', options: { symbolId: 'icon-[name]' } },\n    { loader: 'svgo-loader', options: { plugins: [{ name: 'prefixIds' }] } },\n  ],\n}\n```\n\nLoaders run from the last entry to the first, so SVGO processes the raw SVG and the sprite loader receives the result. This recipe is covered by the test suite with svgo-loader 5 and svgo 4.\n\n### An icon is scaled differently after upgrading from 1.5.2 or older\n\n**Cause:** Older versions lowercased attribute names on the root `<svg>`, which turned `preserveAspectRatio` into an attribute browsers ignore. The attribute is now kept exactly as written, so the icon scales the way the SVG file asks.\n\n**Fix:** If you preferred the old rendering, remove `preserveAspectRatio` from the source SVG.\n\n### One plugin instance shared by several configs\n\nIf you export an array of configs (a multi-compiler build, for example client and server), create a separate `new SvgSpritePlugin()` for each config. A shared instance puts the icons of every build into each sprite.\n\n### Known limitations\n\n- An SVG with no `viewBox` and no numeric `width` and `height` gets `viewBox=\"0 0 24 24\"`. The build prints a warning that names the file. Add a `viewBox` (or numeric `width` and `height`) to the root `<svg>` if that is not its real size.\n- `spriteFilename` is used literally. Placeholders such as `[hash]` or `[chunkname]` are not interpolated.\n- The Rsbuild plugin replaces Rsbuild's built-in SVG rule. `./icon.svg?url`, `?inline` and `?raw` therefore also return a sprite symbol, and SVGs outside the plugin's `include` / `exclude` scope are left without Rsbuild's default handling.\n- In extract mode, Safari (WebKit) does not resolve `url(#id)` references inside an external sprite file. An icon that uses a gradient, pattern, filter, mask or clip-path paints blank there. Chrome and Firefox are not affected. Use inline mode for those icons, or flatten the effect to solid fills. The end-to-end tests cover this case.\n- An entity declared in an SVG's DOCTYPE (`<!ENTITY fill \"red\">`, used as `&fill;`) is not expanded. The DOCTYPE is not copied into the sprite, so the reference is undeclared there, and an external sprite that contains one is not well-formed XML. The build prints a warning that names the file and the entity. Replace the entity with its literal value in the file, or run SVGO, which expands entities.\n- The icon id is the file name. `icon.id` is that name as written. In the markup (`icon.content` and the extracted sprite) the characters `&`, `<` and `\"` are escaped, so `Q&A.svg` is written as `<symbol id=\"Q&amp;A\">` and an XML or HTML parser reads it back as `Q&A`. In `icon.url` the id is used raw, except that a `%` followed by two hex digits is written as `%25`. Control characters other than tab, newline and carriage return cannot be written in XML at all, so avoid them in file names.\n\n## 🙌 Contributing\n\nContributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, project structure, and guidelines.\n\n## 📄 License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}