@module-federation/inject-external-runtime-core-plugin 0.15.0 → 0.17.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.
- package/dist/index.cjs.cjs +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/src/index.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.cjs.cjs
CHANGED
|
@@ -18,10 +18,10 @@ var runtimeCore__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeCore);
|
|
|
18
18
|
function injectExternalRuntimeCorePlugin() {
|
|
19
19
|
return {
|
|
20
20
|
name: 'inject-external-runtime-core-plugin',
|
|
21
|
-
version: "0.
|
|
21
|
+
version: "0.17.0",
|
|
22
22
|
beforeInit (args) {
|
|
23
23
|
const name = args.options.name;
|
|
24
|
-
const version = "0.
|
|
24
|
+
const version = "0.17.0";
|
|
25
25
|
if (runtimeCore__namespace.Global._FEDERATION_RUNTIME_CORE && runtimeCore__namespace.Global._FEDERATION_RUNTIME_CORE_FROM && (runtimeCore__namespace.Global._FEDERATION_RUNTIME_CORE_FROM.name !== name || runtimeCore__namespace.Global._FEDERATION_RUNTIME_CORE_FROM.version !== version)) {
|
|
26
26
|
console.warn(`Detect multiple module federation runtime! Injected runtime from ${runtimeCore__namespace.Global._FEDERATION_RUNTIME_CORE_FROM.name}@${runtimeCore__namespace.Global._FEDERATION_RUNTIME_CORE_FROM.version} and current is ${name}@${version}, pleasure ensure there is only one consumer to provider runtime!`);
|
|
27
27
|
return args;
|
package/dist/index.esm.js
CHANGED
|
@@ -3,10 +3,10 @@ import * as runtimeCore from '@module-federation/runtime-tools/runtime-core';
|
|
|
3
3
|
function injectExternalRuntimeCorePlugin() {
|
|
4
4
|
return {
|
|
5
5
|
name: 'inject-external-runtime-core-plugin',
|
|
6
|
-
version: "0.
|
|
6
|
+
version: "0.17.0",
|
|
7
7
|
beforeInit (args) {
|
|
8
8
|
const name = args.options.name;
|
|
9
|
-
const version = "0.
|
|
9
|
+
const version = "0.17.0";
|
|
10
10
|
if (runtimeCore.Global._FEDERATION_RUNTIME_CORE && runtimeCore.Global._FEDERATION_RUNTIME_CORE_FROM && (runtimeCore.Global._FEDERATION_RUNTIME_CORE_FROM.name !== name || runtimeCore.Global._FEDERATION_RUNTIME_CORE_FROM.version !== version)) {
|
|
11
11
|
console.warn(`Detect multiple module federation runtime! Injected runtime from ${runtimeCore.Global._FEDERATION_RUNTIME_CORE_FROM.name}@${runtimeCore.Global._FEDERATION_RUNTIME_CORE_FROM.version} and current is ${name}@${version}, pleasure ensure there is only one consumer to provider runtime!`);
|
|
12
12
|
return args;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as runtimeCore from '@module-federation/runtime-tools/runtime-core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ModuleFederationRuntimePlugin } from '@module-federation/runtime-tools/runtime-core';
|
|
3
3
|
declare global {
|
|
4
4
|
var __VERSION__: string;
|
|
5
5
|
var _FEDERATION_RUNTIME_CORE: typeof runtimeCore;
|
|
@@ -8,5 +8,5 @@ declare global {
|
|
|
8
8
|
name: string;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
declare function injectExternalRuntimeCorePlugin():
|
|
11
|
+
declare function injectExternalRuntimeCorePlugin(): ModuleFederationRuntimePlugin;
|
|
12
12
|
export default injectExternalRuntimeCorePlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/inject-external-runtime-core-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A sdk for support module federation",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@module-federation/runtime-tools": "0.
|
|
38
|
+
"@module-federation/runtime-tools": "0.17.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@module-federation/runtime-tools": "0.
|
|
41
|
+
"@module-federation/runtime-tools": "0.17.0"
|
|
42
42
|
}
|
|
43
43
|
}
|