Skip to content

Commit cff08a3

Browse files
committed
fix: Switch to env separator
1 parent 82f84b8 commit cff08a3

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

libs/native-federation-core/src/lib/core/bundle-shared.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
getChecksum,
2323
getFilename,
2424
} from './../utils/bundle-caching';
25-
import { getSeparator } from '../utils/mapped-paths';
2625

2726
export 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

libs/native-federation-core/src/lib/utils/mapped-paths.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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-
2016
export function getMappedPaths({
2117
rootTsConfigPath,
2218
sharedMappings,

0 commit comments

Comments
 (0)