Skip to content

Commit 60e75c1

Browse files
justin808claude
andcommitted
Fix knip config: add worker.ts as entry point
- Add src/worker.ts to entry points so disableHttp2 export is recognized - Remove @babel/runtime and mini-css-extract-plugin from ignoreDependencies (now properly detected by knip with pnpm) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 6a3d6d3 commit 60e75c1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

knip.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ const config: KnipConfig = {
6969
'src/ReactOnRailsProNodeRenderer.ts!',
7070
'src/default-node-renderer.ts!',
7171
'src/integrations/*.ts!',
72+
// Export disableHttp2 for test utilities
73+
'src/worker.ts!',
7274
],
7375
project: ['src/**/*.[jt]s{x,}!', 'tests/**/*.[jt]s{x,}', '!lib/**'],
7476
ignore: [
@@ -79,8 +81,6 @@ const config: KnipConfig = {
7981
// Test helper utilities
8082
'tests/helper.ts',
8183
'tests/httpRequestUtils.ts',
82-
// Test-only exports used for test setup (disableHttp2 is used in tests/worker.test.ts)
83-
'src/worker.ts:disableHttp2',
8484
],
8585
ignoreDependencies: [
8686
// Optional dependencies used in integrations
@@ -176,10 +176,6 @@ const config: KnipConfig = {
176176
'@rescript/react',
177177
// The Babel plugin fails to detect it
178178
'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',
183179
// This one is weird. It's long-deprecated and shouldn't be necessary.
184180
// Probably need to update the Webpack config.
185181
'node-libs-browser',

0 commit comments

Comments
 (0)