@genesislcap/webpack-builder 14.170.1-alpha-2fe40dd.0 → 14.171.0
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
1
2
|
import { PackageJson } from 'pkg-types';
|
|
2
3
|
import { container } from 'webpack';
|
|
3
4
|
type ModuleFederationPluginOptions = ConstructorParameters<typeof container.ModuleFederationPlugin>[0];
|
|
@@ -10,6 +11,6 @@ export declare const federatedIndexExists: () => boolean;
|
|
|
10
11
|
export declare const getRemoteEntryUrl: (port: any, host?: string) => string;
|
|
11
12
|
export declare const getRemoteEntry: (name: any, port: any, host?: string) => string;
|
|
12
13
|
export declare const resolveFederationOptions: (options: ModuleFederationPluginOptions, pkg: PackageJson) => ModuleFederationPluginOptions;
|
|
13
|
-
export declare const getFederationPlugins: (federatedIndexPresent: boolean, rootElement: string, options: ModuleFederationPluginOptions, pkg: PackageJson) =>
|
|
14
|
+
export declare const getFederationPlugins: (federatedIndexPresent: boolean, rootElement: string, options: ModuleFederationPluginOptions, pkg: PackageJson) => (HtmlWebpackPlugin | container.ModuleFederationPlugin)[];
|
|
14
15
|
export {};
|
|
15
16
|
//# sourceMappingURL=federation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../src/config/federation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../src/config/federation.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,KAAK,6BAA6B,GAAG,qBAAqB,CACxD,OAAO,SAAS,CAAC,sBAAsB,CACxC,CAAC,CAAC,CAAC,CAAC;AAIL,eAAO,MAAM,mBAAmB,uBAM/B,CAAC;AAIF,eAAO,MAAM,qBAAqB,cAA+C,CAAC;AAElF,eAAO,MAAM,oBAAoB,eAGhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,sCACmB,CAAC;AAElD,eAAO,MAAM,cAAc,iDACiB,CAAC;AAE7C,eAAO,MAAM,wBAAwB,YAC1B,6BAA6B,OACjC,WAAW,KACf,6BAoBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,0BACR,OAAO,eACjB,MAAM,WACV,6BAA6B,OACjC,WAAW,6DAeV,CAAC"}
|
|
@@ -4,7 +4,6 @@ exports.getFederationPlugins = exports.resolveFederationOptions = exports.getRem
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const node_fs_1 = require("node:fs");
|
|
6
6
|
const node_path_1 = require("node:path");
|
|
7
|
-
const dashboard_plugin_1 = tslib_1.__importDefault(require("@module-federation/dashboard-plugin"));
|
|
8
7
|
const camel_case_1 = require("camel-case");
|
|
9
8
|
const html_webpack_plugin_1 = tslib_1.__importDefault(require("html-webpack-plugin"));
|
|
10
9
|
const webpack_1 = require("webpack");
|
|
@@ -59,11 +58,6 @@ const getFederationPlugins = (federatedIndexPresent, rootElement, options, pkg)
|
|
|
59
58
|
minify: false,
|
|
60
59
|
}),
|
|
61
60
|
new ModuleFederationPlugin(options),
|
|
62
|
-
process.env.FEDERATION_DASHABORD_URL &&
|
|
63
|
-
new dashboard_plugin_1.default({
|
|
64
|
-
dashboardURL: `${process.env.FEDERATION_DASHABORD_URL}/api/update`,
|
|
65
|
-
publishVersion: pkg.version,
|
|
66
|
-
}),
|
|
67
61
|
]
|
|
68
62
|
: [];
|
|
69
63
|
exports.getFederationPlugins = getFederationPlugins;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/webpack-builder",
|
|
3
3
|
"description": "Webpack builder",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.171.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
"dev": "tsc -b ./tsconfig.json -w"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@genesislcap/build-kit": "14.
|
|
19
|
-
"@module-federation/dashboard-plugin": "2.8.0-beta.8",
|
|
18
|
+
"@genesislcap/build-kit": "14.171.0",
|
|
20
19
|
"@pixability-ui/federated-types": "^0.2.0",
|
|
21
20
|
"@types/webpack-env": "^1.18.4",
|
|
22
21
|
"camel-case": "^4.1.2",
|
|
@@ -58,5 +57,5 @@
|
|
|
58
57
|
"publishConfig": {
|
|
59
58
|
"access": "public"
|
|
60
59
|
},
|
|
61
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "312d2536cdfdd0c1b2c00dd623cc863edac31d7a"
|
|
62
61
|
}
|
package/src/config/federation.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
|
-
import DashboardPlugin from '@module-federation/dashboard-plugin';
|
|
4
3
|
import { camelCase } from 'camel-case';
|
|
5
4
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
6
5
|
import { PackageJson } from 'pkg-types';
|
|
@@ -82,10 +81,5 @@ export const getFederationPlugins = (
|
|
|
82
81
|
minify: false,
|
|
83
82
|
}),
|
|
84
83
|
new ModuleFederationPlugin(options),
|
|
85
|
-
process.env.FEDERATION_DASHABORD_URL &&
|
|
86
|
-
new DashboardPlugin({
|
|
87
|
-
dashboardURL: `${process.env.FEDERATION_DASHABORD_URL}/api/update`,
|
|
88
|
-
publishVersion: pkg.version,
|
|
89
|
-
}),
|
|
90
84
|
]
|
|
91
85
|
: [];
|