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(
660660}
661661
662662function 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+
664668 if ( newConfig . ignoreWarnings === undefined ) {
665- newConfig . ignoreWarnings = [ ignoreRule ] ;
669+ newConfig . ignoreWarnings = ignoreRules ;
666670 } else if ( Array . isArray ( newConfig . ignoreWarnings ) ) {
667- newConfig . ignoreWarnings . push ( ignoreRule ) ;
671+ newConfig . ignoreWarnings . push ( ... ignoreRules ) ;
668672 }
669673}
You can’t perform that action at this time.
0 commit comments