@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.6.1",
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",
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M6 6L20 20M20 20H6M20 20V6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>