vite-awesome-svg-loader
Version:
A universal Vite SVG loader. Imports SVGs as source code, base64 and data URI. Preserves stroke width. Replaces colors with currentColor or custom colors. Creates SVG sprites. Optimizes SVGs.
183 lines • 4.88 kB
JSON
{
"type": "module",
"$schema": "https://raw.githubusercontent.com/vitejs/vite-plugin-registry/refs/heads/main/data/schema/extended-package-json.schema.json",
"name": "vite-awesome-svg-loader",
"description": "A universal Vite SVG loader. Imports SVGs as source code, base64 and data URI. Preserves stroke width. Replaces colors with currentColor or custom colors. Creates SVG sprites. Optimizes SVGs.",
"keywords": [
"vite",
"svg",
"loader",
"import",
"image",
"icon",
"plugin",
"vite-svg",
"vite-loader",
"vite-plugin",
"sprite",
"preserve-line-width",
"replace-colors",
"currentColor",
"vue",
"react",
"vanilla",
"web-components",
"custom-elements",
"typescript",
"sprite-sheet",
"svg-sprite",
"sprites",
"sprite-sheets",
"preserve-stroke-width",
"vite-awesome-svg-loader",
"svgo"
],
"version": "5.0.3",
"homepage": "https://matafokka.github.io/vite-awesome-svg-loader",
"repository": "https://github.com/matafokka/vite-awesome-svg-loader",
"license": "LGPL-2.1-or-later",
"sideEffects": false,
"main": "loader/index.cjs",
"module": "loader/index.js",
"types": "loader/index.d.ts",
"exports": {
"./common-utils": {
"import": {
"types": "./common-utils/index.d.ts",
"default": "./common-utils/index.js"
},
"require": {
"types": "./common-utils/index.d.ts",
"default": "./common-utils/index.cjs"
}
},
"./integration-utils": {
"import": {
"types": "./integration-utils/index.d.ts",
"default": "./integration-utils/index.js"
},
"require": {
"types": "./integration-utils/index.d.ts",
"default": "./integration-utils/index.cjs"
}
},
".": {
"import": {
"types": "./loader/index.d.ts",
"default": "./loader/index.js"
},
"require": {
"types": "./loader/index.d.ts",
"default": "./loader/index.cjs"
}
},
"./react-integration": {
"import": {
"types": "./react-integration/index.d.ts",
"default": "./react-integration/index.js"
},
"require": {
"types": "./react-integration/index.d.ts",
"default": "./react-integration/index.cjs"
}
},
"./vanilla-integration": {
"import": {
"types": "./vanilla-integration/index.d.ts",
"default": "./vanilla-integration/index.js"
},
"require": {
"types": "./vanilla-integration/index.d.ts",
"default": "./vanilla-integration/index.cjs"
}
},
"./vue-integration": {
"import": {
"types": "./vue-integration/index.d.ts",
"default": "./vue-integration/index.js"
},
"require": {
"types": "./vue-integration/index.d.ts",
"default": "./vue-integration/index.cjs"
}
},
"./web-components-integration": {
"import": {
"types": "./web-components-integration/index.d.ts",
"default": "./web-components-integration/index.js"
},
"require": {
"types": "./web-components-integration/index.d.ts",
"default": "./web-components-integration/index.cjs"
}
},
"./web-components-integration/dom": {
"import": {
"types": "./web-components-integration/dom.d.ts",
"default": "./web-components-integration/dom.d.ts"
},
"require": {
"types": "./web-components-integration/dom.d.ts",
"default": "./web-components-integration/dom.d.ts"
}
}
},
"typesVersions": {
"*": {
"./common-utils": [
"./common-utils/index.d.ts"
],
"./integration-utils": [
"./integration-utils/index.d.ts"
],
".": [
"./loader/index.d.ts"
],
"./react-integration": [
"./react-integration/index.d.ts"
],
"./vanilla-integration": [
"./vanilla-integration/index.d.ts"
],
"./vue-integration": [
"./vue-integration/index.d.ts"
],
"./web-components-integration": [
"./web-components-integration/index.d.ts"
],
"./web-components-integration/dom": [
"./web-components-integration/dom.d.ts"
]
}
},
"dependencies": {
"vite": "*",
"css-tree": "^2.3.1",
"debounce": "^1.2.1",
"imurmurhash": "github:jensyt/imurmurhash-js",
"svgo": "^3.0.2"
},
"compatiblePackages": {
"schemaVersion": 1,
"vite": {
"type": "compatible",
"versions": ">=2.0.0"
},
"rollup": {
"type": "compatible",
"versions": "*"
},
"rolldown": {
"type": "compatible",
"versions": "*"
}
},
"peerDependencies": {
"typed-custom-elements": ">=0.0.3"
},
"peerDependenciesMeta": {
"typed-custom-elements": {
"optional": true
}
}
}