File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ function federation(mfUserOptions: ModuleFederationOptions): Plugin[] {
69
69
config . optimizeDeps ?. include ?. push ( '@module-federation/runtime' ) ;
70
70
config . optimizeDeps ?. include ?. push ( '__mf__virtual' ) ;
71
71
config . optimizeDeps ?. needsInterop ?. push ( '__mf__virtual' ) ;
72
+ config . optimizeDeps ?. needsInterop ?. push ( getLocalSharedImportMapPath ( ) ) ;
72
73
} ,
73
74
} ,
74
75
...pluginManifest ( ) ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export function getLocalSharedImportMapPath_temp() {
13
13
export function writeLocalSharedImportMap_temp ( content : string ) {
14
14
const localSharedImportMapId = getLocalSharedImportMapPath_temp ( ) ;
15
15
createFile (
16
- localSharedImportMapId ,
16
+ localSharedImportMapId + '.js' ,
17
17
'\n// Windows temporarily needs this file, https://github.com/module-federation/vite/issues/68\n' +
18
18
content
19
19
) ;
You can’t perform that action at this time.
0 commit comments