File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export interface Component {
7
7
filePath : string
8
8
shortPath : string
9
9
isAsync ?: boolean
10
- isAbsolute ?: boolean
10
+ resolvePath ?: boolean
11
11
chunkName : string
12
12
/** @deprecated */
13
13
global : boolean
Original file line number Diff line number Diff line change 4
4
c . prefetch === true || typeof c . prefetch === 'number' ? `webpackPrefetch: ${ c . prefetch } ` : false ,
5
5
c . preload === true || typeof c . preload === 'number' ? `webpackPreload: ${ c . preload } ` : false ,
6
6
] . filter ( Boolean ) . join ( ', ' )
7
- const filePath = c . isAbsolute ? c . filePath : `../${ relativeToBuild ( c . filePath ) } `
7
+ const filePath = ( c . resolvePath === false || [ '~' , '@' ] . includes ( c . filePath [ 0 ] ) )
8
+ ? c . filePath
9
+ : `../${ relativeToBuild ( c . filePath ) } `
8
10
if ( c . isAsync === true || ( ! isDev /* prod fallback */ && c . isAsync === null ) ) {
9
11
const exp = c . export === 'default' ? `c.default || c` : `c['${ c . export } ']`
10
12
const asyncImport = `() => import('${ filePath } ' /* ${ magicComments } */).then(c => wrapFunctional(${ exp } ))`
You can’t perform that action at this time.
0 commit comments