vite-plugin-magical-svg
Version:
An all-in-one Vite plugin that magically makes working with SVGs and bundling them a breeze
54 lines • 1.63 kB
JSON
{
"name": "vite-plugin-magical-svg",
"license": "BSD-3-Clause",
"version": "1.9.0",
"description": "An all-in-one Vite plugin that magically makes working with SVGs and bundling them a breeze",
"author": "Cynthia <cynthia@cynthia.dev>",
"repository": "github:cyyynthia/vite-plugin-magical-svg",
"bugs": "https://github.com/cyyynthia/vite-plugin-magical-svg/issues",
"funding": "https://github.com/sponsors/cyyynthia",
"keywords": [
"vite-plugin",
"spritesheet",
"sprite",
"svgr",
"svg"
],
"type": "module",
"dependencies": {
"magic-string": "^0.30.21",
"svgo": "^4.0.1",
"xml2js": "^0.6.2"
},
"devDependencies": {
"@tsconfig/node-lts": "^24.0.0",
"@tsconfig/strictest": "^2.0.8",
"@types/node": "^25.5.0",
"@types/xml2js": "^0.4.14",
"esbuild": "^0.27.4",
"pin-github-action": "^3.4.0",
"rollup": "2.75.6",
"typescript": "^5.9.3",
"vite": "3.0.0"
},
"peerDependencies": {
"vite": ">= 3.0.0"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./runtime/*.js": "./runtime/*.js"
},
"scripts": {
"build": "pnpm run build:mjs && pnpm run build:cjs",
"build:mjs": "tsc",
"build:cjs": "esbuild dist/index.js --bundle --external:vite --external:svgo --external:xml2js --external:magic-string --platform=node --target=node18 --format=cjs --outfile=dist/index.cjs",
"update-gha": "pin-github-action .github/workflows"
}
}