Skip to content
PluginStats

vite-plugin-solid weekly downloads statistics

By solidjs (3 listings) · npm · Vite plugins

solid-js integration plugin for Vite

View on npm Fresh · Oct 18, 2026

vite-plugin-solid has 720,112 recorded weekly downloads on npm, a decrease of 20.9% over the past 30 days, ranking #223 of 2,322 tracked listings.

Weekly downloads
720,112
Official API · Oct 18, 2026
7-day growth
-34.7%
-383K weekly downloads
30-day growth
-20.9%
-190.6K weekly downloads
90-day growth
+22.4%
+131.6K weekly downloads
Rank
#223
Among tracked npm listings

About vite-plugin-solid

<p> <img width="100%" src="https://raw.githubusercontent.com/solidjs/vite-plugin-solid/master/banner.png" alt="Solid Vite Plugin"> </p>

⚡ vite-plugin-solid

A simple integration to run solid-js with vite

<img alt="HMR gif demonstrationdemodemodemo" src=".github/hmr.gif">

Got a question? / Need help?

Join solid discord and check the troubleshooting section to see if your question hasn't been already answered.

Features

  • HMR with no configuration needed
  • Drop-in installation as a vite plugin
  • Minimal bundle size
  • Support typescript (.tsx) out of the box
  • Support code splitting out of the box

Requirements

This module 100% ESM compatible and requires NodeJS 14.18.0 or later.

You can check your current version of NodeJS by typing node -v in your terminal. If your version is below that one version I'd encourage you to either do an update globally or use a NodeJS version management tool such as Volta or nvm.

Quickstart

You can use the vite-template-solid starter templates similar to CRA:

$ npx degit solidjs/templates/js my-solid-project
$ cd my-solid-project
$ npm install # or pnpm install or yarn install
$ npm run start # starts dev-server with hot-module-reloading
$ npm run build # builds to /dist

Installation

Install vite, vite-plugin-solid as dev dependencies.

Install solid-js as dependency.

You have to install those so that you are in control to which solid version is used to compile your code.

# with npm
$ npm install -D vite vite-plugin-solid
$ npm install solid-js

# with pnpm
$ pnpm add -D vite vite-plugin-solid
$ pnpm add solid-js

# with yarn
$ yarn add -D vite vite-plugin-solid
$ yarn add solid-js

Add it as plugin to vite.config.js

// vite.config.ts
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';

export default defineConfig({
  plugins: [solidPlugin()],
});

Run

Just use regular vite or vite build commands

{
  "scripts": {
    "dev": "vite",
    "build": "vite build"
  }
}

API

options
  • Type: Object
  • Default: {}
options.include
  • Type: (string | RegExp)[] | string | RegExp | null
  • Default: undefined

A picomatch pattern, or array of patterns, which specifies the files the plugin should operate on.

options.exclude
  • Type: (string | RegExp)[] | string | RegExp | null
  • Default: undefined

A picomatch pattern, or array of patterns, which specifies the files to be ignored by the plugin.

options.dev
  • Type: Boolean
  • Default: true

This will inject solid-js/dev in place of solid-js in dev mode. Has no effect in prod. If set to false, it won't inject it in dev. This is useful for extra logs and debug.

options.hot
  • Type: Boolean
  • Default: true

This will inject HMR runtime in dev mode. Has no effect in prod. If set to false, it won't inject the runtime in dev.

options.ssr
  • Type: Boolean
  • Default: false

This will force SSR code in the produced files.

options.babel
  • Type: Babel.TransformOptions
  • Default: {}

Pass any additional babel transform options. Those will be merged with the transformations required by Solid.

options.solid

Pass any additional babel-plugin-jsx-dom-expressions. They will be merged with the defaults sets by babel-preset-solid.

options.typescript

Pass any additional @babel/preset-typescript.

options.extensions
  • Type: (string, [string, { typescript: boolean }])[]
  • Default: []

An array of custom extension that will be passed through the solid compiler. By default, the plugin only transform jsx and tsx files. This is useful if you want to transform mdx files for example.

Note on HMR

Starting from version 1.1.0, this plugin handle automatic HMR via solid-refresh.

At this stage it's still early work but provide basic HMR. In order to get the best out of it there are couple of things to keep in mind:

  • When you modify a file every state below this component will be reset to default state (including the current file). The state in parent component is preserved.

  • The entrypoint can't benefit from HMR yet and will force a hard reload of the entire app. This is still really fast thanks to browser caching.

If at least one of this point is blocking to you, you can revert to the old behavior by opting out the automatic HMR and placing the following snippet in your entry point:

const dispose = render(() => <App />, document.body);

if (import.meta.hot) {
  import.meta.hot.accept();
  import.meta.hot.dispose(dispose);
}

Troubleshooting

  • It appears that Webstorm generate some weird triggers when saving a file. In order to prevent that you can follow this thread and disable the "Safe Write" option in "Settings | Appearance & Behavior | System Settings".…

Description from the npm listing.

  • vite
  • vite plugin
  • vitejs
  • vitejs plugin
  • vite-plugin
  • solid

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

vite-plugin-solid weekly downloads on npm, last 90 days: 720,112 weekly downloads as of Oct 18, 2026, +22.4% over 90 days.vite-plugin-solidWeekly downloads on npm · Last 90 days720,112downloads / week+22.4% over 90 days400K600K800K1M1.2M1.4MJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-solid weekly downloads on npm, last 90 days: 720,112 weekly downloads as of Oct 18, 2026, +22.4% over 90 days.

7/30/90-day growth

vite-plugin-solid weekly downloads growth on npm: -34.7% over 7 days, -20.9% over 30 days, +22.4% over 90 days.vite-plugin-solidWeekly downloads growth on npm720,112downloads / week now7-day growth-383,007 weekly downloads-34.7%30-day growth-190,568 weekly downloads-20.9%90-day growth+131,626 weekly downloads+22.4%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-solid weekly downloads growth on npm: -34.7% over 7 days, -20.9% over 30 days, +22.4% over 90 days.

Ranking history

vite-plugin-solid npm ranking history: currently #223 (by weekly downloads).vite-plugin-solidnpm ranking · by weekly downloads · Last 90 days#223current rank#220#225#230#235#240#245#250Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-solid npm ranking history: currently #223 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 12, #3 (overall #223)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins253 listings · 13 pages · page 2, #4 (overall #24)
Vite plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (122)
Recent weekly downloads observations for vite-plugin-solid
Date (UTC)Weekly downloadsChange vs. previous
720,112+167.2K
552,926-134.7K
687,621+1.9K
685,698-208.5K
894,177-220.6K
1,114,8160
1,114,816+11.7K
1,103,119+8.2K
1,094,941-7.9K
1,102,841-5.1K
1,107,936-881
1,108,817+1.2K
1,107,604-205.5K
1,313,102—

Similar npm Vite plugins plugins

All 20 vite-plugin-solid alternatives

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-solid. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.