vite-plugin-lucide-preprocess 1.0.3 → 1.1.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,6 +47,18 @@ but I don't know if it will ever be implemented.
47
47
  [I opened an issue](https://github.com/lucide-icons/lucide/issues/2295) on the `lucide-icons` repository to discuss
48
48
  this.
49
49
 
50
+ ## Auto-updater
51
+
52
+ As of version 1.1.0, the plugin includes an auto-updater.
53
+ It helps support the renamed and deprecated icons by automatically updating the plugin when necessary.
54
+
55
+ If you use a recently deprecated icon and can't make your build work, please wait for a few hours for the plugin
56
+ to update itself.
57
+ If the issue persists, please open an issue on this repository.
58
+
59
+ More information about the auto-updater can be found
60
+ in https://github.com/WarningImHack3r/vite-plugin-lucide-preprocess/pull/6.
61
+
50
62
  ## Installation
51
63
 
52
64
  Install the plugin with your package manager of choice:
package/dist/plugin.d.ts CHANGED
@@ -10,9 +10,13 @@ export function rawModulesToLists(rawModules: string): [string[], string[]];
10
10
  * Converts a PascalCase icon component name to a dashed string
11
11
  * (e.g. `IconComp` to `icon-comp`)
12
12
  * @param component {string} The PascalCase icon component name
13
- * @return {string} The dashed icon component name
13
+ * @return {string} The dashed icon component name, or the renamed one if it exists
14
14
  */
15
15
  export function iconCompToDashed(component: string): string;
16
- export const importsMatcher: RegExp;
16
+ /**
17
+ * The Vite plugin that preprocesses imports to optimize Lucide icons
18
+ * @return {import("vite").Plugin}
19
+ */
17
20
  export function plugin(): import("vite").Plugin;
21
+ export const importsMatcher: RegExp;
18
22
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,8CAJsB,MAAM,GAChB,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAY/B;AAED;;;;;GAKG;AACH,4CAHqB,MAAM,GACf,MAAM,CAajB;AAED,oCAAiG;AAM1F,0BAFK,OAAO,MAAM,EAAE,MAAM,CAwC/B"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,8CAJsB,MAAM,GAChB,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAY/B;AAED;;;;;GAKG;AACH,4CAHqB,MAAM,GACf,MAAM,CAgBjB;AAID;;;GAGG;AACH,0BAFY,OAAO,MAAM,EAAE,MAAM,CAwChC;AA5CD,oCAAiG"}
package/dist/plugin.js CHANGED
@@ -1,3 +1,4 @@
1
+ import renamedReplacementsModules from "./renamedReplacements.js";
1
2
  const ignoredPaths = ["/node_modules/", "/.svelte-kit/"];
2
3
  /**
3
4
  * Converts a raw string of imported icons to a list of module names,
@@ -20,55 +21,61 @@ export function rawModulesToLists(rawModules) {
20
21
  * Converts a PascalCase icon component name to a dashed string
21
22
  * (e.g. `IconComp` to `icon-comp`)
22
23
  * @param component {string} The PascalCase icon component name
23
- * @return {string} The dashed icon component name
24
+ * @return {string} The dashed icon component name, or the renamed one if it exists
24
25
  */
25
26
  export function iconCompToDashed(component) {
26
- return (component
27
+ const computedDashed = component
27
28
  .split(" ")[0] // take only the first part if there's an alias
28
29
  // transform "IconComp" to "icon-comp"
29
30
  .replace(/[A-Z\d]/g, (match, offset) => (offset > 0 ? "-" : "") + match.toLowerCase())
30
31
  // fix for NxN icons
31
32
  .replace(/(\d)x-(\d)/, (_, a, b) => `${a}x${b}`)
32
33
  // exception for ClockNN
33
- .replace(/clock-(\d)-(\d)/, (_, a, b) => `clock-${a}${b}`));
34
+ .replace(/clock-(\d)-(\d)/, (_, a, b) => `clock-${a}${b}`)
35
+ // remove the Lucide prefix
36
+ .replace(/^lucide-/, "")
37
+ // remove the "Icon" suffix
38
+ .replace(/-icon$/, "");
39
+ return renamedReplacementsModules[computedDashed] ?? computedDashed;
34
40
  }
