File tree Expand file tree Collapse file tree 1 file changed +18
-17
lines changed
Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Original file line number Diff line number Diff line change 1- module . exports = {
2- webpack : {
3- configure : ( webpackConfig ) => {
4- webpackConfig . resolve . fallback = {
5- ...webpackConfig . resolve . fallback ,
6- path : require . resolve ( "path-browserify" ) ,
7- } ;
1+ export const webpack = {
2+ configure : ( webpackConfig ) => {
3+ webpackConfig . resolve . fallback = {
4+ ...webpackConfig . resolve . fallback ,
5+ path : require . resolve ( "path-browserify" ) ,
6+ } ;
87
9- webpackConfig . module . rules . push ( {
10- test : / \. j s $ / ,
11- parser : {
12- requireEnsure : false , // Prevents Webpack from complaining about dynamic requires
13- } ,
14- } ) ;
15- return webpackConfig ;
8+ webpackConfig . module . rules . push ( {
9+ test : / \. j s $ / ,
10+ parser : {
11+ requireEnsure : false , // Prevents Webpack from treating require() as a critical dependency
1612 } ,
17- } ,
18- } ;
19-
13+ } ) ;
14+
15+ // ✅ This suppresses the "Critical dependency" warning explicitly
16+ webpackConfig . ignoreWarnings = [ / t h e r e q u e s t o f a d e p e n d e n c y i s a n e x p r e s s i o n / ] ;
17+
18+ return webpackConfig ;
19+ } ,
20+ } ;
You can’t perform that action at this time.
0 commit comments