vite-plugin-lucide-preprocess 1.5.0 → 1.5.1
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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/plugin.d.ts +15 -15
- package/dist/plugin.d.ts.map +1 -1
- package/dist/renamedReplacements.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;eAEtB,MAAM"}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export type Module = {
|
|
2
|
+
name: string;
|
|
3
|
+
importName: string;
|
|
4
|
+
};
|
|
1
5
|
/** @typedef {{ name: string; importName: string }} Module */
|
|
2
6
|
/**
|
|
3
7
|
* Converts a raw string of imported icons to a list of module names,
|
|
@@ -6,36 +10,32 @@
|
|
|
6
10
|
* @return {[Module[], Module[]]} A list containing a list of imported icons,
|
|
7
11
|
* and a list of TypeScript types
|
|
8
12
|
*/
|
|
9
|
-
export function rawModulesToLists(rawModules: string): [Module[], Module[]];
|
|
13
|
+
export declare function rawModulesToLists(rawModules: string): [Module[], Module[]];
|
|
10
14
|
/**
|
|
11
15
|
* Converts a PascalCase icon component name to a dashed string
|
|
12
16
|
* (e.g. `IconComp` to `icon-comp`)
|
|
13
17
|
* @param component {string} The PascalCase icon component name
|
|
14
18
|
* @return {string} The dashed icon component name, or the renamed one if it exists
|
|
15
19
|
*/
|
|
16
|
-
export function iconCompToDashed(component: string): string;
|
|
20
|
+
export declare function iconCompToDashed(component: string): string;
|
|
17
21
|
/**
|
|
18
22
|
* Returns the import path for a specific Lucide framework
|
|
19
23
|
* @param framework {string} The Lucide framework
|
|
20
24
|
* @param options {Options} The plugin options
|
|
21
25
|
* @return {string} The import path for the Lucide framework
|
|
22
26
|
*/
|
|
23
|
-
export function frameworkImportPath(framework: string, options: Options): string;
|
|
24
|
-
|
|
25
|
-
* The Vite plugin that preprocesses imports to optimize Lucide icons
|
|
26
|
-
* @param options {Options} The plugin options
|
|
27
|
-
* @return {import("vite").Plugin}
|
|
28
|
-
*/
|
|
29
|
-
export function plugin(options?: Options): import("vite").Plugin;
|
|
30
|
-
export const importsMatcher: RegExp;
|
|
31
|
-
export type Module = {
|
|
32
|
-
name: string;
|
|
33
|
-
importName: string;
|
|
34
|
-
};
|
|
27
|
+
export declare function frameworkImportPath(framework: string, options: Options): string;
|
|
28
|
+
export declare const importsMatcher: RegExp;
|
|
35
29
|
export type Options = {
|
|
36
30
|
/**
|
|
37
31
|
* The import type for CJS-compatible frameworks
|
|
38
32
|
*/
|
|
39
|
-
importMode?: "cjs" | "esm"
|
|
33
|
+
importMode?: "cjs" | "esm";
|
|
40
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* The Vite plugin that preprocesses imports to optimize Lucide icons
|
|
37
|
+
* @param options {Options} The plugin options
|
|
38
|
+
* @return {import("vite").Plugin}
|
|
39
|
+
*/
|
|
40
|
+
export declare function plugin(options?: Options): import("vite").Plugin;
|
|
41
41
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":"AAMI,YAAgD,MAAM,GAA5C;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAQ;AAA1D,6DAA6D;AAE7D;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAJtB,MAIsB,GAHhC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAsB/B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAHrB,MAGqB,GAF9B,MAAM,CAgBjB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAJxB,MAIwB,EAAE,OAAO,EAHnC,OAGmC,GAF1C,MAAM,CAYjB;AAED,eAAO,MAAM,cAAc,QAC6D,CAAC;AAGtF,YAAkB,OAAO,GACzB;;;;IAA2B,UAAU,AAArC,CACF,EADa,KAAK,GAAG,KAAK,CAC1B;CAAA,CAAA;AAUD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,GAHX,OAG4B,GAFnC,OAAO,MAAM,EAAE,MAAM,CAuEhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renamedReplacements.d.ts","sourceRoot":"","sources":["../src/renamedReplacements.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"renamedReplacements.d.ts","sourceRoot":"","sources":["../src/renamedReplacements.js"],"names":[],"mappings":";IACC,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,YAAY;IACZ,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,eAAe;IACf,mBAAmB;IACnB,6BAA6B;IAC7B,6BAA6B;IAC7B,wBAAwB;IACxB,8BAA8B;IAC9B,8BAA8B;IAC9B,yBAAyB;IACzB,mBAAmB;IACnB,eAAe;IACf,mBAAmB;IACnB,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;IACpB,aAAa;IACb,iBAAiB;IACjB,2BAA2B;IAC3B,2BAA2B;IAC3B,sBAAsB;IACtB,4BAA4B;IAC5B,4BAA4B;IAC5B,uBAAuB;IACvB,iBAAiB;IACjB,aAAa;IACb,iBA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Q;IACR,KAAK;IACL,WAAW;IACX,UAAU;IACV,WAAW;IACX,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-lucide-preprocess",
|
|
3
3
|
"description": "A Vite plugin to tree-shake your Lucide icons.",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"url": "https://github.com/WarningImHack3r",
|
|
7
7
|
"name": "WarningImHack3r"
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"magic-string": "^0.
|
|
52
|
+
"magic-string": "^1.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@lucide/svelte": "^1.14.0",
|
|
56
56
|
"prettier": "^3.0.0",
|
|
57
57
|
"publint": "^0.3.0",
|
|
58
|
-
"typescript": "^
|
|
58
|
+
"typescript": "^7.0.0",
|
|
59
59
|
"vite": "^8.0.0",
|
|
60
60
|
"vitest": "^4.0.0"
|
|
61
61
|
},
|