forked from module-federation/vite
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.ts
More file actions
40 lines (34 loc) · 1010 Bytes
/
index.ts
File metadata and controls
40 lines (34 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { writeHostAutoInit, writeLocalSharedImportMap } from './virtualRemoteEntry';
import { writeRuntimeInitStatus } from './virtualRuntimeInitStatus';
export {
addUsedShares,
generateLocalSharedImportMap,
generateRemoteEntry,
getHostAutoInitImportId,
getHostAutoInitPath,
getLocalSharedImportMapPath,
getUsedShares,
REMOTE_ENTRY_ID,
writeLocalSharedImportMap,
} from './virtualRemoteEntry';
export {
addUsedRemote,
generateRemotes,
getRemoteVirtualModule,
getUsedRemotesMap,
} from './virtualRemotes';
export {
getLoadShareModulePath,
getPreBuildLibImportId,
LOAD_SHARE_TAG,
PREBUILD_TAG,
writeLoadShareModule,
writePreBuildLibPath,
} from './virtualShared_preBuild';
export { generateExposes, VIRTUAL_EXPOSES } from './virtualExposes';
export { virtualRuntimeInitStatus } from './virtualRuntimeInitStatus';
export function initVirtualModules(command: string = 'serve') {
writeLocalSharedImportMap();
writeHostAutoInit();
writeRuntimeInitStatus(command);
}