@module-federation/inject-external-runtime-core-plugin 2.2.1 → 2.2.3
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -7,12 +7,12 @@ const runtimeCore = _module_federation_runtime_tools_runtime_core.default ?? _mo
|
|
|
7
7
|
function injectExternalRuntimeCorePlugin() {
|
|
8
8
|
return {
|
|
9
9
|
name: "inject-external-runtime-core-plugin",
|
|
10
|
-
version: "2.2.
|
|
10
|
+
version: "2.2.3",
|
|
11
11
|
beforeInit(args) {
|
|
12
12
|
const globalRef = runtimeCore.Global;
|
|
13
13
|
if (!globalRef || typeof globalRef !== "object") return args;
|
|
14
14
|
const name = args.options.name;
|
|
15
|
-
const version = "2.2.
|
|
15
|
+
const version = "2.2.3";
|
|
16
16
|
if (globalRef._FEDERATION_RUNTIME_CORE && globalRef._FEDERATION_RUNTIME_CORE_FROM && (globalRef._FEDERATION_RUNTIME_CORE_FROM.name !== name || globalRef._FEDERATION_RUNTIME_CORE_FROM.version !== version)) {
|
|
17
17
|
console.warn(`Detect multiple module federation runtime! Injected runtime from ${globalRef._FEDERATION_RUNTIME_CORE_FROM.name}@${globalRef._FEDERATION_RUNTIME_CORE_FROM.version} and current is ${name}@${version}, pleasure ensure there is only one consumer to provider runtime!`);
|
|
18
18
|
return args;
|
package/dist/index.js
CHANGED
|
@@ -6,12 +6,12 @@ const runtimeCore = runtimeCoreDefault ?? runtimeCoreNamespace;
|
|
|
6
6
|
function injectExternalRuntimeCorePlugin() {
|
|
7
7
|
return {
|
|
8
8
|
name: "inject-external-runtime-core-plugin",
|
|
9
|
-
version: "2.2.
|
|
9
|
+
version: "2.2.3",
|
|
10
10
|
beforeInit(args) {
|
|
11
11
|
const globalRef = runtimeCore.Global;
|
|
12
12
|
if (!globalRef || typeof globalRef !== "object") return args;
|
|
13
13
|
const name = args.options.name;
|
|
14
|
-
const version = "2.2.
|
|
14
|
+
const version = "2.2.3";
|
|
15
15
|
if (globalRef._FEDERATION_RUNTIME_CORE && globalRef._FEDERATION_RUNTIME_CORE_FROM && (globalRef._FEDERATION_RUNTIME_CORE_FROM.name !== name || globalRef._FEDERATION_RUNTIME_CORE_FROM.version !== version)) {
|
|
16
16
|
console.warn(`Detect multiple module federation runtime! Injected runtime from ${globalRef._FEDERATION_RUNTIME_CORE_FROM.name}@${globalRef._FEDERATION_RUNTIME_CORE_FROM.version} and current is ${name}@${version}, pleasure ensure there is only one consumer to provider runtime!`);
|
|
17
17
|
return args;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/inject-external-runtime-core-plugin",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A sdk for support module federation",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@module-federation/runtime-tools": "2.2.
|
|
48
|
+
"@module-federation/runtime-tools": "2.2.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@module-federation/runtime-tools": "2.2.
|
|
51
|
+
"@module-federation/runtime-tools": "2.2.3"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsdown --config tsdown.config.ts --filter inject-external-runtime-core-plugin-build",
|