Skip to content

Commit 277ba84

Browse files
add base dir to the exposed file path
1 parent 5127edf commit 277ba84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/lib/src/dev/expose-development.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function devExposePlugin(
3636
const importPath = normalizePath(item[1].import)
3737
const exposeFilepath = normalizePath(resolve(item[1].import))
3838
moduleMap += `\n"${item[0]}":() => {
39-
return __federation_import('/${importPath}', '/@fs/${exposeFilepath}').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},`
39+
return __federation_import('/${importPath}', '${baseDir}@fs/${exposeFilepath}').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},`
4040
}
4141
const remoteFile = `(${importShared})();
4242
import RefreshRuntime from "${baseDir}@react-refresh"

0 commit comments

Comments
 (0)