File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export function isBabelHelper(path: string): boolean {
6767 * @returns  {boolean } 
6868 */ 
6969export  function  isBabelEsmHelper ( path : string ) : boolean  { 
70- return  path . startsWith ( `${ BABEL_RUNTIME_PREFIX_1 }  )  ||  path . startsWith ( `${ BABEL_RUNTIME_PREFIX_2 }  ) ; 
70+ return  path . includes ( `${ BABEL_RUNTIME_PREFIX_1 }  )  ||  path . includes ( `${ BABEL_RUNTIME_PREFIX_2 }  ) ; 
7171} 
7272
7373/** 
@@ -76,7 +76,7 @@ export function isBabelEsmHelper(path: string): boolean {
7676 * @returns  {boolean } 
7777 */ 
7878export  function  isBabelCjsHelper ( path : string ) : boolean  { 
79- return  ! isBabelEsmHelper ( path )  &&  ( path . startsWith ( `${ BABEL_RUNTIME_PREFIX_1 }  )  ||  path . startsWith ( `${ BABEL_RUNTIME_PREFIX_2 }  ) ) ; 
79+ return  ! isBabelEsmHelper ( path )  &&  ( path . includes ( `${ BABEL_RUNTIME_PREFIX_1 }  )  ||  path . includes ( `${ BABEL_RUNTIME_PREFIX_2 }  ) ) ; 
8080} 
8181
8282/** 
                         You can’t perform that action at this time. 
           
                  
0 commit comments