8000 chore: add unused dep checker · unplugin/unplugin-vue@e4119d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit e4119d8

Browse files
committed
chore: add unused dep checker
1 parent 1347738 commit e4119d8

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
"source-map-js": "^1.2.0",
114114
"tsup": "^8.2.4",
115115
"typescript": "^5.5.4",
116+
"unplugin-unused": "^0.1.4",
116117
"vitest": "2.0.5",
117118
"webpack": "^5.94.0"
118119
},

pnpm-lock.yaml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsup.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from 'tsup'
2+
import Unused from 'unplugin-unused/esbuild'
23

34
export default defineConfig({
45
entry: ['./src/*.ts'],
@@ -9,4 +10,5 @@ export default defineConfig({
910
splitting: true,
1011
cjsInterop: true,
1112
shims: true,
13+
esbuildPlugins: [Unused()],
1214
})

0 commit comments

Comments
 (0)
0