react-icons-sprite 0.8.0-rc.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,8 @@ const DEFAULT_ICON_SOURCES = [
|
|
|
24
24
|
/^devicons-react$/,
|
|
25
25
|
/^@fortawesome\/react-fontawesome$/,
|
|
26
26
|
/^@fortawesome\/[\w-]+-svg-icons$/,
|
|
27
|
-
/^@mui\/icons-material(?:\/.*)
|
|
27
|
+
/^@mui\/icons-material(?:\/.*)?$/,
|
|
28
|
+
/^@carbon\/icons-react$/
|
|
28
29
|
];
|
|
29
30
|
const sourceMatchesSupported = (source, sources = DEFAULT_ICON_SOURCES) => sources.some((re) => re.test(source));
|
|
30
31
|
const normalizeAlias = (pack) => {
|
|
@@ -211,6 +212,7 @@ const resolveSpecificImportPath = (pack, exportName) => {
|
|
|
211
212
|
if (/^@tabler\/icons-react$/.test(pack)) return `${pack}/dist/esm/icons/${exportName}.mjs`;
|
|
212
213
|
if (/^react-feather$/.test(pack)) return `${pack}/dist/icons/${toKebab(exportName)}`;
|
|
213
214
|
if (/^react-bootstrap-icons$/.test(pack)) return `${pack}/dist/icons/${toKebab(exportName)}`;
|
|
215
|
+
if (/^@carbon\/icons-react$/.test(pack)) return `${pack}/lib/${exportName}.js`;
|
|
214
216
|
return null;
|
|
215
217
|
};
|
|
216
218
|
const renderOneIcon = async (pack, exportName) => {
|
package/dist/vite/plugin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { REACT_ICONS_SPRITE_URL_PLACEHOLDER } from "../index.mjs";
|
|
2
|
-
import { i as transformModule, n as buildSprite, r as createCollector, t as DEFAULT_ICON_SOURCES } from "../core-
|
|
2
|
+
import { i as transformModule, n as buildSprite, r as createCollector, t as DEFAULT_ICON_SOURCES } from "../core-C637uIv9.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
//#region src/vite/plugin.ts
|
|
5
5
|
const reactIconsSprite = (options = {}) => {
|
package/dist/webpack/loader.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as transformModule } from "../core-
|
|
2
|
-
import { t as collector } from "../collector-
|
|
1
|
+
import { i as transformModule } from "../core-C637uIv9.mjs";
|
|
2
|
+
import { t as collector } from "../collector-D8c_jwWT.mjs";
|
|
3
3
|
//#region src/webpack/loader.ts
|
|
4
4
|
const reactIconsSpriteLoader = async function(source) {
|
|
5
5
|
if (this.mode === "development") return source;
|
package/dist/webpack/plugin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { REACT_ICONS_SPRITE_URL_PLACEHOLDER } from "../index.mjs";
|
|
2
|
-
import { n as buildSprite } from "../core-
|
|
3
|
-
import { t as collector } from "../collector-
|
|
2
|
+
import { n as buildSprite } from "../core-C637uIv9.mjs";
|
|
3
|
+
import { t as collector } from "../collector-D8c_jwWT.mjs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
//#region src/webpack/plugin.ts
|
|
6
6
|
var ReactIconsSpriteWebpackPlugin = class {
|
package/package.json
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/package.json",
|
|
2
3
|
"name": "react-icons-sprite",
|
|
3
|
-
"version": "0.8.0
|
|
4
|
+
"version": "0.8.0",
|
|
4
5
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
"description": "",
|
|
6
|
+
"description": "A lightweight Vite and Webpack plugin for react-icons that builds a single SVG sprite and rewrites icons to <use>, reducing bundle size and runtime overhead.",
|
|
7
7
|
"author": "Jure Rotar <hello@jurerotar.com>",
|
|
8
|
-
"homepage": "https://github.com/jurerotar/react-icons-sprite#
|
|
8
|
+
"homepage": "https://github.com/jurerotar/react-icons-sprite#readme",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/jurerotar/react-icons-sprite.git",
|
|
16
|
+
"directory": "packages/react-icons-sprite"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/jurerotar/react-icons-sprite/issues"
|
|
20
|
+
},
|
|
9
21
|
"main": "dist/index.mjs",
|
|
10
22
|
"module": "dist/index.mjs",
|
|
11
23
|
"types": "dist/index.d.mts",
|
|
@@ -33,16 +45,6 @@
|
|
|
33
45
|
"default": "./dist/webpack/loader.mjs"
|
|
34
46
|
}
|
|
35
47
|
},
|
|
36
|
-
"publishConfig": {
|
|
37
|
-
"access": "public"
|
|
38
|
-
},
|
|
39
|
-
"repository": {
|
|
40
|
-
"type": "git",
|
|
41
|
-
"url": "git+https://github.com/jurerotar/react-icons-sprite.git"
|
|
42
|
-
},
|
|
43
|
-
"bugs": {
|
|
44
|
-
"url": "https://github.com/jurerotar/react-icons-sprite/issues"
|
|
45
|
-
},
|
|
46
48
|
"files": [
|
|
47
49
|
"dist"
|
|
48
50
|
],
|
|
@@ -54,7 +56,7 @@
|
|
|
54
56
|
"lint": "biome lint --write --no-errors-on-unmatched",
|
|
55
57
|
"lint:check": "biome lint --no-errors-on-unmatched",
|
|
56
58
|
"type-check": "tsgo",
|
|
57
|
-
"test": "vitest
|
|
59
|
+
"test": "vitest",
|
|
58
60
|
"prepublishOnly": "npm run build",
|
|
59
61
|
"release": "npm publish --access public"
|
|
60
62
|
},
|
|
@@ -69,17 +71,19 @@
|
|
|
69
71
|
"@babel/types": "7.29.0"
|
|
70
72
|
},
|
|
71
73
|
"devDependencies": {
|
|
74
|
+
"@carbon/icons-react": "11.76.0",
|
|
72
75
|
"@types/babel__generator": "7.27.0",
|
|
73
76
|
"@types/babel__traverse": "7.28.0",
|
|
74
|
-
"@types/node": "25.
|
|
77
|
+
"@types/node": "25.5.0",
|
|
75
78
|
"@types/react-dom": "19.2.3",
|
|
76
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
79
|
+
"@typescript/native-preview": "7.0.0-dev.20260311.1",
|
|
77
80
|
"react": "19.2.4",
|
|
78
81
|
"react-dom": "19.2.4",
|
|
79
|
-
"tsdown": "0.21.
|
|
82
|
+
"tsdown": "0.21.2",
|
|
80
83
|
"typescript": "5.9.3",
|
|
81
|
-
"vite": "7.3.1",
|
|
82
|
-
"
|
|
84
|
+
"vite": "npm:rolldown-vite@7.3.1",
|
|
85
|
+
"rolldown-vite": "7.3.1",
|
|
86
|
+
"vitest": "4.1.0",
|
|
83
87
|
"webpack": "5.105.4"
|
|
84
88
|
},
|
|
85
89
|
"keywords": [
|
|
@@ -93,6 +97,21 @@
|
|
|
93
97
|
"rollup",
|
|
94
98
|
"rolldown",
|
|
95
99
|
"react-icons",
|
|
100
|
+
"lucide-react",
|
|
101
|
+
"@radix-ui/react-icons",
|
|
102
|
+
"@heroicons/react",
|
|
103
|
+
"@tabler/icons-react",
|
|
104
|
+
"phosphor-react",
|
|
105
|
+
"@phosphor-icons/react",
|
|
106
|
+
"react-feather",
|
|
107
|
+
"react-bootstrap-icons",
|
|
108
|
+
"grommet-icons",
|
|
109
|
+
"@remixicon/react",
|
|
110
|
+
"devicons-react",
|
|
111
|
+
"@fortawesome/react-fontawesome",
|
|
112
|
+
"@fortawesome/free-solid-svg-icons",
|
|
113
|
+
"@mui/icons-material",
|
|
114
|
+
"@carbon/icons-react",
|
|
96
115
|
"react",
|
|
97
116
|
"icons",
|
|
98
117
|
"svg",
|