File tree Expand file tree Collapse file tree 1 file changed +20
-18
lines changed
Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Original file line number Diff line number Diff line change 1- export const webpack = {
2- configure : ( webpackConfig ) => {
3- webpackConfig . resolve . fallback = {
4- ...webpackConfig . resolve . fallback ,
5- path : require . resolve ( "path-browserify" ) ,
6- } ;
1+ module . exports = {
2+ webpack : {
3+ configure : ( webpackConfig ) => {
4+ webpackConfig . resolve . fallback = {
5+ ...webpackConfig . resolve . fallback ,
6+ path : require . resolve ( "path-browserify" ) ,
7+ } ;
78
8- webpackConfig . module . rules . push ( {
9- test : / \. j s $ / ,
10- parser : {
11- requireEnsure : false , // Prevents Webpack from treating require() as a critical dependency
12- } ,
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 / ] ;
9+ webpackConfig . module . rules . push ( {
10+ test : / \. j s $ / ,
11+ parser : {
12+ requireEnsure : false , // Prevents Webpack from complaining about dynamic requires
13+ } ,
14+ } ) ;
1715
18- return webpackConfig ;
19- } ,
20- } ;
16+ // ✅ This suppresses the "Critical dependency" warning explicitly
17+ 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 / ] ;
18+ return webpackConfig ;
19+ } ,
20+ } ,
21+ } ;
22+
You can’t perform that action at this time.
0 commit comments