Skip to content
JS
Package

babel-plugin-explicit-exports-references

Transforms all internal references to a module's exports such that each reference starts with `module.exports` instead of directly referencing an internal name. This enables easy mocking of specific (exported) functions in Jest with Babel/TypeScript, even

v1.0.2, 3 Jan 2022MITCommonJSTypes: BundledTestingTypeScript tooling
$ npm install babel-plugin-explicit-exports-references

Key numbers

As of 25 Sept 2026
Weekly downloads
5.4k
+74% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
4 years ago
v1.0.2
GitHub stars
20
3 forks
Open issues / PRs
3 / 4
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60kSept 2025Mar 2026Sept 2026High 57.7k (31 Mar 2026)Low 896 (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

5,350 downloads last week, 28,983 in the last month. The 12-month change of +74% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.0.2, 3 Jan 20224 years ago
First published
-
Last push to GitHub
15 Jul 2024801 days before the snapshot
Repository archived
No
Open issues
3
Open pull requests
4
Commits, last 52 weeks
0
Dependents on npm
2

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 12.x
Runtimes
-
Unpacked size (npm)
19 kB
Dependencies (4)
debug@babel/core@babel/types@babel/template
npm install babel-plugin-explicit-exports-references
  • jsDelivrhttps://cdn.jsdelivr.net/npm/babel-plugin-explicit-exports-references@1.0.2/
  • unpkghttps://unpkg.com/babel-plugin-explicit-exports-references@1.0.2/
  • esm.shhttps://esm.sh/babel-plugin-explicit-exports-references@1.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
tinyspy36.2m-20 days agoESM only-
babel-plugin-tester105.8k--CommonJS-
jest-chrome24.6k-3 years agoESM + CommonJS-
ts-jest-mock26k-2 years agoESM + CommonJS-
wiremock-captain55.6k-10 months agoCommonJS-
jest-matchmedia-mock69.4k-6 years agoCommonJS-
givens11.5k-5 years agoCommonJS-
@deanwhillier/jest-matchmedia-mock8.1k-4 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 5350 < 10000.