File tree Expand file tree Collapse file tree
libs/native-federation-core/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ function resolveSecondaries(
299299 parent : string ,
300300 secondaryName : string ,
301301 entry : string ,
302- excludes : { discovered : Set < string > ; skip : String [ ] }
302+ excludes : { discovered : Set < string > ; skip : string [ ] }
303303) : Array < string | KeyValuePair > {
304304 let items : Array < string | KeyValuePair > = [ ] ;
305305 if ( key . includes ( '*' ) ) {
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ export function _getPackageInfo(
177177 }
178178
179179 const pathToSecondary = path . relative ( mainPkgName , packageName ) ;
180- let relSecondaryPath = ! pathToSecondary
180+ const relSecondaryPath = ! pathToSecondary
181181 ? '.'
182182 : './' + pathToSecondary . replace ( / \\ / g, '/' ) ;
183183
@@ -188,7 +188,7 @@ export function _getPackageInfo(
188188 const wildcardEntry = Object . keys ( mainPkgJson ?. exports ?? [ ] ) . find ( ( e ) =>
189189 e . startsWith ( './*' )
190190 ) ;
191- if ( ! ! wildcardEntry ) {
191+ if ( wildcardEntry ) {
192192 secondaryEntryPoint = mainPkgJson ?. exports ?. [ wildcardEntry ] ;
193193 if ( typeof secondaryEntryPoint === 'string' )
194194 secondaryEntryPoint = secondaryEntryPoint . replace ( '*' , pathToSecondary ) ;
You can’t perform that action at this time.
0 commit comments