@solidjs/vite-plugin weekly downloads statistics
By solidjs (3 listings) · npm · Vite plugins
solid-js integration plugin for Vite
@solidjs/vite-plugin has 503,582 recorded weekly downloads on npm, an increase of 51.4% over the past 30 days, ranking #399 of 3,247 tracked listings.
About @solidjs/vite-plugin
⚡ @solidjs/vite-plugin
vite-plugin-solidhas moved to@solidjs/vite-plugin. See Migrating from vite-plugin-solid.
A simple integration to run solid-js with vite
<img alt="HMR demonstration" 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 - Experimental TypeScript TSRX (
.tsrx) support out of the box - Support code splitting out of the box
Requirements
This module is 100% ESM compatible and requires Node.js >=22.12.0 (the same
floor as the solid-js 2.0 runtime packages).
You can check your current Node.js version by running node -v. Use a version
manager such as Volta or nvm
to update it.
Supported Vite versions: Vite 8 and 9.
Quickstart
Start from one of the Solid 2 templates:
$ npx degit solidjs/templates/solid-v2/basic my-solid-project
$ cd my-solid-project
$ npm install # or pnpm install or yarn install
$ npm run dev # starts the dev server with hot module replacement
$ npm run build # builds to /dist
solid-v2/bare is the minimal starting point, and solid-v2/fullstack adds streaming SSR,
middleware and server functions.
Installation
Install vite and @solidjs/vite-plugin as dev dependencies, and Solid's runtime, solid-js
and @solidjs/web, as dependencies. Both runtime packages are peer dependencies of the plugin,
so you control which Solid version your code is compiled against.
# with npm
$ npm install -D vite @solidjs/vite-plugin
$ npm install solid-js @solidjs/web
# with pnpm
$ pnpm add -D vite @solidjs/vite-plugin
$ pnpm add solid-js @solidjs/web
# with yarn
$ yarn add -D vite @solidjs/vite-plugin
$ yarn add solid-js @solidjs/web
Add it as plugin to vite.config.js
// vite.config.ts
import { defineConfig } from 'vite';
import solidPlugin from '@solidjs/vite-plugin';
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: undefined (development builds under
vite dev, production builds otherwise)
Use Solid's development builds: the development export condition of solid-js and
@solidjs/web, which carry the extra checks, warnings and diagnostics, plus the compiler's
dev output. Left unset, they are used under vite dev (and vitest) only. true forces them in
vite build too, for example to debug a production bundle with the dev warnings on. false
serves the production builds under vite dev as well; HMR then falls back to full reloads,
since the production refresh runtime is an inert stub.
options.observe
- Type: Boolean
- Default: false
Resolve Solid's observe builds in production: the production-speed runtime that keeps the
diagnostics and attribution channels (OBSERVE) alive for observability tooling (error
monitoring, performance tracing). Adds the observe export condition to every environment
and turns on the compiler's source names (see options.solid.sourceNames), so graph labels
(<Home>, span.textContent, count) survive minification. Under vite dev the dev build
still wins.
options.diagnostics
- Type: Boolean
- Default: undefined (on when the app declares
@solidjs/diagnostics)
Dev-serve only: expose Solid's diagnostic and attribution channels to out-of-process
consumers (agents, tests, curl). The plugin injects a client module that installs the
in-page bridge from the app's own @solidjs/diagnostics, and serves a /__solid/diagnostics
endpoint on the dev server: GET reports status, and POST { method, params } forwards
capture control (begin/end), whyDidRun and cost queries to the page over the Vite
WebSocket. The dev server prints the endpoint at startup.
Left unset, it turns on when the nearest package.json declares @solidjs/diagnostics, so
adding the dev dependency is the whole setup. true forces it on (and errors if the package
is missing), false opts out. Never active on vite build, preview or in test mode, and off
with dev: false unless observe is on, since the channels only exist in the dev and
observe builds.
options.performanceTracks
- Type:
boolean | PerformanceTracksOptions(from@solidjs/web/performance-tracks) - Default: true…
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (592)Similar npm Vite plugins plugins
All 20 @solidjs/vite-plugin alternativesData 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/@solidjs/vite-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.