Registry / testing / vite-plugin-entry-shaking-debugger

vite-plugin-entry-shaking-debugger

JSON →
library2.0.2jsnpmunverified

Debugger for vite-plugin-entry-shaking, a Vite plugin that improves tree shaking for re-exported entry points. Version 2.0.2 requires vite >=5.1.0 and vite-plugin-entry-shaking >=0.5.2 (peer dependency). Release cadence follows the main plugin with patch releases. Key differentiator: provides detailed logging and analysis of entry shaking transformations, helping developers identify why certain exports aren't being tree-shaken. Ships TypeScript types. ESM-only.

npm install vite-plugin-entry-shaking-debugger
INSTALL
IMPORT
SIG · VITE-PLUGIN-ENTRY-
V
vite-plugin-entry-shaking-debugger
testingjavascriptv2.0.2
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–223 runs
build_error
glibc
node 18–223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EntryShakingPlugin
✓ import { EntryShakingPlugin } from 'vite-plugin-entry-shaking'
✗ const EntryShakingPlugin = require('vite-plugin-entry-shaking')
This package does not export the plugin itself; it's a debugger that augments the main plugin. Enable via debug: true in the main plugin config.
vite-plugin-entry-shaking-debugger
✓ import 'vite-plugin-entry-shaking-debugger'
✗ import { debugger } from 'vite-plugin-entry-shaking-debugger'
This package is auto-invoked when imported; no named exports. Just import the package to enable debug features.
type: EntryShakingPluginOptions
✓ import type { EntryShakingPluginOptions } from 'vite-plugin-entry-shaking'
✗ import { EntryShakingPluginOptions } from 'vite-plugin-entry-shaking-debugger'
Type imports come from main plugin package, not debugger.

Configures Vite with entry shaking plugin and debugger, enabling verbose logging to analyze tree shaking behavior.

// vite.config.ts import { defineConfig } from 'vite'; import { EntryShakingPlugin } from 'vite-plugin-entry-shaking'; import 'vite-plugin-entry-shaking-debugger'; // enables debug mode export default defineConfig({ plugins: [ EntryShakingPlugin({ targets: ['./src/entries/index.ts'], debug: true, // verbose logging for tree shaking analysis }), ], });
Debug
Known issues
gotchaDebugger must be imported as a side-effect import. If not imported, setting 'debug: true' on the main plugin does nothing.
fix
Add 'import "vite-plugin-entry-shaking-debugger"' to your vite config file.
affects: >=2.0.0
deprecatedv1.x debugger versions are deprecated and not compatible with vite-plugin-entry-shaking >=0.5.0.
fix
Upgrade to vite-plugin-entry-shaking-debugger@2 and ensure vite-plugin-entry-shaking@0.5+.
affects: 1.x
breakingVersion 2.0.0 dropped support for vite-plugin-entry-shaking <0.5.0 and vite <5.1.0.
fix
Update peer dependencies: vite >=5.1.0, vite-plugin-entry-shaking >=0.5.0.
affects: >=2.0.0
gotchaThe debugger only works in development mode; production builds ignore the setting.
fix
Use VITE_NODE_ENV=development or run 'vite' (not 'vite build') to see debug output.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'vite-plugin-entry-shaking-debugger'
Package not installed or not properly resolved.
fix
Run 'npm install -D vite-plugin-entry-shaking-debugger' or check package.json dependencies.
TypeError: plugin.debug is not a function
Debugger import missing or incorrect version of vite-plugin-entry-shaking.
fix
Ensure you have imported 'vite-plugin-entry-shaking-debugger' and that you are using vite-plugin-entry-shaking@0.5+.
Upgrade
Version history
2.0.2latest on npm
Audit
Dependencies
viterequiredpeer dependency, vite >=5.1.0 required for plugin compatibility
vite-plugin-entry-shakingrequiredpeer dependency, version 0.5.2+ required. This debugger is a companion plugin.
Agent activity
49 hits · last 30 days
node
42
OpenAI (training)
1
Resources
vite-plugin-entry-shaking-debugger — npm install vite-plugin-entry-shaking-debugger · libregistry