Skip to content
PluginStats

vite-plugin-lucide-preprocess weekly downloads statistics

By WarningImHack3r · npm · Vite plugins

A Vite plugin to tree-shake your Lucide icons.

View on npm Fresh · Oct 17, 2026

vite-plugin-lucide-preprocess has 3,188 recorded weekly downloads on npm, a decrease of 48.0% over the past 30 days.

It ranks #1192 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -66.4%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
3,188
Official API · Oct 17, 2026
7-day growth
-52.0%
-3.5K weekly downloads
30-day growth
-48.0%
-2.9K weekly downloads
90-day growth
-66.4%
-6.3K weekly downloads
Rank
#1192
Among tracked npm listings

About vite-plugin-lucide-preprocess

vite-plugin-lucide-preprocess

A Vite plugin to tree-shake your Lucide icons.

What is this?

If you want to import Lucide icons in your project, you can (usually — depending on the package) use two methods:

While the first method is more convenient (and may be the one used by auto-import features in your editor), it is not tree-shakable. In fact, a single import from "lucide-" or "@lucide/" will import all icons; not ideal for Vite dev server performance and build time.

**This plugin will replace the first method with the second one, so you can keep the convenience of the first method while benefiting from tree-shaking optimizations.** “Correct” imports will be kept as-is.

[!NOTE] The plugin is primarily intended for @lucide/svelte, but it works with any Lucide package using Vite. If it doesn't support a Lucide implementation, please open an issue.

Credits and opinion

I got the idea from Phosphor Icons' optimizer. However, this plugin is written from scratch and is not based on the Phosphor one, even though the technique is essentially the same.

Contrary to the experimental version of Phosphor Icons' implementation, this plugin is a Vite plugin and not a Svelte one, it is more generic and can be used with any framework. Additionally, it doesn't suffer from the limitations of the Svelte plugin, preventing the old Phosphor optimizer from working without disabling the native Vite optimizations of phosphor-svelte.

This should subjectively be a feature embedded in Lucide itself (@lucide/svelte/preprocessor), but I don't know if it will ever be implemented. I opened an issue on the lucide-icons repository to discuss this.

Auto-updater

As of version 1.1.0, the plugin includes an auto-updater. It helps support the renamed and deprecated icons by automatically updating the plugin when necessary.

If you use a recently deprecated icon and can't make your build work, please wait for a few hours for the plugin to update itself. If the problem persists, please open an issue in this repository.

More information about the auto-updater can be found in WarningImHack3r/vite-plugin-lucide-preprocess#6.

Installation

Install the plugin with your package manager of choice:

Then, add it to your vite.config.js/.ts:

[!WARNING] Make sure to add the plugin before any other preprocessors in the plugins array.

Options

The plugin optionally accepts an object with the following options:

• importMode (default: "esm"): The import mode for CommonJS-compatible frameworks. • "esm": Import the icons as ES modules. • "cjs": Import the icons as CommonJS modules.

This option is useful if you use a CommonJS-compatible framework like React or Vue. It will automatically replace the imports with the correct syntax depending on whether your framework supports CJS or not.

License

MIT

Description from the npm listing.

  • vite
  • vite-plugin
  • lucide
  • tree-shaking
  • treeshaking
  • tree-shake
  • treeshake
  • imports
  • preprocessor

Where vite-plugin-lucide-preprocess sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 60, #12 (overall #1192)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 12, #8 (overall #228)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-lucide-preprocess weekly downloads on npm, last 90 days: 3,188 weekly downloads as of Oct 17, 2026, -66.4% over 90 days.vite-plugin-lucide-preprocessWeekly downloads on npm · Last 90 days3,188downloads / week-66.4% over 90 days02K4K6K8K10K12K14K16KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
vite-plugin-lucide-preprocess weekly downloads on npm, last 90 days: 3,188 weekly downloads as of Oct 17, 2026, -66.4% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-lucide-preprocess weekly downloads growth on npm: -52.0% over 7 days, -48.0% over 30 days, -66.4% over 90 days.vite-plugin-lucide-preprocessWeekly downloads growth on npm3,188downloads / week now7-day growth-3,456 weekly downloads-52.0%30-day growth-2,938 weekly downloads-48.0%90-day growth-6,292 weekly downloads-66.4%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-lucide-preprocess weekly downloads growth on npm: -52.0% over 7 days, -48.0% over 30 days, -66.4% over 90 days.
PNG SVG

Ranking history

vite-plugin-lucide-preprocess npm ranking history: currently #1192 (by weekly downloads).vite-plugin-lucide-preprocessnpm ranking · by weekly downloads · Last 90 days#1192current rank#1190#1191#1192#1193#1194Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-lucide-preprocess npm ranking history: currently #1192 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for vite-plugin-lucide-preprocess
Date (UTC)Weekly downloadsChange vs. previous
3,188-843
4,031-428
4,459-1.7K
6,162-2K
8,1660
8,166+1.3K
6,873+229
6,644+92
6,552-16
6,568-312
6,880-372
7,252-1.4K
8,675-1.4K
10,027—

Similar npm Vite plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-lucide-preprocess. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.