diff --git a/libs/native-federation-core/src/lib/core/build-for-federation.ts b/libs/native-federation-core/src/lib/core/build-for-federation.ts index a333b6ef..17a2db4a 100644 --- a/libs/native-federation-core/src/lib/core/build-for-federation.ts +++ b/libs/native-federation-core/src/lib/core/build-for-federation.ts @@ -14,7 +14,7 @@ import { FederationOptions } from './federation-options'; import { writeFederationInfo } from './write-federation-info'; import { writeImportMap } from './write-import-map'; import { logger } from '../utils/logger'; -import { getCachePath } from './bundle-caching'; +import { getCachePath } from './../utils/bundle-caching'; import { normalizePackageName } from '../utils/normalize'; import { AbortedError } from '../utils/errors'; diff --git a/libs/native-federation-core/src/lib/core/bundle-shared.ts b/libs/native-federation-core/src/lib/core/bundle-shared.ts index 19670df4..3a6bc084 100644 --- a/libs/native-federation-core/src/lib/core/bundle-shared.ts +++ b/libs/native-federation-core/src/lib/core/bundle-shared.ts @@ -17,7 +17,11 @@ import { isSourceFile, rewriteChunkImports, } from '../utils/rewrite-chunk-imports'; -import { cacheEntry, getChecksum, getFilename } from './bundle-caching'; +import { + cacheEntry, + getChecksum, + getFilename, +} from './../utils/bundle-caching'; export async function bundleShared( sharedBundles: Record, @@ -172,7 +176,9 @@ export async function bundleShared( bundleCache.persist({ checksum, externals: result, - files: bundleResult.map((r) => r.fileName.split('/').pop() ?? r.fileName), + files: bundleResult.map( + (r) => r.fileName.split(path.sep).pop() ?? r.fileName, + ), }); bundleCache.copyFiles( diff --git a/libs/native-federation-core/src/lib/core/bundle-caching.ts b/libs/native-federation-core/src/lib/utils/bundle-caching.ts similarity index 100% rename from libs/native-federation-core/src/lib/core/bundle-caching.ts rename to libs/native-federation-core/src/lib/utils/bundle-caching.ts