File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,15 +94,15 @@ export const loadFile = (file: string) => {
9494 console . log ( 'path' , path ) ;
9595 const fileModulePath = `./${ path } ` ;
9696 console . log ( 'imort.meta.url' , import . meta. url ) ;
97- baseUrl = new URL ( fileModulePath , import . meta. url ) . href ;
97+ baseUrl = new URL ( `./ ${ path } ` , import . meta. url ) . href ;
9898 console . log ( 'baseUrl' , baseUrl ) ;
9999 } else if ( file . startsWith ( '@@/' ) ) {
100100 path = file . replace ( '@@/' , '' ) ;
101101 const fileModulePath = `./${ path } ` ;
102- baseUrl = new URL ( fileModulePath , new URL ( import . meta. url ) . origin + new URL ( import . meta. url ) . pathname ) . href ;
102+ baseUrl = new URL ( `./ ${ path } ` , new URL ( import . meta. url ) . origin + new URL ( import . meta. url ) . pathname ) . href ;
103103 } else {
104104 const fileModulePath = `./${ file } ` ;
105- baseUrl = new URL ( fileModulePath , new URL ( import . meta. url ) . origin + new URL ( import . meta. url ) . pathname ) . href ;
105+ baseUrl = new URL ( `./ ${ file } ` , new URL ( import . meta. url ) . origin + new URL ( import . meta. url ) . pathname ) . href ;
106106 }
107107 return baseUrl ;
108108}
You can’t perform that action at this time.
0 commit comments