File tree Expand file tree Collapse file tree 3 files changed +739
-42
lines changed
spec/dummy/config/webpack Expand file tree Collapse file tree 3 files changed +739
-42
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,11 @@ const config: KnipConfig = {
5454 '@rescript/react' ,
5555 // The Babel plugin fails to detect it
5656 'babel-plugin-transform-react-remove-prop-types' ,
57- // Temporary!
58- '.*' ,
57+ // The below dependencies are not detected by the Webpack plugin
58+ // due to the config issue.
59+ 'expose-loader' ,
60+ 'imports-loader' ,
61+ 'sass-resources-loader' ,
5962 ] ,
6063 } ,
6164 } ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const sassLoaderConfig = {
2424const scssConfigIndex = baseClientWebpackConfig . module . rules . findIndex ( ( config ) =>
2525 '.scss' . match ( config . test ) ,
2626) ;
27- baseClientWebpackConfig . module . rules [ scssConfigIndex ] . use . push ( sassLoaderConfig ) ;
27+ baseClientWebpackConfig . module . rules [ scssConfigIndex ] ? .use . push ( sassLoaderConfig ) ;
2828
2929// add jquery
3030const exposeJQuery = {
You can’t perform that action at this time.
0 commit comments