Skip to content

Commit d6c5a25

Browse files
Update knip config to add rsc entry points
1 parent 9ea28f4 commit d6c5a25

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

knip.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ const config: KnipConfig = {
44
// ! at the end means files are used in production
55
workspaces: {
66
'.': {
7-
entry: ['node_package/src/ReactOnRails.ts!', 'node_package/src/ReactOnRails.node.ts!'],
7+
entry: [
8+
'node_package/src/ReactOnRails.ts!',
9+
'node_package/src/ReactOnRails.node.ts!',
10+
'node_package/src/ReactOnRailsRSC.ts!',
11+
'node_package/src/RSCWebpackLoader.ts!',
12+
],
813
project: ['node_package/src/**/*.[jt]s!', 'node_package/tests/**/*.[jt]s'],
914
babel: {
1015
config: ['node_package/babel.config.js'],
@@ -24,6 +29,7 @@ const config: KnipConfig = {
2429
// though we don't actually use its rules anywhere.
2530
'eslint-plugin-jsx-a11y',
2631
'eslint-plugin-react',
32+
'react-server-dom-webpack',
2733
],
2834
},
2935
'spec/dummy': {

0 commit comments

Comments
 (0)