Skip to content

Commit

Permalink
fix: keep cache inside node_modules by default to avoid problems with…
Browse files Browse the repository at this point in the history
… prettier and eslint (#139)
  • Loading branch information
mshima authored Oct 4, 2024
1 parent c07d912 commit 23910d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/localSharedImportMap_temp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ import { packageNameEncode } from './packageNameUtils';

export function getLocalSharedImportMapPath_temp() {
const { name } = getNormalizeModuleFederationOptions();
return path.resolve('.__mf__temp', packageNameEncode(name), 'localSharedImportMap');
return path.resolve(
'node_modules',
'.__mf__temp',
packageNameEncode(name),
'localSharedImportMap'
);
}
export function writeLocalSharedImportMap_temp(content: string) {
const localSharedImportMapId = getLocalSharedImportMapPath_temp();
Expand Down

0 comments on commit 23910d2

Please # to comment.