File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export interface Component {
77 filePath : string
88 shortPath : string
99 isAsync ?: boolean
10+ isAbsolute ?: boolean
1011 chunkName : string
1112 /** @deprecated */
1213 global : boolean
Original file line number Diff line number Diff line change 44 c . prefetch === true || typeof c . prefetch === 'number' ? `webpackPrefetch: ${ c . prefetch } ` : false ,
55 c . preload === true || typeof c . preload === 'number' ? `webpackPreload: ${ c . preload } ` : false ,
66 ] . filter ( Boolean ) . join ( ', ' )
7+ const filePath = c . isAbsolute ? c . filePath : `../${ relativeToBuild ( c . filePath ) } `
78 if ( c . isAsync === true || ( ! isDev /* prod fallback */ && c . isAsync === null ) ) {
89 const exp = c . export === 'default' ? `c.default || c` : `c['${ c . export } ']`
9- const asyncImport = `() => import('../ ${ relativeToBuild ( c . filePath ) } ' /* ${ magicComments } */).then(c => wrapFunctional(${ exp } ))`
10+ const asyncImport = `() => import('${ filePath } ' /* ${ magicComments } */).then(c => wrapFunctional(${ exp } ))`
1011 return `export const ${ c . pascalName } = ${ asyncImport } `
1112 } else {
1213 const exp = c . export === 'default' ? `default as ${ c . pascalName } ` : c . pascalName
13- return `export { ${ exp } } from '../ ${ relativeToBuild ( c . filePath ) } '`
14+ return `export { ${ exp } } from '${ filePath } '`
1415 }
1516} ) . join ( '\n' ) % >
1617
You can’t perform that action at this time.
0 commit comments