{"id":22648,"library":"vite-plugin-entry-shaking-debugger","title":"Vite Plugin Entry Shaking Debugger","description":"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.","status":"active","version":"2.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/Dschungelabenteuer/vite-plugin-entry-shaking","tags":["javascript","vite","vite-plugin","entry","tree shaking","debugger","typescript"],"install":[{"cmd":"npm install vite-plugin-entry-shaking-debugger","lang":"bash","label":"npm"},{"cmd":"yarn add vite-plugin-entry-shaking-debugger","lang":"bash","label":"yarn"},{"cmd":"pnpm add vite-plugin-entry-shaking-debugger","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency, vite >=5.1.0 required for plugin compatibility","package":"vite","optional":false},{"reason":"peer dependency, version 0.5.2+ required. This debugger is a companion plugin.","package":"vite-plugin-entry-shaking","optional":false}],"imports":[{"note":"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.","wrong":"const EntryShakingPlugin = require('vite-plugin-entry-shaking')","symbol":"EntryShakingPlugin","correct":"import { EntryShakingPlugin } from 'vite-plugin-entry-shaking'"},{"note":"This package is auto-invoked when imported; no named exports. Just import the package to enable debug features.","wrong":"import { debugger } from 'vite-plugin-entry-shaking-debugger'","symbol":"vite-plugin-entry-shaking-debugger","correct":"import 'vite-plugin-entry-shaking-debugger'"},{"note":"Type imports come from main plugin package, not debugger.","wrong":"import { EntryShakingPluginOptions } from 'vite-plugin-entry-shaking-debugger'","symbol":"type: EntryShakingPluginOptions","correct":"import type { EntryShakingPluginOptions } from 'vite-plugin-entry-shaking'"}],"quickstart":{"code":"// vite.config.ts\nimport { defineConfig } from 'vite';\nimport { EntryShakingPlugin } from 'vite-plugin-entry-shaking';\nimport 'vite-plugin-entry-shaking-debugger'; // enables debug mode\n\nexport default defineConfig({\n  plugins: [\n    EntryShakingPlugin({\n      targets: ['./src/entries/index.ts'],\n      debug: true, // verbose logging for tree shaking analysis\n    }),\n  ],\n});","lang":"typescript","description":"Configures Vite with entry shaking plugin and debugger, enabling verbose logging to analyze tree shaking behavior."},"warnings":[{"fix":"Add 'import \"vite-plugin-entry-shaking-debugger\"' to your vite config file.","message":"Debugger must be imported as a side-effect import. If not imported, setting 'debug: true' on the main plugin does nothing.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Upgrade to vite-plugin-entry-shaking-debugger@2 and ensure vite-plugin-entry-shaking@0.5+.","message":"v1.x debugger versions are deprecated and not compatible with vite-plugin-entry-shaking >=0.5.0.","severity":"deprecated","affected_versions":"1.x"},{"fix":"Update peer dependencies: vite >=5.1.0, vite-plugin-entry-shaking >=0.5.0.","message":"Version 2.0.0 dropped support for vite-plugin-entry-shaking <0.5.0 and vite <5.1.0.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use VITE_NODE_ENV=development or run 'vite' (not 'vite build') to see debug output.","message":"The debugger only works in development mode; production builds ignore the setting.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'0.5.2':37 '2.0.2':27 '5.1.0':30 'analysi':55 'aren':66 'cadenc':41 'certain':64 'debugg':5,6,86 'depend':39 'detail':52 'develop':61 'differenti':50 'entri':3,11,24,35,57,83 'esm':76 'esm-on':75 'export':23,65 'follow':42 'help':60 'identifi':62 'improv':17 'javascript':78 'key':49 'log':53 'main':44 'patch':47 'peer':38 'plugin':2,10,15,34,45,82 'point':25 'provid':51 're':22 're-export':21 'releas':40,48 'requir':28 'shake':4,12,19,36,58,85 'shaken':71 'ship':72 'transform':59 'tree':18,70,84 'tree-shaken':69 'type':74 'typescript':73,87 'version':26 'vite':1,9,14,29,33,79,81 'vite-plugin':80 'vite-plugin-entry-shak':8,32","created_at":"2026-04-27T17:06:16.341847+00:00","updated_at":"2026-04-27T17:06:16.341847+00:00","problems":[{"fix":"Run 'npm install -D vite-plugin-entry-shaking-debugger' or check package.json dependencies.","cause":"Package not installed or not properly resolved.","error":"Error: Cannot find module 'vite-plugin-entry-shaking-debugger'"},{"fix":"Ensure you have imported 'vite-plugin-entry-shaking-debugger' and that you are using vite-plugin-entry-shaking@0.5+.","cause":"Debugger import missing or incorrect version of vite-plugin-entry-shaking.","error":"TypeError: plugin.debug is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/Dschungelabenteuer/vite-plugin-entry-shaking","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-entry-shaking-debugger","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","type-stubs"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-07-26","install_tag":null}}