@esplugins/no-internal-exports weekly downloads statistics
By esplugins · npm · Webpack plugins
Esbuild, Vite, Rollup, Rolldown, webpack and Rspack plugin for not exporting @internal functions/types/variables from entry files
@esplugins/no-internal-exports has 33 recorded weekly downloads on npm, an increase of 267% over the past 30 days, ranking #2876 of 3,247 tracked listings.
About @esplugins/no-internal-exports
If you ever wanted to export @internal Functions/Variables/Types but you was worried about exporting that outside
with entry files <br><br> <b>Dont Worry</b> <br><br>Right know you can export them in your codebase and protect them to
not being exported in entry file.
// index.ts (Entry file)
// @/functions - its `/src/functions/index.ts` path to export barrel
export * from "@/functions"
// functions/index.ts
export * from "./nameValidator"
// @/functions/nameValidator.ts
/** @internal */
export const MAX_LENGTH = 256 as const;
/** @internal */
export const MAX_SAFE_NAME_LENGTH = MAX_LENGTH - 6 ;
/** @internal */
export const MyErrorList = {"TOO_LONG":{...},...code}
export const nameValidator = (name:string) => {...code}
export default nameValidator;
// nameValidator.test.ts
// Importing to check that error case drop correct error
import { MyErrorList } from "@/functions/nameValidator.ts"
// index.js - final build output
// Note that, every element with @internal is not exported!
export { nameValidator };
<hr/>
📜 List of Contents
Install
NPM
npm install @esplugins/no-internal-exports
PNPM
pnpm add @esplugins/no-internal-exports
Yarn
yarn add @esplugins/no-internal-exports
Your bundler is used as-is: esbuild (>=0.18) for the main entry, or Vite / Rollup / Rolldown / webpack / Rspack
through the subpath of the table below (adapters are built with
unplugin).
Support
There you can check support for other bundlers!
Status
| Emoji | Meaning |
|---|---|
| ✅ | Completed |
| ⏸️ | Paused |
| ❌ | Aborted |
| 🛠️ | In Progress |
| 💤 | Not Yet Started |
| ❓ | Not Checked |
Table of Support
| Platform | Import | Status |
|---|---|---|
| Esbuild | @esplugins/no-internal-exports | ✅ |
| TSUP | @esplugins/no-internal-exports | ✅ |
| Vite | @esplugins/no-internal-exports/vite | ✅ |
| Rollup | @esplugins/no-internal-exports/rollup | ✅ |
| Rolldown, tsdown | @esplugins/no-internal-exports/rolldown | ✅ |
| Webpack | @esplugins/no-internal-exports/webpack | ✅ |
| Rspack | @esplugins/no-internal-exports/rspack | ✅ |
| Parcel | - | 💤 |
Every platform marked ✅ is covered by tests running real builds, except tsup: it hands esbuildPlugins to esbuild,
which is tested directly.
Implementation
Esbuild
import noInternalExports from "@esplugins/no-internal-exports";
await esbuild.build({
entryPoints: ["src/index.ts"],
// bundle: true, Do like you want there, just example
// outfile: "out.js", -||-
plugins: [noInternalExports]
});
With options:
import { createNoInternalExports } from "@esplugins/no-internal-exports";
await esbuild.build({
entryPoints: ["src/index.ts"],
plugins: [createNoInternalExports({ tags: ["internal", "private"], debug: true })]
});
TSUP
import { defineConfig } from "tsup";
import noInternalExports from "@esplugins/no-internal-exports";
export default defineConfig({
entry: ["src/index.ts"],
// target: "es2022", Do like you want there, just example
// format: ["esm"], -||-
// clean: true, -||-
// splitting: false, -||-
// platform: "node", -||-
// keepNames: true, -||-
esbuildPlugins: [noInternalExports]
});
Vite
Library mode (build.lib) or any build with build.rollupOptions.input. The plugin only runs in vite build.
import { defineConfig } from "vite";
import noInternalExports from "@esplugins/no-internal-exports/vite";
export default defineConfig({
build: { lib: { entry: "src/index.ts", formats: ["es"] } },
plugins: [noInternalExports()]
});
Rollup
Put it before plugins that compile TypeScript, so it sees the original source.
import noInternalExports from "@esplugins/no-internal-exports/rollup";
export default {
input: "src/index.ts",
plugins: [noInternalExports() /* , typescript(), ... */]
};
Rolldown / tsdown
import { defineConfig } from "tsdown"; // or "rolldown"
import noInternalExports from "@esplugins/no-internal-exports/rolldown";
export default defineConfig({
entry: ["src/index.ts"],
plugins: [noInternalExports()]
});
Webpack
Entry files are taken from the entry option. The plugin runs before your loaders (ts-loader, swc-loader, ...).
const noInternalExports = require("@esplugins/no-internal-exports/webpack").default;
module.exports = {
entry: "./src/index.ts",
plugins: [noInternalExports()]
};
Rspack…
Description from the npm listing.
- no-internal-exports
- esplugins
- esbuild
- plugin
- esbuild-plugin
- esbuild-plugin-no-internal-exports
- internal
- tsup
- vite-plugin
- rollup-plugin
- rolldown-plugin
- tsdown
- webpack-plugin
- rspack-plugin
- unplugin
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 (128)Similar npm Webpack plugins plugins
All 20 @esplugins/no-internal-exports 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/@esplugins/no-internal-exports. First seen Nov 25, 2026; last successful collection Dec 6, 2026. See the methodology.