webpack-deadcode-plugin icon indicating copy to clipboard operation
webpack-deadcode-plugin copied to clipboard

Webpack plugin to detect unused files and unused exports in used files

Results 11 webpack-deadcode-plugin issues
Sort by recently updated
recently updated
newest added

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) Welcome to [Renovate](https://togithub.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin. 🚦 To activate Renovate, merge this Pull Request....

The title says it all. If I'm not mistaken, webpack5 has pretty decent treeshaking support so I'm asking if this is needed in webpack5? webpack4?

I found unused exports can't used for ts file. Has any plan to support? ![image](https://user-images.githubusercontent.com/7654492/144240910-5094eaa5-6960-4559-9a41-889dfcbe8d24.png)

What's the intended behavior of the unused file check? If we were using a file called `constants.js` and we no longer have any imports or require statements referencing it, I'd...

Upon adding the following to my webpack config: ``` new DeadCodePlugin({ patterns: [ 'src/**/*.(js|jsx|css)', ], exclude: [ '**/*.(stories|spec).(js|jsx)', ], }) ``` I get the following error: ``` ./src/index.js Error: [BABEL]...

Because conflicts with --json (!)

`unusedExportMap` is a map so the `Object.keys` function should be used to check if it is empty.

webpack : 3.x babel-loader : 6.2.4 react: 15.x cmd : webpack --config xxx.js --watch 执行错误,compilation.getAssets is not a function

`import type {abc} from 'types/Edit.ts'` Edit.ts still in used, but output as unusedFiles.

```json "webpack": "^5.88.2", "webpack-cli": "^5.1.4", "webpack-deadcode-plugin": "^0.1.17", "webpack-dev-server": "^4.15.1" ``` started hapening since `0.1.15`