@module-federation/webpack-bundler-runtime 0.0.0-next-20240617084909 → 0.0.0-next-20240617093923
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/constant.cjs.js +0 -2
- package/dist/constant.esm.js +1 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/package.json +1 -1
- package/dist/src/constant.d.ts +0 -1
- package/package.json +4 -4
package/dist/constant.cjs.js
CHANGED
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var ENCODE_NAME_PREFIX = 'ENCODE_NAME_PREFIX';
|
|
6
5
|
var FEDERATION_SUPPORTED_TYPES = [
|
|
7
6
|
'script'
|
|
8
7
|
];
|
|
9
8
|
|
|
10
|
-
exports.ENCODE_NAME_PREFIX = ENCODE_NAME_PREFIX;
|
|
11
9
|
exports.FEDERATION_SUPPORTED_TYPES = FEDERATION_SUPPORTED_TYPES;
|
package/dist/constant.esm.js
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -99,7 +99,7 @@ function remotes(options) {
|
|
|
99
99
|
};
|
|
100
100
|
var onRemoteLoaded = function() {
|
|
101
101
|
try {
|
|
102
|
-
var remoteName = sdk.decodeName(remoteInfos[0].name,
|
|
102
|
+
var remoteName = sdk.decodeName(remoteInfos[0].name, sdk.ENCODE_NAME_PREFIX);
|
|
103
103
|
var remoteModuleName = remoteName + data[1].slice(1);
|
|
104
104
|
return webpackRequire.federation.instance.loadRemote(remoteModuleName, {
|
|
105
105
|
loadFactory: false,
|
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as runtime from '@module-federation/runtime';
|
|
2
|
-
import { decodeName } from '@module-federation/sdk';
|
|
3
|
-
import {
|
|
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) {
|
package/dist/package.json
CHANGED
package/dist/src/constant.d.ts
CHANGED
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-20240617093923",
|
|
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-20240617093923",
|
|
24
|
+
"@module-federation/sdk": "0.0.0-next-20240617093923"
|
|
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-20240617093923"
|
|
53
53
|
}
|
|
54
54
|
}
|