File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/nextjs/src/config Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -660,10 +660,14 @@ function getRequestAsyncStorageModuleLocation(
660
660
}
661
661
662
662
function addOtelWarningIgnoreRule ( newConfig : WebpackConfigObjectWithModuleRules ) : void {
663
- const ignoreRule = { module : / @ o p e n t e l e m e t r y \/ i n s t r u m e n t a t i o n / } ;
663
+ const ignoreRules = [
664
+ { module : / @ o p e n t e l e m e t r y \/ i n s t r u m e n t a t i o n / , message : / C r i t i c a l d e p e n d e n c y / } ,
665
+ { module : / @ p r i s m a \/ i n s t r u m e n t a t i o n / , message : / C r i t i c a l d e p e n d e n c y / } ,
666
+ ] ;
667
+
664
668
if ( newConfig . ignoreWarnings === undefined ) {
665
- newConfig . ignoreWarnings = [ ignoreRule ] ;
669
+ newConfig . ignoreWarnings = ignoreRules ;
666
670
} else if ( Array . isArray ( newConfig . ignoreWarnings ) ) {
667
- newConfig . ignoreWarnings . push ( ignoreRule ) ;
671
+ newConfig . ignoreWarnings . push ( ... ignoreRules ) ;
668
672
}
669
673
}
You can’t perform that action at this time.
0 commit comments