@kolkrabbi/kol-icons 0.6.1 → 0.7.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.
package/README.md
CHANGED
|
@@ -47,3 +47,20 @@ Registered icons are keyed by filename (basename), win over the packaged set (ad
|
|
|
47
47
|
```css
|
|
48
48
|
@source "../node_modules/@kolkrabbi/kol-icons/src";
|
|
49
49
|
```
|
|
50
|
+
|
|
51
|
+
(Or import `@kolkrabbi/kol-theme/kol-sources.css` once — it carries the `@source` line for every raw-JSX KOL package.)
|
|
52
|
+
|
|
53
|
+
## Vite consumers: exclude from prebundling
|
|
54
|
+
|
|
55
|
+
The icon maps are built with `import.meta.glob`, which esbuild's dependency
|
|
56
|
+
prebundling doesn't execute — a prebundled copy ships **empty maps**, and every
|
|
57
|
+
icon resolves to "not found" in dev. Exclude the package:
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
// vite.config.js
|
|
61
|
+
export default defineConfig({
|
|
62
|
+
optimizeDeps: { exclude: ['@kolkrabbi/kol-icons'] },
|
|
63
|
+
})
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Production builds are unaffected (Rollup handles the glob natively).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-icons",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "KOL icons — <Icon/>, the curated kol-icon-set-v1 + registerIcons (bring-your-own), and the legacy inventory. Vite-only (import.meta.glob).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|