vite-plugin-lucide-preprocess 1.2.4 → 1.3.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/README.md CHANGED
@@ -1,50 +1,52 @@
1
1
  # vite-plugin-lucide-preprocess
2
2
 
3
- ![NPM Version](https://img.shields.io/npm/v/vite-plugin-lucide-preprocess)
4
- ![NPM Downloads](https://img.shields.io/npm/dw/vite-plugin-lucide-preprocess)
5
- ![NPM Type Definitions](https://img.shields.io/npm/types/vite-plugin-lucide-preprocess)
6
- ![NPM License](https://img.shields.io/npm/l/vite-plugin-lucide-preprocess)
3
+ [![NPM Version](https://img.shields.io/npm/v/vite-plugin-lucide-preprocess)](https://www.npmjs.com/package/vite-plugin-lucide-preprocess?activeTab=versions)
4
+ [![NPM Downloads](https://img.shields.io/npm/dw/vite-plugin-lucide-preprocess)](https://www.npmjs.com/package/vite-plugin-lucide-preprocess)
5
+ [![NPM Type Definitions](https://img.shields.io/npm/types/vite-plugin-lucide-preprocess)](https://www.npmjs.com/package/vite-plugin-lucide-preprocess)
6
+ [![NPM License](https://img.shields.io/npm/l/vite-plugin-lucide-preprocess)](LICENSE)
7
7
 
8
- A [Vite](https://vitejs.dev) plugin to replace imports for [Lucide icons](https://lucide.dev).
8
+ A [Vite](https://vite.dev) plugin to replace imports for [Lucide icons](https://lucide.dev).
9
9
 
10
10
  ## What is this?
11
11
 
12
12
  ### Motivation
13
13
 
14
- If you want to import Lucide icons in your project, you can use two methods since
15
- [this PR on Lucide](https://github.com/lucide-icons/lucide/pull/1707) (at least for `lucide-svelte`):
14
+ If you want to import Lucide icons in your project, you can (usually — depending on
15
+ the package) use two methods:
16
16
 
17
17
  ```js
18
- import { IconName } from "lucide-svelte";
18
+ import { IconName } from "@lucide/svelte";
19
19
  // or
20
- import IconName from "lucide-svelte/icons/icon-name";
20
+ import IconName from "@lucide/svelte/icons/icon-name";
21
21
  ```
22
22
 
23
23
  While the first method is more convenient (and may be the one used by auto-import features in your editor),
24
24
  it is not tree-shakable.
25
- In fact, a single import from `"lucide-<framework>"` will import all icons, not ideal for Vite dev
26
- server performance and build time.
27
- [More information here](https://github.com/WarningImHack3r/vite-plugin-lucide-preprocess/issues/11#issuecomment-2445209558).
25
+ In fact, a single import from `"lucide-<framework>"` or `"@lucide/<framework>"`
26
+ [will import all icons](https://github.com/WarningImHack3r/vite-plugin-lucide-preprocess/issues/11#issuecomment-2445209558);
27
+ not ideal for Vite dev server performance and build time.
28
28
 
29
29
  **This plugin will replace the first method with the second one, so you can keep the convenience of the first method
30
30
  while benefiting from tree-shaking optimizations.** “Correct” imports will be kept as-is.
31
31
 
32
32
  > [!NOTE]
33
- > The plugin is primarily intended for `lucide-svelte`, but it should work with
34
- > any Lucide package using Vite if they follow the same structure.
33
+ > The plugin is primarily intended for `@lucide/svelte`, but it works with
34
+ > any Lucide package using Vite.
35
+ > If it doesn't support a Lucide implementation,
36
+ > [please open an issue](https://github.com/WarningImHack3r/vite-plugin-lucide-preprocess).
35
37
 
36
38
  ### Credits and opinion
37
39
 
38
- I got the idea from [Phosphor Icons'
39
- optimizer](https://github.com/haruaki07/phosphor-svelte#import-optimizer-experimental).
40
- However, this plugin is written from scratch and is not based on the Phosphor one (even though the technique is
41
- essentially the same).
40
+ I got the idea from [Phosphor Icons' optimizer](https://github.com/haruaki07/phosphor-svelte#import-optimizer).
41
+ However, this plugin is written from scratch and is not based on the Phosphor one, even though the technique is
42
+ essentially the same.
42
43
 
43
- As it is a Vite plugin and not a Svelte one, it is more generic and can be used with any framework.
44
- Additionally, it doesn't suffer from the limitations of the Svelte plugin, preventing the Phosphor
44
+ Contrary to the experimental version of Phosphor Icons' implementation, this plugin is
45
+ a Vite plugin and not a Svelte one, it is more generic and can be used with any framework.
46
+ Additionally, it doesn't suffer from the limitations of the Svelte plugin, preventing the old Phosphor
45
47
  optimizer from working without disabling the native Vite optimizations of `phosphor-svelte`.
46
48
 
47
- This should subjectively be a feature embedded in Lucide itself (`lucide-svelte/preprocessor`),
49
+ This should subjectively be a feature embedded in Lucide itself (`@lucide/svelte/preprocessor`),
48
50
  but I don't know if it will ever be implemented.
49
51
  [I opened an issue](https://github.com/lucide-icons/lucide/issues/2295) on the `lucide-icons` repository to discuss
50
52
  this.
@@ -75,7 +77,7 @@ import { defineConfig } from "vite";
75
77
  import lucidePreprocess from "vite-plugin-lucide-preprocess";
76
78
 
77
79
  export default defineConfig({
78
- plugins: [lucidePreprocess(), ...]
80
+ plugins: [lucidePreprocess() /* , ... */]
79
81
  });
80
82
  ```
81
83
 
package/dist/plugin.d.ts CHANGED
@@ -1,11 +1,12 @@
1
+ /** @typedef {{ name: string; importName: string }} Module */
1
2
  /**
2
3
  * Converts a raw string of imported icons to a list of module names,
3
4
  * and a list of TypeScript types
4
5
  * @param rawModules {string} The raw string of imported icons
5
- * @return {[string[], string[]]} A list containing a list of imported icons,
6
+ * @return {[Module[], string[]]} A list containing a list of imported icons,
6
7
  * and a list of TypeScript types
7
8
  */
8
- export function rawModulesToLists(rawModules: string): [string[], string[]];
9
+ export function rawModulesToLists(rawModules: string): [Module[], string[]];
9
10
  /**
10
11
  * Converts a PascalCase icon component name to a dashed string
11
12
  * (e.g. `IconComp` to `icon-comp`)
@@ -27,6 +28,10 @@ export function frameworkImportPath(framework: string, options: Options): string
27
28
  */
28
29
  export function plugin(options?: Options): import("vite").Plugin;
29
30
  export const importsMatcher: RegExp;
31
+ export type Module = {
32
+ name: string;
33
+ importName: string;
34
+ };
30
35
  export type Options = {
31
36
  /**
32
37
  * The import type for React
@@ -1 +1 @@
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;AAED;;;;;GAKG;AACH,+CAJqB,MAAM,WACR,OAAO,GACd,MAAM,CAYjB;AAiBD;;;;GAIG;AACH,iCAHmB,OAAO,GACd,OAAO,MAAM,EAAE,MAAM,CA4ChC;AA9DD,oCAAiG"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":"AAIA,6DAA6D;AAE7D;;;;;;GAMG;AACH,8CAJsB,MAAM,GAChB,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAiB/B;AAED;;;;;GAKG;AACH,4CAHqB,MAAM,GACf,MAAM,CAgBjB;AAED;;;;;GAKG;AACH,+CAJqB,MAAM,WACR,OAAO,GACd,MAAM,CAYjB;AAkBD;;;;GAIG;AACH,iCAHmB,OAAO,GACd,OAAO,MAAM,EAAE,MAAM,CA6ChC;AAhED,oCACyF;qBAlE3E;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE"}
package/dist/plugin.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import renamedReplacementsModules from "./renamedReplacements.js";
2
2
  const ignoredPaths = ["/node_modules/", "/.svelte-kit/"];
3
+ /** @typedef {{ name: string; importName: string }} Module */
3
4
  /**
4
5
  * Converts a raw string of imported icons to a list of module names,
5
6
  * and a list of TypeScript types
6
7
  * @param rawModules {string} The raw string of imported icons
7
- * @return {[string[], string[]]} A list containing a list of imported icons,
8
+ * @return {[Module[], string[]]} A list containing a list of imported icons,
8
9
  * and a list of TypeScript types
9
10
  */
10
11
  export function rawModulesToLists(rawModules) {
@@ -13,7 +14,12 @@ export function rawModulesToLists(rawModules) {
13
14
  .map(m => m.trim())
14
15
  .filter(m => !!m);
15
16
  return [
16
- raw.filter(m => !m.startsWith("type ")),
17
+ raw
18
+ .filter(m => !m.startsWith("type "))
19
+ .map(m => {
20
+ const [original, newName] = m.split(" as ");
21
+ return { name: newName ?? original, importName: original };
22
+ }),
17
23
  raw.filter(m => m.startsWith("type ")).map(m => m.slice(5))
18
24
  ];
19
25
  }
@@ -55,7 +61,7 @@ export function frameworkImportPath(framework, options) {
55
61
  return "/icons/";
56
62
  }
57
63
  }
58
- export const importsMatcher = /^(\s*)import\s+\{([^}]*)}\s+from\s+(["'])lucide-(.*?)["'](.*)$/gm;
64
+ export const importsMatcher = /^(\s*)import\s+\{([^}]*)}\s+from\s+(["'])(lucide-|@lucide\/)(?!lab\b)(\S+)["'](.*)$/gm;
59
65
  /**
60
66
  * @typedef {Object} Options
61
67
  * @property {"cjs" | "esm"} [importMode="esm"] The import type for React
@@ -87,16 +93,17 @@ export function plugin(options = defaultOptions) {
87
93
  * @param initialSpacing {string} The spacing before the matched import statement
88
94
  * @param modulesStr {string} The imported icons as a raw string
89
95
  * @param quote {string} The quote used in the import statement (either ' or ")
96
+ * @param importStyle {string} The method the icons are imported with
90
97
  * @param framework {string} The framework the icons are imported for
91
98
  * @param lineEnding {string} The end of the line of the matched import statement (often a semicolon)
92
99
  * @return The optimized import statement(s)
93
100
  */
94
- (_, initialSpacing, modulesStr, quote, framework, lineEnding) => {
101
+ (_, initialSpacing, modulesStr, quote, importStyle, framework, lineEnding) => {
95
102
  const [modules, types] = rawModulesToLists(modulesStr);
96
103
  const moduleImports = modules
97
- .map(m => `${initialSpacing}import ${m} from ${quote}lucide-${framework}${frameworkImportPath(framework, mergedOptions)}${iconCompToDashed(m)}${quote}${lineEnding.trimEnd()}`)
104
+ .map(m => `${initialSpacing}import ${m.name} from ${quote}${importStyle}${framework}${frameworkImportPath(framework, mergedOptions)}${iconCompToDashed(m.importName)}${quote}${lineEnding.trimEnd()}`)
98
105
  .join(initialSpacing.includes("\n") ? "" : "\n");
99
- const typesImport = `${initialSpacing}import type { ${types.join(", ")} } from ${quote}lucide-${framework}${quote}${lineEnding.trimEnd()}`;
106
+ const typesImport = `${initialSpacing}import type { ${types.join(", ")} } from ${quote}${importStyle}${framework}${quote}${lineEnding.trimEnd()}`;
100
107
  return [
101
108
  types.length ? typesImport : undefined,
102
109
  modules.length ? moduleImports : undefined
@@ -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ite-plugin-lucide-preprocess",
3
- "version": "1.2.4",
3
+ "version": "1.3.1",
4
4
  "author": {
5
5
  "url": "https://github.com/WarningImHack3r",
6
6
  "name": "WarningImHack3r"
@@ -8,7 +8,7 @@
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/WarningImHack3r/vite-plugin-lucide-preprocess"
11
+ "url": "git+https://github.com/WarningImHack3r/vite-plugin-lucide-preprocess.git"
12
12
  },
13
13
  "keywords": [
14
14
  "vite",
@@ -31,12 +31,12 @@
31
31
  "vite": ">=5"
32
32
  },
33
33
  "devDependencies": {
34
- "lucide-svelte": "^0.471.0",
35
- "prettier": "^3.4.2",
36
- "publint": "^0.3.2",
37
- "typescript": "^5.7.3",
38
- "vite": "^6.0.7",
39
- "vitest": "^3.0.1"
34
+ "lucide-svelte": "^0.515.0",
35
+ "prettier": "^3.0.0",
36
+ "publint": "^0.3.0",
37
+ "typescript": "^5.0.0",
38
+ "vite": "^6.0.0",
39
+ "vitest": "^3.0.0"
40
40
  },
41
41
  "main": "./dist/index.js",
42
42
  "types": "./dist/index.d.ts",