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

Cannot detect import type and ts types file

Open koeika opened this issue 2 years ago • 1 comments

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

koeika avatar Nov 16 '23 08:11 koeika

plugin used afteremit hook, while ts type interface files and import type will be deleted during webpack compiler.
Can we do sth to preserve these ts type files, and delete them after detecting unusedFiles?

koeika avatar Nov 16 '23 08:11 koeika