Skip to content
PluginStats

vite-plugin-no-bundle weekly downloads statistics

By ManBearTM · npm · Vite plugins

Use Vite for building without the bundling part.

View on npm Fresh · Oct 27, 2026 · data Jul 1, 2026

vite-plugin-no-bundle has 8,567 recorded weekly downloads on npm.

Weekly downloads
8,567
Official API · Jul 1, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
Among tracked npm listings

About vite-plugin-no-bundle

No-bundle for Vite

⚡ Use Vite for building without the bundling part

<div align="center">

screenshot

</div>

🧰 Useful for monorepos
📦 Can be consumed by native ESM tooling
👷‍♂️ Lets consumers deep import specific files
✍ You control your own code splitting

With the rise in monorepos and native ESM support, it is becoming increasingly popular to release libraries that are meant to be bundled by the consuming application or even served directly. The support for library mode in Vite is still lacking when it comes to producing unbundled code, so this plugin fills in some of those gaps. 🚀

Installation

npm

From v4, vite-plugin-no-bundle requires Vite 5.

This plugin is designed to work with Vite in a development environment using Node.js. You can install this package using npm, Yarn, or pnpm using a command similar to this example for npm:

npm install -D vite-plugin-no-bundle

Usage

Vite

📜 In accordance with Vite plugin convention, we provide a default export function that takes in a bunch of customization options.

📚 You can find the complete list of options below! 👇

import { defineConfig } from 'vite';
import noBundlePlugin from 'vite-plugin-no-bundle';

export default defineConfig({
  build: {
    lib: {
      formats: ['es'],
      entry: 'src/index.ts',
    },
  },
  plugins: [noBundlePlugin({ copy: '**/*.css' })],
});

Here's an example project tree using ☝ the example vite.config.ts from above:

.
├── dist/
│   ├── index.js
│   ├── card.css
│   ├── table.css
│   ├── createTable.js
│   └── fetchData.js
├── src/
│   ├── index.ts
│   ├── card.css
│   ├── table.css
│   ├── createTable.js
│   └── fetchData.ts
├── package.json
├── package-lock.json
├── tsconfig.json
└── vite.config.ts

⚠️ Keep in mind that non-ESM output (such as CommonJS) will probably prevent the consumer from resolving static assets. Vite relies on import.meta for getting a URL's to static assets, which is only valid when using ESM.

Options
interface VitePluginNoBundleOptions {
  copy?: string | string[];
  internal?: string | string[];
  root?: string; //= 'src'
}
  • copy: One or more globs for matching files that should not be handled by Vite, but instead be marked as external and copied to the output directory as is. This is especially useful for static assets such as .css, which are otherwise inlined as raw strings when using Vite in library mode (vitejs/vite#4454).

  • internal: One or more globs for matching files that should not be automatically marked as external. This can be used to tell the plugin to not handle certain files and leave them up to other plugins and resolvers.

  • root: Exposes output.preserveModulesRoot, which controls which part of the full path to exclude when putting files into the dist/ folder. Make sure to change this if you're using something other than src/ for your source code.

Customizing file names

In previous versions of this plugin, it was possible to customize the generated file names via the fileNames option. This has been removed in favor of Vite's own build.lib.fileName option. By default, this plugin uses [name] as the fileName, resulting in files keeping their original name with the appropriate extension appended based on module format. This change was implemented to allow multiple module formats to be emitted using this plugin. Example configuration:

import { defineConfig } from 'vite';
import noBundlePlugin from 'vite-plugin-no-bundle';

export default defineConfig({
  build: {
    lib: {
      formats: ['es', 'cjs'], // Generate multiple formats without bundling
      fileName: 'my-lib-[name]', // Extension automatically determined by format
      entry: 'src/index.ts',
    },
  },
  plugins: [noBundlePlugin({ copy: '**/*.css' })],
});
Use cases

You can use this plugin to force Vite to leave your custom fine-tuned file structure alone. This is especially useful when consuming just part of a module directly via a deep import. For instance, if you have two Vite projects, one library and one app, the library could use this plugin so that the app is able to bundle everything together on its own terms. 🎁

Another good use-case is serving individual files via an HTTP server. Sometimes you just want a plain TS ➡️ JS file conversion (with some extra features). This plugin lets you do just that, no magic required. 🧙‍♂️

📂 Browse Sample Configurations - For practical examples, explore the samples folder.

Development

TypeScript

This is a fairly basic Vite plugin. The only compilation step is to run npm run build which uses tsup. Sample configurations serve as test cases for different plugin scenarios and can be run using npm test.

If you're interested in learning more about Vite plugins and how they work, check out the Plugin API | Vite page!

<!-- prettier-ignore-start --> <!-- prettier-ignore-end -->

Description from the npm listing.

  • vite-plugin
  • unbundle

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-no-bundle weekly downloads on npm, last 90 days: 8,567 weekly downloads as of Jul 1, 2026.vite-plugin-no-bundleWeekly downloads on npm · Last 90 days8,567downloads / weekNo observations recorded in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
vite-plugin-no-bundle weekly downloads on npm, last 90 days: 8,567 weekly downloads as of Jul 1, 2026.

7/30/90-day growth

vite-plugin-no-bundle weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.vite-plugin-no-bundleWeekly downloads growth on npm8,567downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Jul 1, 2026pluginstats.com
vite-plugin-no-bundle weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

vite-plugin-no-bundle has no ranking history on npm yet.vite-plugin-no-bundlenpm ranking · by weekly downloads · Last 90 daysNo ranking observations in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
vite-plugin-no-bundle has no ranking history on npm yet.

Listing placement

All npm2,642 listings · 133 pages · 1,323 shown · page 56, #16 (overall #1,116)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins275 listings · 14 pages · page 11, #1 (overall #201)
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 (1)
Recent weekly downloads observations for vite-plugin-no-bundle
Date (UTC)Weekly downloadsChange vs. previous
8,567—

Similar npm Vite plugins plugins

All 20 vite-plugin-no-bundle 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-no-bundle. First seen Oct 27, 2026; last successful collection Oct 27, 2026. See the methodology.