@@ -58,7 +58,7 @@ export function openNextEdgePlugins({
5858      logger . debug ( chalk . blue ( "OpenNext Edge plugin" ) ) ; 
5959      if  ( edgeFunctionHandlerPath )  { 
6060        // If we bundle the routing, we need to resolve the middleware 
61-         build . onResolve ( {  filter : / \. \/ m i d d l e w a r e .m j s / g} ,  ( )  =>  { 
61+         build . onResolve ( {  filter : / \. ( \/ | \\ ) m i d d l e w a r e .m j s / g} ,  ( )  =>  { 
6262          return  { 
6363            path : edgeFunctionHandlerPath , 
6464          } ; 
@@ -93,7 +93,7 @@ export function openNextEdgePlugins({
9393      ) ; 
9494
9595      // We inject the entry files into the edgeFunctionHandler 
96-       build . onLoad ( {  filter : / \/ e d g e F u n c t i o n H a n d l e r .j s / g} ,  async  ( args )  =>  { 
96+       build . onLoad ( {  filter : / ( \/ | \\ ) e d g e F u n c t i o n H a n d l e r .j s / g} ,  async  ( args )  =>  { 
9797        let  contents  =  readFileSync ( args . path ,  "utf-8" ) ; 
9898        contents  =  ` 
9999globalThis._ENTRIES = {}; 
@@ -160,7 +160,7 @@ ${contents}
160160        } ; 
161161      } ) ; 
162162
163-       build . onLoad ( {  filter : / a d a p t e r s \/ c o n f i g \/ i n d e x / g} ,  async  ( )  =>  { 
163+       build . onLoad ( {  filter : / a d a p t e r s ( \/ | \\ ) c o n f i g ( \/ | \\ ) i n d e x / g} ,  async  ( )  =>  { 
164164        const  NextConfig  =  loadConfig ( nextDir ) ; 
165165        const  BuildId  =  loadBuildId ( nextDir ) ; 
166166        const  HtmlPages  =  loadHtmlPages ( nextDir ) ; 
0 commit comments