File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
libs/native-federation-core/src/lib Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import {
2222 getChecksum ,
2323 getFilename ,
2424} from './../utils/bundle-caching' ;
25- import { getSeparator } from '../utils/mapped-paths' ;
2625
2726export async function bundleShared (
2827 sharedBundles : Record < string , NormalizedSharedConfig > ,
@@ -178,7 +177,7 @@ export async function bundleShared(
178177 checksum,
179178 externals : result ,
180179 files : bundleResult . map (
181- ( r ) => r . fileName . split ( getSeparator ( r . fileName ) ) . pop ( ) ?? r . fileName ,
180+ ( r ) => r . fileName . split ( path . sep ) . pop ( ) ?? r . fileName ,
182181 ) ,
183182 } ) ;
184183
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ export interface GetMappedPathsOptions {
1313 rootPath ?: string ;
1414}
1515
16- export function getSeparator ( path : string ) {
17- return path . includes ( '\\' ) ? '\\' : '/' ;
18- }
19-
2016export function getMappedPaths ( {
2117 rootTsConfigPath,
2218 sharedMappings,
You can’t perform that action at this time.
0 commit comments