webpack-deep-scope-plugin

JSON →
library 1.6.2 ·javascript
verified May 27, 2026

A webpack plugin that improves tree-shaking by performing deep scope analysis to eliminate unused imports related to unused exports. Version 1.6.2 requires webpack ^4.14.0 and Node.js 8+. It solves webpack issue #6264 by analyzing variable scopes and removing dead code more aggressively than standard tree-shaking. Uses TypeScript and includes a custom version of escope. Alternative to webpack's built-in sideEffects flag but only works with ES module syntax (import/export).

total hits 20
actors 6 distinct systems
last hit 2d ago AhrefsBot
GPTBot
5
MetaBot
4
Script
1
Amazonbot
1
Search engines
1
Humans
5

top countries 🇺🇸 United States · VN · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany