@appshell/webpack-plugin 1.0.0-alpha.75 → 1.0.0-alpha.77
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.
|
@@ -100,4 +100,4 @@ export type OpenedOverlay = {
|
|
|
100
100
|
*
|
|
101
101
|
* @param application `scope/name`
|
|
102
102
|
*/
|
|
103
|
-
export declare const openOverlay: (registry: string, application: string, remotes: Record<string, OverlayRemotePatch>, token?: string, shared?: Record<string, unknown
|
|
103
|
+
export declare const openOverlay: (registry: string, application: string, remotes: Record<string, OverlayRemotePatch>, token?: string, shared?: Record<string, unknown>, shellFlavor?: "prod" | "dev") => Promise<OpenedOverlay>;
|
|
@@ -16,6 +16,19 @@ export type DevHint = {
|
|
|
16
16
|
type DevServerOptions = {
|
|
17
17
|
[index: string]: unknown;
|
|
18
18
|
} | false | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Whether this dev server's hot-reload client has an address it can actually dial.
|
|
21
|
+
*
|
|
22
|
+
* Left unset, webpack-dev-server bakes its own **bind** address into the client it
|
|
23
|
+
* serves. A server listening on every interface therefore tells its client to connect to
|
|
24
|
+
* `0.0.0.0`, which nothing can open a socket to — measured, not inferred. Hot reload then
|
|
25
|
+
* fails silently: the bundle renders and edits never arrive, with no error to say why.
|
|
26
|
+
*
|
|
27
|
+
* It matters more here than it would elsewhere. A remote is loaded into a shell on
|
|
28
|
+
* another origin, so there is no page-relative address to fall back to — and a silent
|
|
29
|
+
* failure is the worst available outcome for the one feature a dev server exists for.
|
|
30
|
+
*/
|
|
31
|
+
export declare const hotSocketIsPinned: (devServer: DevServerOptions) => boolean;
|
|
19
32
|
export declare const devServerOrigin: (devServer: DevServerOptions) => string | undefined;
|
|
20
33
|
/**
|
|
21
34
|
* Records where this package is being served from while a dev server is running, so tooling
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appshell/webpack-plugin",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.77",
|
|
4
4
|
"description": "Webpack plugin used to generate a global Appshell configuration for micro-frontends built with Module Federation",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/types/webpack-plugin/src/index.d.ts",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"plugin"
|
|
34
34
|
],
|
|
35
35
|
"license": "MIT",
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c8dda02034b57d8faec9943b6406b7c299876c40",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@appshell/tokens": "^1.0.0-alpha.
|
|
38
|
+
"@appshell/tokens": "^1.0.0-alpha.77"
|
|
39
39
|
}
|
|
40
40
|
}
|