35
41
  export const importsMatcher = /^(\s*)import\s+\{([^}]*)}\s+from\s+(["'])lucide-(.*?)["'](.*)$/gm;
36
42
  /**
37
43
  * The Vite plugin that preprocesses imports to optimize Lucide icons
38
44
  * @return {import("vite").Plugin}
39
45
  */
40
- export const plugin = () => ({
41
- name: "vite-plugin-lucide-preprocess",
42
- enforce: "pre",
43
- transform: (code, path) => {
44
- if (ignoredPaths.some(p => path.includes(p))) {
45
- return;
46
+ export function plugin() {
47
+ return {
48
+ name: "vite-plugin-lucide-preprocess",
49
+ enforce: "pre",
50
+ transform: (code, path) => {
51
+ if (ignoredPaths.some(p => path.includes(p)))
52
+ return;
53
+ return {
54
+ code: code.replace(importsMatcher,
55
+ /**
56
+ * @param _ The whole matched string
57
+ * @param initialSpacing {string} The spacing before the matched import statement
58
+ * @param modulesStr {string} The imported icons as a raw string
59
+ * @param quote {string} The quote used in the import statement (either ' or ")
60
+ * @param framework {string} The framework the icons are imported for
61
+ * @param lineEnding {string} The end of the line of the matched import statement (often a semicolon)
62
+ * @return The optimized import statement(s)
63
+ */
64
+ (_, initialSpacing, modulesStr, quote, framework, lineEnding) => {
65
+ const [modules, types] = rawModulesToLists(modulesStr);
66
+ const moduleImports = modules
67
+ .map(m => `${initialSpacing}import ${m} from ${quote}lucide-${framework}/icons/${iconCompToDashed(m)}${quote}${lineEnding.trimEnd()}`)
68
+ .join(initialSpacing.includes("\n") ? "" : "\n");
69
+ const typesImport = `${initialSpacing}import type { ${types.join(", ")} } from ${quote}lucide-${framework}${quote}${lineEnding.trimEnd()}`;
70
+ return [
71
+ types.length ? typesImport : undefined,
72
+ modules.length ? moduleImports : undefined
73
+ ]
74
+ .filter(Boolean)
75
+ .join(initialSpacing.includes("\n") ? "" : "\n");
76
+ })
77
+ };
46
78
  }
47
- return {
48
- code: code.replace(importsMatcher,
49
- /**
50
- * @param _ The whole matched string
51
- * @param initialSpacing {string} The spacing before the matched import statement
52
- * @param modulesStr {string} The imported icons as a raw string
53
- * @param quote {string} The quote used in the import statement (either ' or ")
54
- * @param framework {string} The framework the icons are imported for
55
- * @param lineEnding {string} The end of the line of the matched import statement (often a semicolon)
56
- * @return The optimized import statement(s)
57
- */
58
- (_, initialSpacing, modulesStr, quote, framework, lineEnding) => {
59
- const [modules, types] = rawModulesToLists(modulesStr);
60
- const moduleImports = modules
61
- .map(m => `${initialSpacing}import ${m} from ${quote}lucide-${framework}/icons/${iconCompToDashed(m)}${quote}${lineEnding.trimEnd()}`)
62
- .join(initialSpacing.includes("\n") ? "" : "\n");
63
- const typesImport = `${initialSpacing}import type { ${types.join(", ")} } from ${quote}lucide-${framework}${quote}${lineEnding.trimEnd()}`;
64
- return [
65
- types.length ? typesImport : undefined,
66
- modules.length ? moduleImports : undefined
67
- ]
68
- .filter(Boolean)
69
- .join(initialSpacing.includes("\n") ? "" : "\n");
70
- })
71
- };
72
- }
73
- });
79
+ };
80
+ }
74
81
  //# sourceMappingURL=plugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAAU;IAC3C,MAAM,GAAG,GAAG,UAAU;SACpB,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SAClB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACnB,OAAO;QACN,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACvC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,C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;qBAC1C;yBACC,MAAM,CAAC,OAAO,CAAC;yBACf,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBACnD,CAAC,CACD;aACD,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -0,0 +1,157 @@
1
+ declare const _default: {
2
+ "alarm-check": string;
3
+ "alarm-minus": string;
4
+ "alarm-plus": string;
5
+ "arrow-down-az": string;
6
+ "sort-desc": string;
7
+ "arrow-down-za": string;
8
+ "arrow-up-az": string;
9
+ "sort-asc": string;
10
+ "arrow-up-za": string;
11
+ "axis-3-d": string;
12
+ verified: string;
13
+ "book-template": string;
14
+ "curly-braces": string;
15
+ subtitles: string;
16
+ "alert-circle": string;
17
+ "arrow-down-circle": string;
18
+ "arrow-left-circle": string;
19
+ "arrow-down-left-from-circle": string;
20
+ "arrow-down-right-from-circle": string;
21
+ "arrow-up-left-from-circle": string;
22
+ "arrow-up-right-from-circle": string;
23
+ "arrow-right-circle": string;
24
+ "arrow-up-circle": string;
25
+ "check-circle": string;
26
+ "check-circle-2": string;
27
+ "chevron-down-circle": string;
28
+ "chevron-left-circle": string;
29
+ "chevron-right-circle": string;
30
+ "chevron-up-circle": string;
31
+ "divide-circle": string;
32
+ "gauge-circle": string;
33
+ "help-circle": string;
34
+ "minus-circle": string;
35
+ "parking-circle-off": string;
36
+ "parking-circle": string;
37
+ "pause-circle": string;
38
+ "percent-circle": string;
39
+ "play-circle": string;
40
+ "plus-circle": string;
41
+ "power-circle": string;
42
+ "circle-slashed": string;
43
+ "stop-circle": string;
44
+ "user-circle": string;
45
+ "x-circle": string;
46
+ "clipboard-signature": string;
47
+ "clipboard-edit": string;
48
+ "download-cloud": string;
49
+ "upload-cloud": string;
50
+ columns: string;
51
+ "panels-left-right": string;
52
+ "percent-diamond": string;
53
+ "more-vertical": string;
54
+ "more-horizontal": string;
55
+ "file-axis-3-d": string;
56
+ "file-signature": string;
57
+ "file-edit": string;
58
+ "folder-edit": string;
59
+ "git-commit": string;
60
+ "grid-2-x-2": string;
61
+ grid: string;
62
+ "grid-3-x-3": string;
63
+ "helping-hand": string;
64
+ home: string;
65
+ "ice-cream": string;
66
+ outdent: string;
67
+ indent: string;
68
+ "loader-2": string;
69
+ "unlock-keyhole": string;
70
+ unlock: string;
71
+ "move-3-d": string;
72
+ "alert-octagon": string;
73
+ "pause-octagon": string;
74
+ "x-octagon": string;
75
+ "paintbrush-2": string;
76
+ "panel-bottom-inactive": string;
77
+ "sidebar-close": string;
78
+ "panel-left-inactive": string;
79
+ "sidebar-open": string;
80
+ sidebar: string;
81
+ "panel-right-inactive": string;
82
+ "panel-top-inactive": string;
83
+ layout: string;
84
+ "plug-zap-2": string;
85
+ "form-input": string;
86
+ "rotate-3-d": string;
87
+ rows: string;
88
+ "panels-top-bottom": string;
89
+ "scale-3-d": string;
90
+ "shield-close": string;
91
+ sliders: string;
92
+ stars: string;
93
+ "activity-square": string;
94
+ "arrow-down-left-square": string;
95
+ "arrow-down-right-square": string;
96
+ "arrow-down-square": string;
97
+ "arrow-left-square": string;
98
+ "arrow-down-left-from-square": string;
99
+ "arrow-down-right-from-square": string;
100
+ "arrow-up-left-from-square": string;
101
+ "arrow-up-right-from-square": string;
102
+ "arrow-right-square": string;
103
+ "arrow-up-left-square": string;
104
+ "arrow-up-right-square": string;
105
+ "arrow-up-square": string;
106
+ "asterisk-square": string;
107
+ "scissors-square-dashed-bottom": string;
108
+ "gantt-chart-square": string;
109
+ "square-gantt-chart": string;
110
+ "check-square": string;
111
+ "check-square-2": string;
112
+ "chevron-down-square": string;
113
+ "chevron-left-square": string;
114
+ "chevron-right-square": string;
115
+ "chevron-up-square": string;
116
+ "code-square": string;
117
+ "kanban-square-dashed": string;
118
+ "mouse-pointer-square-dashed": string;
119
+ "divide-square": string;
120
+ "dot-square": string;
121
+ "equal-square": string;
122
+ "function-square": string;
123
+ "kanban-square": string;
124
+ "library-square": string;
125
+ "m-square": string;
126
+ "menu-square": string;
127
+ "minus-square": string;
128
+ inspect: string;
129
+ "parking-square-off": string;
130
+ "parking-square": string;
131
+ "pen-box": string;
132
+ edit: string;
133
+ "pen-square": string;
134
+ "percent-square": string;
135
+ "pi-square": string;
136
+ "pilcrow-square": string;
137
+ "play-square": string;
138
+ "plus-square": string;
139
+ "power-square": string;
140
+ "scissors-square": string;
141
+ "sigma-square": string;
142
+ "slash-square": string;
143
+ "split-square-horizontal": string;
144
+ "split-square-vertical": string;
145
+ "terminal-square": string;
146
+ "user-square": string;
147
+ "x-square": string;
148
+ "test-tube-2": string;
149
+ "text-selection": string;
150
+ train: string;
151
+ palmtree: string;
152
+ "alert-triangle": string;
153
+ "fork-knife-crossed": string;
154
+ "fork-knife": string;
155
+ };
156
+ export default _default;
157
+ //# sourceMappingURL=renamedReplacements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renamedReplacements.d.ts","sourceRoot":"","sources":["../src/renamedReplacements.js"],"names":[],"mappings":""}
@@ -0,0 +1,156 @@
1
+ export default {
2
+ "alarm-check": "alarm-clock-check",
3
+ "alarm-minus": "alarm-clock-minus",
4
+ "alarm-plus": "alarm-clock-plus",
5
+ "arrow-down-az": "arrow-down-a-z",
6
+ "sort-desc": "arrow-down-wide-narrow",
7
+ "arrow-down-za": "arrow-down-z-a",
8
+ "arrow-up-az": "arrow-up-a-z",
9
+ "sort-asc": "arrow-up-narrow-wide",
10
+ "arrow-up-za": "arrow-up-z-a",
11
+ "axis-3-d": "axis-3d",
12
+ verified: "badge-check",
13
+ "book-template": "book-dashed",
14
+ "curly-braces": "braces",
15
+ subtitles: "captions",
16
+ "alert-circle": "circle-alert",
17
+ "arrow-down-circle": "circle-arrow-down",
18
+ "arrow-left-circle": "circle-arrow-left",
19
+ "arrow-down-left-from-circle": "circle-arrow-out-down-left",
20
+ "arrow-down-right-from-circle": "circle-arrow-out-down-right",
21
+ "arrow-up-left-from-circle": "circle-arrow-out-up-left",
22
+ "arrow-up-right-from-circle": "circle-arrow-out-up-right",
23
+ "arrow-right-circle": "circle-arrow-right",
24
+ "arrow-up-circle": "circle-arrow-up",
25
+ "check-circle": "circle-check-big",
26
+ "check-circle-2": "circle-check",
27
+ "chevron-down-circle": "circle-chevron-down",
28
+ "chevron-left-circle": "circle-chevron-left",
29
+ "chevron-right-circle": "circle-chevron-right",
30
+ "chevron-up-circle": "circle-chevron-up",
31
+ "divide-circle": "circle-divide",
32
+ "gauge-circle": "circle-gauge",
33
+ "help-circle": "circle-help",
34
+ "minus-circle": "circle-minus",
35
+ "parking-circle-off": "circle-parking-off",
36
+ "parking-circle": "circle-parking",
37
+ "pause-circle": "circle-pause",
38
+ "percent-circle": "circle-percent",
39
+ "play-circle": "circle-play",
40
+ "plus-circle": "circle-plus",
41
+ "power-circle": "circle-power",
42
+ "circle-slashed": "circle-slash-2",
43
+ "stop-circle": "circle-stop",
44
+ "user-circle": "circle-user",
45
+ "x-circle": "circle-x",
46
+ "clipboard-signature": "clipboard-pen-line",
47
+ "clipboard-edit": "clipboard-pen",
48
+ "download-cloud": "cloud-download",
49
+ "upload-cloud": "cloud-upload",
50
+ columns: "columns-2",
51
+ "panels-left-right": "columns-3",
52
+ "percent-diamond": "diamond-percent",
53
+ "more-vertical": "ellipsis-vertical",
54
+ "more-horizontal": "ellipsis",
55
+ "file-axis-3-d": "file-axis-3d",
56
+ "file-signature": "file-pen-line",
57
+ "file-edit": "file-pen",
58
+ "folder-edit": "folder-pen",
59
+ "git-commit": "git-commit-horizontal",
60
+ "grid-2-x-2": "grid-2x2",
61
+ grid: "grid-3x3",
62
+ "grid-3-x-3": "grid-3x3",
63
+ "helping-hand": "hand-helping",
64
+ home: "house",
65
+ "ice-cream": "ice-cream-cone",
66
+ outdent: "indent-decrease",
67
+ indent: "indent-increase",
68
+ "loader-2": "loader-circle",
69
+ "unlock-keyhole": "lock-keyhole-open",
70
+ unlock: "lock-open",
71
+ "move-3-d": "move-3d",
72
+ "alert-octagon": "octagon-alert",
73
+ "pause-octagon": "octagon-pause",
74
+ "x-octagon": "octagon-x",
75
+ "paintbrush-2": "paintbrush-vertical",
76
+ "panel-bottom-inactive": "panel-bottom-dashed",
77
+ "sidebar-close": "panel-left-close",
78
+ "panel-left-inactive": "panel-left-dashed",
79
+ "sidebar-open": "panel-left-open",
80
+ sidebar: "panel-left",
81
+ "panel-right-inactive": "panel-right-dashed",
82
+ "panel-top-inactive": "panel-top-dashed",
83
+ layout: "panels-top-left",
84
+ "plug-zap-2": "plug-zap",
85
+ "form-input": "rectangle-ellipsis",
86
+ "rotate-3-d": "rotate-3d",
87
+ rows: "rows-2",
88
+ "panels-top-bottom": "rows-3",
89
+ "scale-3-d": "scale-3d",
90
+ "shield-close": "shield-x",
91
+ sliders: "sliders-vertical",
92
+ stars: "sparkles",
93
+ "activity-square": "square-activity",
94
+ "arrow-down-left-square": "square-arrow-down-left",
95
+ "arrow-down-right-square": "square-arrow-down-right",
96
+ "arrow-down-square": "square-arrow-down",
97
+ "arrow-left-square": "square-arrow-left",
98
+ "arrow-down-left-from-square": "square-arrow-out-down-left",
99
+ "arrow-down-right-from-square": "square-arrow-out-down-right",
100
+ "arrow-up-left-from-square": "square-arrow-out-up-left",
101
+ "arrow-up-right-from-square": "square-arrow-out-up-right",
102
+ "arrow-right-square": "square-arrow-right",
103
+ "arrow-up-left-square": "square-arrow-up-left",
104
+ "arrow-up-right-square": "square-arrow-up-right",
105
+ "arrow-up-square": "square-arrow-up",
106
+ "asterisk-square": "square-asterisk",
107
+ "scissors-square-dashed-bottom": "square-bottom-dashed-scissors",
108
+ "gantt-chart-square": "square-chart-gantt",
109
+ "square-gantt-chart": "square-chart-gantt",
110
+ "check-square": "square-check-big",
111
+ "check-square-2": "square-check",
112
+ "chevron-down-square": "square-chevron-down",
113
+ "chevron-left-square": "square-chevron-left",
114
+ "chevron-right-square": "square-chevron-right",
115
+ "chevron-up-square": "square-chevron-up",
116
+ "code-square": "square-code",
117
+ "kanban-square-dashed": "square-dashed-kanban",
118
+ "mouse-pointer-square-dashed": "square-dashed-mouse-pointer",
119
+ "divide-square": "square-divide",
120
+ "dot-square": "square-dot",
121
+ "equal-square": "square-equal",
122
+ "function-square": "square-function",
123
+ "kanban-square": "square-kanban",
124
+ "library-square": "square-library",
125
+ "m-square": "square-m",
126
+ "menu-square": "square-menu",
127
+ "minus-square": "square-minus",
128
+ inspect: "square-mouse-pointer",
129
+ "parking-square-off": "square-parking-off",
130
+ "parking-square": "square-parking",
131
+ "pen-box": "square-pen",
132
+ edit: "square-pen",
133
+ "pen-square": "square-pen",
134
+ "percent-square": "square-percent",
135
+ "pi-square": "square-pi",
136
+ "pilcrow-square": "square-pilcrow",
137
+ "play-square": "square-play",
138
+ "plus-square": "square-plus",
139
+ "power-square": "square-power",
140
+ "scissors-square": "square-scissors",
141
+ "sigma-square": "square-sigma",
142
+ "slash-square": "square-slash",
143
+ "split-square-horizontal": "square-split-horizontal",
144
+ "split-square-vertical": "square-split-vertical",
145
+ "terminal-square": "square-terminal",
146
+ "user-square": "square-user",
147
+ "x-square": "square-x",
148
+ "test-tube-2": "test-tube-diagonal",
149
+ "text-selection": "text-select",
150
+ train: "tram-front",
151
+ palmtree: "tree-palm",
152
+ "alert-triangle": "triangle-alert",
153
+ "fork-knife-crossed": "utensils-crossed",
154
+ "fork-knife": "utensils"
155
+ };
156
+ //# sourceMappingURL=renamedReplacements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renamedReplacements.js","sourceRoot":"","sources":["../src/renamedReplacements.js"],"names":[],"mappings":"AAAA,eAAe;IACd,aAAa,EAAE,mBAAmB;IAClC,aAAa,EAAE,mBAAmB;IAClC,YAAY,EAAE,kBAAkB;IAChC,eAAe,EAAE,gBAAgB;IACjC,WAAW,EAAE,wBAAwB;IACrC,eAAe,EAAE,gBAAgB;IACjC,aAAa,EAAE,cAAc;IAC7B,UAAU,EAAE,sBAAsB;IAClC,aAAa,EAAE,cAAc;IAC7B,UAAU,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AE,oBAAoB;IACnC,gBAAgB,EAAE,aAAa;IAC/B,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,WAAW;IACrB,gBAAgB,EAAE,gBAAgB;IAClC,oBAAoB,EAAE,kBAAkB;IACxC,YAAY,EAAE,UAAU;CACxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-lucide-preprocess",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "author": {
5
5
  "url": "https://github.com/WarningImHack3r",
6
6
  "name": "WarningImHack3r"
@@ -31,12 +31,12 @@
31
31
  "vite": "^5"
32
32
  },
33
33
  "devDependencies": {
34
- "lucide-svelte": "^0.427.0",
34
+ "lucide-svelte": "^0.441.0",
35
35
  "prettier": "^3.3.3",
36
- "publint": "^0.2.9",
37
- "typescript": "^5.5.4",
38
- "vite": "^5.4.0",
39
- "vitest": "^2.0.5"
36
+ "publint": "^0.2.10",
37
+ "typescript": "^5.6.2",
38
+ "vite": "^5.4.5",
39
+ "vitest": "^2.1.1"
40
40
  },
41
41
  "main": "./dist/index.js",
42
42
  "types": "./dist/index.d.ts",