@module-federation/vite 1.10.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +4 -1
  2. package/lib/index.cjs +1819 -1963
  3. package/lib/index.d.cts +131 -0
  4. package/lib/index.d.mts +131 -0
  5. package/lib/index.mjs +1946 -0
  6. package/package.json +29 -18
  7. package/lib/index.d.ts +0 -4
  8. package/lib/index.esm.js +0 -2091
  9. package/lib/index.modern.js +0 -2123
  10. package/lib/index.umd.js +0 -2112
  11. package/lib/plugins/__tests__/pluginCheckAliasConflicts.test.d.ts +0 -1
  12. package/lib/plugins/__tests__/pluginDts.test.d.ts +0 -1
  13. package/lib/plugins/pluginAddEntry.d.ts +0 -10
  14. package/lib/plugins/pluginCheckAliasConflicts.d.ts +0 -9
  15. package/lib/plugins/pluginDevProxyModuleTopLevelAwait.d.ts +0 -2
  16. package/lib/plugins/pluginDts.d.ts +0 -3
  17. package/lib/plugins/pluginMFManifest.d.ts +0 -3
  18. package/lib/plugins/pluginModuleParseEnd.d.ts +0 -10
  19. package/lib/plugins/pluginProxyRemoteEntry.d.ts +0 -2
  20. package/lib/plugins/pluginProxyRemotes.d.ts +0 -3
  21. package/lib/plugins/pluginProxySharedModule_preBuild.d.ts +0 -7
  22. package/lib/utils/PromiseStore.d.ts +0 -16
  23. package/lib/utils/VirtualModule.d.ts +0 -26
  24. package/lib/utils/__tests__/VirtualModule.test.d.ts +0 -1
  25. package/lib/utils/__tests__/cssModuleHelpers.test.d.ts +0 -1
  26. package/lib/utils/__tests__/helpers.d.ts +0 -2
  27. package/lib/utils/__tests__/normalizeModuleFederationOption.test.d.ts +0 -1
  28. package/lib/utils/__tests__/publicPath.test.d.ts +0 -1
  29. package/lib/utils/__tests__/serializeRuntimeOptions.test.d.ts +0 -1
  30. package/lib/utils/aliasToArrayPlugin.d.ts +0 -10
  31. package/lib/utils/cssModuleHelpers.d.ts +0 -75
  32. package/lib/utils/localSharedImportMap_temp.d.ts +0 -2
  33. package/lib/utils/mapCodeToCodeWithSourcemap.d.ts +0 -4
  34. package/lib/utils/normalizeModuleFederationOptions.d.ts +0 -159
  35. package/lib/utils/normalizeOptimizeDeps.d.ts +0 -9
  36. package/lib/utils/packageNameUtils.d.ts +0 -22
  37. package/lib/utils/publicPath.d.ts +0 -9
  38. package/lib/utils/serializeRuntimeOptions.d.ts +0 -10
  39. package/lib/utils/wrapManualChunks.d.ts +0 -1
  40. package/lib/virtualModules/index.d.ts +0 -6
  41. package/lib/virtualModules/virtualExposes.d.ts +0 -2
  42. package/lib/virtualModules/virtualRemoteEntry.d.ts +0 -16
  43. package/lib/virtualModules/virtualRemotes.d.ts +0 -6
  44. package/lib/virtualModules/virtualRuntimeInitStatus.d.ts +0 -3
  45. package/lib/virtualModules/virtualShared_preBuild.d.ts +0 -17
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import { Plugin } from 'vite';
2
- import { NormalizedModuleFederationOptions } from '../utils/normalizeModuleFederationOptions';
3
- interface AddEntryOptions {
4
- entryName: string;
5
- entryPath: string;
6
- fileName?: string;
7
- inject?: NormalizedModuleFederationOptions['hostInitInjectLocation'];
8
- }
9
- declare const addEntry: ({ entryName, entryPath, fileName, inject, }: AddEntryOptions) => Plugin[];
10
- export default addEntry;
@@ -1,9 +0,0 @@
1
- import type { Plugin } from 'vite';
2
- import { NormalizedShared } from '../utils/normalizeModuleFederationOptions';
3
- /**
4
- * Check if user-defined alias conflicts with shared modules
5
- * This should run after aliasToArrayPlugin to ensure alias is an array
6
- */
7
- export declare function checkAliasConflicts(options: {
8
- shared?: NormalizedShared;
9
- }): Plugin;
@@ -1,2 +0,0 @@
1
- import { Plugin } from 'vite';
2
- export declare function PluginDevProxyModuleTopLevelAwait(): Plugin;
@@ -1,3 +0,0 @@
1
- import type { Plugin } from 'vite';
2
- import type { NormalizedModuleFederationOptions } from '../utils/normalizeModuleFederationOptions';
3
- export default function pluginDts(options: NormalizedModuleFederationOptions): Plugin[];
@@ -1,3 +0,0 @@
1
- import { Plugin } from 'vite';
2
- declare const Manifest: () => Plugin[];
3
- export default Manifest;
@@ -1,10 +0,0 @@
1
- /**
2
- * Dynamic shared modules, such as "react/" and "react-dom/", can only be parsed during the build process;
3
- * This plugin allows me to wait until all modules are built, and then expose them together.
4
- */
5
- import { Plugin } from 'vite';
6
- declare let parsePromise: Promise<unknown>;
7
- export default function (excludeFn: Function, options: {
8
- moduleParseTimeout: number;
9
- }): Plugin[];
10
- export { parsePromise };
@@ -1,2 +0,0 @@
1
- import { Plugin } from 'vite';
2
- export default function (): Plugin;
@@ -1,3 +0,0 @@
1
- import { Plugin } from 'vite';
2
- import { NormalizedModuleFederationOptions } from '../utils/normalizeModuleFederationOptions';
3
- export default function (options: NormalizedModuleFederationOptions): Plugin;
@@ -1,7 +0,0 @@
1
- import { Plugin } from 'vite';
2
- import { NormalizedShared } from '../utils/normalizeModuleFederationOptions';
3
- export declare function proxySharedModule(options: {
4
- shared?: NormalizedShared;
5
- include?: string | string[];
6
- exclude?: string | string[];
7
- }): Plugin[];
@@ -1,16 +0,0 @@
1
- /**
2
- * example:
3
- * const store = new PromiseStore<number>();
4
- * store.get("example").then((result) => {
5
- * console.log("Result from example:", result); // 42
6
- * });
7
- * setTimeout(() => {
8
- * store.set("example", Promise.resolve(42));
9
- * }, 2000);
10
- */
11
- export declare class PromiseStore<T> {
12
- private promiseMap;
13
- private resolveMap;
14
- set(id: string, promise: Promise<T>): void;
15
- get(id: string): Promise<T>;
16
- }
@@ -1,26 +0,0 @@
1
- export declare function getSuffix(name: string): string;
2
- /**
3
- * Physically generate files as virtual modules under node_modules/__mf__virtual/*
4
- */
5
- export declare function assertModuleFound(tag: string, str?: string): VirtualModule;
6
- export default class VirtualModule {
7
- name: string;
8
- tag: string;
9
- suffix: string;
10
- inited: boolean;
11
- /**
12
- * Set the root path for finding node_modules
13
- * @param root - Root path
14
- */
15
- static setRoot(root: string): void;
16
- /**
17
- * Ensure virtual package directory exists
18
- */
19
- static ensureVirtualPackageExists(): void;
20
- static findModule(tag: string, str?: string): VirtualModule | undefined;
21
- constructor(name: string, tag?: string, suffix?: string);
22
- getPath(): string;
23
- getImportId(): string;
24
- writeSync(code: string, force?: boolean): void;
25
- write(code: string): void;
26
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import type { NormalizedModuleFederationOptions } from '../normalizeModuleFederationOptions';
2
- export declare function getDefaultMockOptions(overrides?: Partial<NormalizedModuleFederationOptions>): NormalizedModuleFederationOptions;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import { UserConfig } from 'vite';
2
- export interface Command {
3
- }
4
- declare const _default: {
5
- name: string;
6
- config: (config: UserConfig, { command }: {
7
- command: Command;
8
- }) => void;
9
- };
10
- export default _default;
@@ -1,75 +0,0 @@
1
- export type OutputBundleItem = {
2
- type: 'chunk' | 'asset';
3
- name?: string;
4
- fileName: string;
5
- modules?: Record<string, unknown> | undefined;
6
- dynamicImports?: string[] | undefined;
7
- };
8
- export declare const ASSET_TYPES: readonly ["js", "css"];
9
- export declare const LOAD_TIMINGS: readonly ["sync", "async"];
10
- export declare const JS_EXTENSIONS: readonly [".ts", ".tsx", ".jsx", ".mjs", ".cjs"];
11
- export type AssetType = (typeof ASSET_TYPES)[number];
12
- export type AssetMap = {
13
- sync: string[];
14
- async: string[];
15
- };
16
- export type PreloadMap = Record<string, {
17
- [K in (typeof ASSET_TYPES)[number]]: AssetMap;
18
- }>;
19
- /**
20
- * Creates an empty asset map structure for tracking JS and CSS assets
21
- * @returns Initialized asset map with sync/async arrays for JS and CSS
22
- */
23
- export declare const createEmptyAssetMap: () => {
24
- js: AssetMap;
25
- css: AssetMap;
26
- };
27
- /**
28
- * Tracks an asset in the preload map with deduplication
29
- * @param map - The preload map to update
30
- * @param key - The module key to track under
31
- * @param fileName - The asset filename to track
32
- * @param isAsync - Whether the asset is loaded async
33
- * @param type - The asset type ('js' or 'css')
34
- */
35
- export declare const trackAsset: (map: PreloadMap, key: string, fileName: string, isAsync: boolean, type: AssetType) => void;
36
- /**
37
- * Checks if a file is a CSS file by extension
38
- * @param fileName - The filename to check
39
- * @returns True if file has a CSS extension (.css, .scss, .less)
40
- */
41
- export declare const isCSSFile: (fileName: string) => boolean;
42
- /**
43
- * Collects all CSS assets from the bundle
44
- * @param bundle - The Rollup output bundle
45
- * @returns Set of CSS asset filenames
46
- */
47
- export declare const collectCssAssets: (bundle: Record<string, OutputBundleItem>) => Set<string>;
48
- /**
49
- * Processes module assets and tracks them in the files map
50
- * @param bundle - The Rollup output bundle
51
- * @param filesMap - The preload map to populate
52
- * @param moduleMatcher - Function that matches module paths to keys
53
- */
54
- export declare const processModuleAssets: (bundle: Record<string, OutputBundleItem>, filesMap: PreloadMap, moduleMatcher: (modulePath: string) => string | undefined) => void;
55
- /**
56
- * Adds global CSS assets to all module exports
57
- * @param filesMap - The preload map to update
58
- * @param cssAssets - Set of CSS asset filenames to add
59
- */
60
- export declare const addCssAssetsToAllExports: (filesMap: PreloadMap, cssAssets: Set<string>) => void;
61
- /**
62
- * Deduplicates assets in the files map
63
- * @param filesMap - The preload map to deduplicate
64
- * @returns New deduplicated preload map
65
- */
66
- export declare const deduplicateAssets: (filesMap: PreloadMap) => PreloadMap;
67
- /**
68
- * Builds a mapping between module files and their share keys
69
- * @param shareKeys - Set of share keys to map
70
- * @param resolveFn - Function to resolve module paths
71
- * @returns Map of file paths to their corresponding share keys
72
- */
73
- export declare const buildFileToShareKeyMap: (shareKeys: Set<string>, resolveFn: (id: string) => Promise<{
74
- id: string;
75
- } | null>) => Promise<Map<string, string>>;
@@ -1,2 +0,0 @@
1
- export declare function getLocalSharedImportMapPath_temp(): string;
2
- export declare function writeLocalSharedImportMap_temp(content: string): void;
@@ -1,4 +0,0 @@
1
- export declare function mapCodeToCodeWithSourcemap(code?: string | Promise<string>): Promise<{
2
- code: string;
3
- map: import("magic-string").SourceMap;
4
- } | undefined>;
@@ -1,159 +0,0 @@
1
- import { SharedConfig, ShareStrategy } from '@module-federation/runtime/types';
2
- import type { sharePlugin } from '@module-federation/sdk';
3
- export type RemoteEntryType = 'var' | 'module' | 'assign' | 'assign-properties' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system' | string;
4
- interface ExposesItem {
5
- import: string;
6
- }
7
- export interface NormalizedShared {
8
- [key: string]: ShareItem;
9
- }
10
- export interface RemoteObjectConfig {
11
- type?: string;
12
- name: string;
13
- entry: string;
14
- entryGlobalName?: string;
15
- shareScope?: string;
16
- }
17
- export declare function normalizeRemotes(remotes: Record<string, string | RemoteObjectConfig> | undefined): Record<string, RemoteObjectConfig>;
18
- export interface ShareItem {
19
- name: string;
20
- version: string | undefined;
21
- scope: string;
22
- from: string;
23
- shareConfig: SharedConfig & sharePlugin.SharedConfig;
24
- }
25
- interface ManifestOptions {
26
- filePath?: string;
27
- disableAssetsAnalyze?: boolean;
28
- fileName?: string;
29
- }
30
- export type ModuleFederationOptions = {
31
- exposes?: Record<string, string | {
32
- import: string;
33
- }> | undefined;
34
- filename?: string;
35
- library?: any;
36
- name: string;
37
- remotes?: Record<string, string | RemoteObjectConfig> | undefined;
38
- runtime?: any;
39
- shareScope?: string;
40
- /**
41
- * Override the public path used for remote entries
42
- * Defaults to Vite's base config or "auto" if base is empty
43
- */
44
- publicPath?: string;
45
- /**
46
- * Controls whether all CSS assets from the bundle should be added to every exposed module.
47
- * When false (default), the plugin will not process any CSS assets.
48
- * When true, all CSS assets are bundled into every exposed module.
49
- */
50
- bundleAllCSS?: boolean;
51
- shared?: string[] | Record<string, string | {
52
- name?: string;
53
- version?: string;
54
- shareScope?: string;
55
- singleton?: boolean;
56
- requiredVersion?: string;
57
- strictVersion?: boolean;
58
- import?: sharePlugin.SharedConfig['import'];
59
- }> | undefined;
60
- runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
61
- getPublicPath?: string;
62
- implementation?: string;
63
- manifest?: ManifestOptions | boolean;
64
- dev?: boolean | PluginDevOptions;
65
- dts?: boolean | PluginDtsOptions;
66
- shareStrategy?: ShareStrategy;
67
- ignoreOrigin?: boolean;
68
- virtualModuleDir?: string;
69
- hostInitInjectLocation?: HostInitInjectLocationOptions;
70
- /**
71
- * Timeout for parsing modules in seconds.
72
- * Defaults to 10 seconds.
73
- */
74
- moduleParseTimeout?: number;
75
- };
76
- export interface NormalizedModuleFederationOptions {
77
- exposes: Record<string, ExposesItem>;
78
- filename: string;
79
- library: any;
80
- name: string;
81
- remotes: Record<string, RemoteObjectConfig>;
82
- runtime: any;
83
- shareScope: string;
84
- shared: NormalizedShared;
85
- runtimePlugins: Array<string | [string, Record<string, unknown>]>;
86
- implementation: string;
87
- manifest: ManifestOptions | boolean;
88
- dev?: boolean | PluginDevOptions;
89
- dts?: boolean | PluginDtsOptions;
90
- shareStrategy: ShareStrategy;
91
- getPublicPath?: string;
92
- publicPath?: string;
93
- ignoreOrigin?: boolean;
94
- virtualModuleDir: string;
95
- hostInitInjectLocation: HostInitInjectLocationOptions;
96
- /**
97
- * Controls whether all CSS assets from the bundle should be added to every exposed module.
98
- * When false (default), the plugin will not process any CSS assets.
99
- * When true, all CSS assets are bundled into every exposed module.
100
- */
101
- bundleAllCSS: boolean;
102
- moduleParseTimeout: number;
103
- }
104
- type HostInitInjectLocationOptions = 'entry' | 'html';
105
- interface PluginDevOptions {
106
- disableLiveReload?: boolean;
107
- disableHotTypesReload?: boolean;
108
- disableDynamicRemoteTypeHints?: boolean;
109
- }
110
- interface RemoteTypeUrl {
111
- alias?: string;
112
- api: string;
113
- zip: string;
114
- }
115
- interface RemoteTypeUrls {
116
- [remoteName: string]: RemoteTypeUrl;
117
- }
118
- interface PluginDtsOptions {
119
- generateTypes?: boolean | DtsRemoteOptions;
120
- consumeTypes?: boolean | DtsHostOptions;
121
- tsConfigPath?: string;
122
- extraOptions?: Record<string, unknown>;
123
- implementation?: string;
124
- cwd?: string;
125
- displayErrorInTerminal?: boolean;
126
- }
127
- interface DtsRemoteOptions {
128
- tsConfigPath?: string;
129
- typesFolder?: string;
130
- compiledTypesFolder?: string;
131
- deleteTypesFolder?: boolean;
132
- additionalFilesToCompile?: string[];
133
- compilerInstance?: 'tsc' | 'vue-tsc' | 'tspc' | string;
134
- compileInChildProcess?: boolean;
135
- generateAPITypes?: boolean;
136
- extractThirdParty?: boolean | {
137
- exclude?: Array<string | RegExp>;
138
- };
139
- extractRemoteTypes?: boolean;
140
- abortOnError?: boolean;
141
- deleteTsConfig?: boolean;
142
- }
143
- interface DtsHostOptions {
144
- typesFolder?: string;
145
- abortOnError?: boolean;
146
- remoteTypesFolder?: string;
147
- deleteTypesFolder?: boolean;
148
- maxRetries?: number;
149
- consumeAPITypes?: boolean;
150
- runtimePkgs?: string[];
151
- remoteTypeUrls?: (() => Promise<RemoteTypeUrls>) | RemoteTypeUrls;
152
- timeout?: number;
153
- family?: 4 | 6;
154
- typesOnBuild?: boolean;
155
- }
156
- export declare function getNormalizeModuleFederationOptions(): NormalizedModuleFederationOptions;
157
- export declare function getNormalizeShareItem(key: string): ShareItem;
158
- export declare function normalizeModuleFederationOptions(options: ModuleFederationOptions): NormalizedModuleFederationOptions;
159
- export {};
@@ -1,9 +0,0 @@
1
- import { UserConfig } from 'vite';
2
- export interface Command {
3
- command: string;
4
- }
5
- declare const _default: {
6
- name: string;
7
- config: (config: UserConfig, { command }: Command) => void;
8
- };
9
- export default _default;
@@ -1,22 +0,0 @@
1
- /**
2
- * Escaping rules:
3
- * Convert using the format __${mapping}__, where _ and $ are not allowed in npm package names but can be used in variable names.
4
- * @ => 1
5
- * / => 2
6
- * - => 3
7
- * . => 4
8
- */
9
- /**
10
- * Encodes a package name into a valid file name.
11
- * @param {string} name - The package name, e.g., "@scope/xx-xx.xx".
12
- * @returns {string} - The encoded file name.
13
- */
14
- export declare function packageNameEncode(name: string): string;
15
- /**
16
- * Decodes an encoded file name back to the original package name.
17
- * @param {string} encoded - The encoded file name, e.g., "_mf_0_scope_mf_1_xx_mf_2_xx_mf_3_xx".
18
- * @returns {string} - The decoded package name.
19
- */
20
- export declare function packageNameDecode(encoded: string): string;
21
- export declare function removePathFromNpmPackage(packageString: string): string;
22
- export declare function getExtFromNpmPackage(packageString: string): string | undefined;
@@ -1,9 +0,0 @@
1
- import { NormalizedModuleFederationOptions } from './normalizeModuleFederationOptions';
2
- /**
3
- * Resolves the public path for remote entries
4
- * @param options - Module Federation options
5
- * @param viteBase - Vite's base config value
6
- * @param originalBase - Original base config before any transformations
7
- * @returns The resolved public path
8
- */
9
- export declare function resolvePublicPath(options: NormalizedModuleFederationOptions, viteBase: string, originalBase?: string): string;
@@ -1,10 +0,0 @@
1
- /**
2
- * Serializes a JavaScript object into a string of source code that can be evaluated.
3
- * This function is used to create runtime plugin options without relying solely on JSON.stringify,
4
- * allowing support for non-JSON types like RegExp, Date, Map, Set, and Functions.
5
- * It also safely handles circular references.
6
- *
7
- * @param {Record<string, unknown>} options - The options object to serialize.
8
- * @returns {string} The resulting JavaScript source code string.
9
- */
10
- export declare function serializeRuntimeOptions(options: Record<string, unknown>): string;
@@ -1 +0,0 @@
1
- export declare function wrapManualChunks(output: any, manualChunksCb: Function): void;
@@ -1,6 +0,0 @@
1
- export { addUsedShares, generateLocalSharedImportMap, generateRemoteEntry, getHostAutoInitImportId, getHostAutoInitPath, getLocalSharedImportMapPath, getUsedShares, REMOTE_ENTRY_ID, writeLocalSharedImportMap, } from './virtualRemoteEntry';
2
- export { addUsedRemote, generateRemotes, getRemoteVirtualModule, getUsedRemotesMap, } from './virtualRemotes';
3
- export { getLoadShareModulePath, getPreBuildLibImportId, LOAD_SHARE_TAG, PREBUILD_TAG, writeLoadShareModule, writePreBuildLibPath, } from './virtualShared_preBuild';
4
- export { generateExposes, VIRTUAL_EXPOSES } from './virtualExposes';
5
- export { virtualRuntimeInitStatus } from './virtualRuntimeInitStatus';
6
- export declare function initVirtualModules(): void;
@@ -1,2 +0,0 @@
1
- export declare const VIRTUAL_EXPOSES = "virtual:mf-exposes";
2
- export declare function generateExposes(): string;
@@ -1,16 +0,0 @@
1
- import { NormalizedModuleFederationOptions } from '../utils/normalizeModuleFederationOptions';
2
- export declare function getUsedShares(): Set<string>;
3
- export declare function addUsedShares(pkg: string): void;
4
- export declare function getLocalSharedImportMapPath(): string;
5
- export declare function writeLocalSharedImportMap(): void;
6
- export declare function generateLocalSharedImportMap(): string;
7
- export declare const REMOTE_ENTRY_ID = "virtual:mf-REMOTE_ENTRY_ID";
8
- export declare function generateRemoteEntry(options: NormalizedModuleFederationOptions): string;
9
- /**
10
- * Inject entry file, automatically init when used as host,
11
- * and will not inject remoteEntry
12
- */
13
- export declare const HOST_AUTO_INIT_TAG = "__H_A_I__";
14
- export declare function writeHostAutoInit(): void;
15
- export declare function getHostAutoInitImportId(): string;
16
- export declare function getHostAutoInitPath(): string;
@@ -1,6 +0,0 @@
1
- import VirtualModule from '../utils/VirtualModule';
2
- export declare const LOAD_REMOTE_TAG = "__loadRemote__";
3
- export declare function getRemoteVirtualModule(remote: string, command: string): VirtualModule;
4
- export declare function addUsedRemote(remoteKey: string, remoteModule: string): void;
5
- export declare function getUsedRemotesMap(): Record<string, Set<string>>;
6
- export declare function generateRemotes(id: string, command: string): string;
@@ -1,3 +0,0 @@
1
- import VirtualModule from '../utils/VirtualModule';
2
- export declare const virtualRuntimeInitStatus: VirtualModule;
3
- export declare function writeRuntimeInitStatus(): void;
@@ -1,17 +0,0 @@
1
- /**
2
- * Even the resolveId hook cannot interfere with vite pre-build,
3
- * and adding query parameter virtual modules will also fail.
4
- * You can only proxy to the real file through alias
5
- */
6
- /**
7
- * shared will be proxied:
8
- * 1. __prebuild__: export shareModule (pre-built source code of modules such as vue, react, etc.)
9
- * 2. __loadShare__: load shareModule (mfRuntime.loadShare('vue'))
10
- */
11
- import { ShareItem } from '../utils/normalizeModuleFederationOptions';
12
- export declare const PREBUILD_TAG = "__prebuild__";
13
- export declare function writePreBuildLibPath(pkg: string): void;
14
- export declare function getPreBuildLibImportId(pkg: string): string;
15
- export declare const LOAD_SHARE_TAG = "__loadShare__";
16
- export declare function getLoadShareModulePath(pkg: string): string;
17
- export declare function writeLoadShareModule(pkg: string, shareItem: ShareItem, command: string): void;