Skip to content

Commit 6a3d6d3

Browse files
justin808claude
andcommitted
Fix remaining knip issues for pnpm migration
- Restore @babel/runtime and mini-css-extract-plugin to ignoreDependencies (still needed for webpack build detection) - Add disableHttp2 export to ignore list (test-only utility in worker.ts) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 0b91b0a commit 6a3d6d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

knip.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ const config: KnipConfig = {
7979
// Test helper utilities
8080
'tests/helper.ts',
8181
'tests/httpRequestUtils.ts',
82+
// Test-only exports used for test setup (disableHttp2 is used in tests/worker.test.ts)
83+
'src/worker.ts:disableHttp2',
8284
],
8385
ignoreDependencies: [
8486
// Optional dependencies used in integrations
@@ -174,6 +176,10 @@ const config: KnipConfig = {
174176
'@rescript/react',
175177
// The Babel plugin fails to detect it
176178
'babel-plugin-transform-react-remove-prop-types',
179+
// Required by @babel/plugin-transform-runtime for polyfills (used in webpack build)
180+
'@babel/runtime',
181+
// Used in webpack server config to filter out MiniCssExtractPlugin
182+
'mini-css-extract-plugin',
177183
// This one is weird. It's long-deprecated and shouldn't be necessary.
178184
// Probably need to update the Webpack config.
179185
'node-libs-browser',

0 commit comments

Comments
 (0)