@module-federation/webpack-bundler-runtime 0.0.0-next-20240708090519 → 0.0.0-next-20240709063914
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/container.cjs.js +1 -1
- package/dist/container.esm.js +1 -1
- package/dist/index.cjs.js +4 -2
- package/dist/index.esm.js +4 -2
- package/package.json +4 -4
package/dist/container.cjs.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var index = require('./index.cjs.js');
|
|
6
6
|
require('@module-federation/runtime');
|
|
7
|
-
require('./constant.cjs.js');
|
|
8
7
|
require('@module-federation/sdk');
|
|
8
|
+
require('./constant.cjs.js');
|
|
9
9
|
|
|
10
10
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
11
11
|
try {
|
package/dist/container.esm.js
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var runtime = require('@module-federation/runtime');
|
|
4
|
-
var constant = require('./constant.cjs.js');
|
|
5
4
|
var sdk = require('@module-federation/sdk');
|
|
5
|
+
var constant = require('./constant.cjs.js');
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -109,7 +109,9 @@ function remotes(options) {
|
|
|
109
109
|
onError(error);
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
-
var useRuntimeLoad = remoteInfos.length === 1 &&
|
|
112
|
+
var useRuntimeLoad = remoteInfos.length === 1 && [
|
|
113
|
+
'script'
|
|
114
|
+
].includes(remoteInfos[0].externalType) && remoteInfos[0].name;
|
|
113
115
|
if (useRuntimeLoad) {
|
|
114
116
|
handleFunction(onRemoteLoaded, data[2], 0, 0, onFactory, 1);
|
|
115
117
|
} else {
|
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as runtime from '@module-federation/runtime';
|
|
2
|
-
import { FEDERATION_SUPPORTED_TYPES } from './constant.esm.js';
|
|
3
2
|
import { decodeName, ENCODE_NAME_PREFIX } from '@module-federation/sdk';
|
|
3
|
+
import { FEDERATION_SUPPORTED_TYPES } from './constant.esm.js';
|
|
4
4
|
|
|
5
5
|
function attachShareScopeMap(webpackRequire) {
|
|
6
6
|
if (!webpackRequire.S || webpackRequire.federation.hasAttachShareScopeMap || !webpackRequire.federation.instance || !webpackRequire.federation.instance.shareScopeMap) {
|
|
@@ -87,7 +87,9 @@ function remotes(options) {
|
|
|
87
87
|
onError(error);
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
|
-
var useRuntimeLoad = remoteInfos.length === 1 &&
|
|
90
|
+
var useRuntimeLoad = remoteInfos.length === 1 && [
|
|
91
|
+
'script'
|
|
92
|
+
].includes(remoteInfos[0].externalType) && remoteInfos[0].name;
|
|
91
93
|
if (useRuntimeLoad) {
|
|
92
94
|
handleFunction(onRemoteLoaded, data[2], 0, 0, onFactory, 1);
|
|
93
95
|
} else {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "@module-federation/webpack-bundler-runtime",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-20240709063914",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Module Federation Runtime for webpack",
|
|
7
7
|
"keywords": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"module": "./dist/index.esm.js",
|
|
21
21
|
"types": "./dist/index.cjs.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
24
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
23
|
+
"@module-federation/runtime": "0.0.0-next-20240709063914",
|
|
24
|
+
"@module-federation/sdk": "0.0.0-next-20240709063914"
|
|
25
25
|
},
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
52
|
+
"@module-federation/runtime": "0.0.0-next-20240709063914"
|
|
53
53
|
}
|
|
54
54
|
}
|