File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
dts-plugin/src/core/configurations Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @module-federation/dts-plugin ' : patch
3+ ---
4+
5+ Build zip url for json ext as well
Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ const defaultOptions = {
1717const buildZipUrl = ( hostOptions : Required < HostOptions > , url : string ) => {
1818 const remoteUrl = new URL ( url ) ;
1919
20- if ( remoteUrl . href . includes ( MANIFEST_EXT ) ) {
21- return undefined ;
22- }
2320 const pathnameWithoutEntry = remoteUrl . pathname
2421 . split ( '/' )
2522 . slice ( 0 , - 1 )
@@ -51,6 +48,7 @@ const retrieveRemoteInfo = (options: {
5148 : parsedInfo . name === remote
5249 ? remote
5350 : '' ;
51+
5452 const zipUrl = url ? buildZipUrl ( hostOptions , url ) : '' ;
5553
5654 return {
Original file line number Diff line number Diff line change @@ -126,7 +126,9 @@ class ManifestManager {
126126
127127 if ( isDev ( ) ) {
128128 console . log (
129- chalk `{bold {greenBright [ ${ PLUGIN_IDENTIFIER } ]} {greenBright Manifest Link:} {cyan ${ publicPath } ${ manifestFileName } }}` ,
129+ chalk `{bold {greenBright [ ${ PLUGIN_IDENTIFIER } ]} {greenBright Manifest Link:} {cyan ${
130+ publicPath === 'auto' ? '{auto}/' : publicPath
131+ } ${ manifestFileName } }}`,
130132 ) ;
131133 }
132134 }
You can’t perform that action at this time.
0 commit comments