File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { wrapFunctional } from './utils'
88 ] . filter ( Boolean ) . join ( ', ' ) 
99 if  ( c . isAsync )  { 
1010 const  exp  =  c . export  ===  'default'  ? `c.default || c`  : `c['${ c . export }  ']` 
11-  const  asyncImport  =  `import('../${ relativeToBuild ( c . filePath ) }  ' /* ${ magicComments }   */).then(c => wrapFunctional(${ exp }  ))` 
11+  const  asyncImport  =  `() =>  import('../${ relativeToBuild ( c . filePath ) }  ' /* ${ magicComments }   */).then(c => wrapFunctional(${ exp }  ))` 
1212 return  `export const ${ c . pascalName }   = ${ asyncImport }  ` 
1313 }  else  { 
1414 const  exp  =  c . export  ===  'default'  ? `default as ${ c . pascalName }  `  : c . pascalName 
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ import * as components from './index'
33
44for  ( const  name  in  components )  { 
55 Vue . component ( name ,  components [ name ] ) 
6-  Vue . component ( 'Lazy'  +  name ,  ( )   =>   Promise . resolve ( components [ name ] ) ) 
6+  Vue . component ( 'Lazy'  +  name ,  components [ name ] ) 
77} 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments