@module-federation/manifest 0.1.4 → 0.1.5

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.
package/dist/package.json DELETED
@@ -1,45 +0,0 @@
1
- {
2
- "name": "@module-federation/manifest",
3
- "version": "0.1.4",
4
- "license": "MIT",
5
- "description": "Provide manifest/stats for webpack/rspack MF project .",
6
- "keywords": [
7
- "Module Federation",
8
- "Webpack",
9
- "Rspack",
10
- "Manifest"
11
- ],
12
- "files": [
13
- "dist/",
14
- "README.md"
15
- ],
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "author": "hanric <hanric.zhang@gmail.com>",
20
- "sideEffects": false,
21
- "main": "./index.cjs.js",
22
- "module": "./index.esm.js",
23
- "types": "./dist/index.cjs.d.ts",
24
- "dependencies": {
25
- "@module-federation/sdk": "workspace:*",
26
- "@module-federation/dts-plugin": "workspace:*",
27
- "@module-federation/managers": "workspace:*",
28
- "find-pkg": "2.0.0",
29
- "chalk": "3.0.0"
30
- },
31
- "exports": {
32
- ".": {
33
- "import": "./dist/index.esm.js",
34
- "require": "./dist/index.cjs.js",
35
- "types": "./dist/index.cjs.d.ts"
36
- }
37
- },
38
- "typesVersions": {
39
- "*": {
40
- ".": [
41
- "./dist/index.cjs.d.ts"
42
- ]
43
- }
44
- }
45
- }
@@ -1,17 +0,0 @@
1
- import { Stats, Manifest, moduleFederationPlugin } from '@module-federation/sdk';
2
- import type { Compilation, Compiler } from 'webpack';
3
- interface GenerateManifestOptions {
4
- compilation: Compilation;
5
- stats: Stats;
6
- publicPath: string;
7
- compiler: Compiler;
8
- }
9
- declare class ManifestManager {
10
- private _options;
11
- private _manifest?;
12
- get manifest(): Manifest | undefined;
13
- init(options: moduleFederationPlugin.ModuleFederationPluginOptions): void;
14
- get fileName(): string;
15
- generateManifest(options: GenerateManifestOptions): void;
16
- }
17
- export { ManifestManager };
@@ -1,26 +0,0 @@
1
- import { StatsExpose, StatsRemote, StatsShared, moduleFederationPlugin } from '@module-federation/sdk';
2
- import type { StatsModule } from 'webpack';
3
- declare class ModuleHandler {
4
- private _options;
5
- private _bundler;
6
- private _modules;
7
- private _remoteManager;
8
- private _sharedManager;
9
- constructor(options: moduleFederationPlugin.ModuleFederationPluginOptions, modules: StatsModule[], { bundler }: {
10
- bundler: 'webpack' | 'rspack';
11
- });
12
- get isRspack(): boolean;
13
- private _handleSharedModule;
14
- private _handleRemoteModule;
15
- private _handleContainerModule;
16
- collect(): {
17
- remotes: StatsRemote[];
18
- exposesMap: {
19
- [exposeImportValue: string]: StatsExpose;
20
- };
21
- sharedMap: {
22
- [sharedKey: string]: StatsShared;
23
- };
24
- };
25
- }
26
- export { ModuleHandler };
@@ -1,27 +0,0 @@
1
- import { StatsBuildInfo, Stats, moduleFederationPlugin } from '@module-federation/sdk';
2
- import { Compilation, Compiler } from 'webpack';
3
- declare class StatsManager {
4
- private _options;
5
- private _publicPath?;
6
- private _pluginVersion?;
7
- private _bundler;
8
- private _containerManager;
9
- private _remoteManager;
10
- private _sharedManager;
11
- private _pkgJsonManager;
12
- get buildInfo(): StatsBuildInfo;
13
- get fileName(): string;
14
- private _getMetaData;
15
- private _getFilteredModules;
16
- private _getModuleAssets;
17
- private _getProvideSharedAssets;
18
- private _generateStats;
19
- getPublicPath(compiler: Compiler): string;
20
- init(options: moduleFederationPlugin.ModuleFederationPluginOptions, { pluginVersion, bundler, }: {
21
- pluginVersion: string;
22
- bundler: 'webpack' | 'rspack';
23
- }): void;
24
- generateStats(compiler: Compiler, compilation: Compilation, extraOptions?: {}): Promise<Stats>;
25
- validate(compiler: Compiler): boolean;
26
- }
27
- export { StatsManager };
@@ -1,14 +0,0 @@
1
- import { Compiler, WebpackPluginInstance } from 'webpack';
2
- import { moduleFederationPlugin } from '@module-federation/sdk';
3
- export declare class StatsPlugin implements WebpackPluginInstance {
4
- readonly name = "StatsPlugin";
5
- private _options;
6
- private _statsManager;
7
- private _manifestManager;
8
- private _enable;
9
- constructor(options: moduleFederationPlugin.ModuleFederationPluginOptions, { pluginVersion, bundler, }: {
10
- pluginVersion: string;
11
- bundler: 'webpack' | 'rspack';
12
- });
13
- apply(compiler: Compiler): void;
14
- }
@@ -1,2 +0,0 @@
1
- export declare const PLUGIN_IDENTIFIER = "Module Federation Manifest Plugin";
2
- export declare const HOT_UPDATE_SUFFIX = ".hot-update";
@@ -1,3 +0,0 @@
1
- export { StatsPlugin } from './StatsPlugin';
2
- export { ManifestManager } from './ManifestManager';
3
- export { StatsManager } from './StatsManager';
@@ -1,18 +0,0 @@
1
- import { Chunk, Compilation, StatsCompilation, StatsModule } from 'webpack';
2
- import { StatsAssets, moduleFederationPlugin, MetaDataTypes } from '@module-federation/sdk';
3
- export declare function getAssetsByChunkIDs(compilation: Compilation, chunkIDMap: Record<string, Set<string | number>>): Record<string, {
4
- js: string[];
5
- css: string[];
6
- }>;
7
- export declare function findChunk(id: string | number, chunks: Set<Chunk>): Chunk | void;
8
- export declare function getSharedModules(stats: StatsCompilation, sharedModules: StatsModule[]): [string, StatsModule][];
9
- export declare function getAssetsByChunk(chunk: Chunk): StatsAssets;
10
- export declare function assert(condition: any, msg: string): asserts condition;
11
- export declare function error(msg: string | Error | unknown): never;
12
- export declare function isDev(): boolean;
13
- export declare function getFileNameWithOutExt(str: string): string;
14
- export declare function getFileName(manifestOptions?: moduleFederationPlugin.ModuleFederationPluginOptions['manifest']): {
15
- statsFileName: string;
16
- manifestFileName: string;
17
- };
18
- export declare function getTypesMetaInfo(pluginOptions: moduleFederationPlugin.ModuleFederationPluginOptions, context: string): MetaDataTypes;