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 @@ -30,7 +30,7 @@ export const DEFAULT_SECONDARIES_SKIP_LIST = [
3030] ;
3131
3232type IncludeSecondariesOptions =
33- | { skip : string | string [ ] ; resolveGlob ?: boolean }
33+ | { skip : string | string [ ] ; resolveGlob ?: boolean ; shareAll ?: boolean }
3434 | boolean ;
3535type CustomSharedConfig = SharedConfig & {
3636 includeSecondaries ?: IncludeSecondariesOptions ;
Original file line number Diff line number Diff line change @@ -270,16 +270,13 @@ export function _getPackageInfo(
270270 ) ;
271271
272272 if ( packageJsonExportsEntry ) {
273- secondaryEntryPoint = packageJsonExportsEntry ;
273+ secondaryEntryPoint = mainPkgJson ?. exports ?. [ packageJsonExportsEntry ] ;
274274
275- if ( secondaryEntryPoint . endsWith ( '*' ) ) {
275+ if ( packageJsonExportsEntry . endsWith ( '*' ) ) {
276276 const replacement = relSecondaryPath . substring (
277277 packageJsonExportsEntry . length - 1 ,
278278 ) ;
279- secondaryEntryPoint = replaceGlob (
280- mainPkgJson ?. exports ?. [ packageJsonExportsEntry ] ,
281- replacement ,
282- ) ;
279+ secondaryEntryPoint = replaceGlob ( secondaryEntryPoint , replacement ) ;
283280 }
284281 }
285282
You can’t perform that action at this time.
0 commit comments