@module-federation/webpack-bundler-runtime 2.0.1 → 2.2.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/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/attachShareScopeMap.cjs +11 -0
- package/dist/attachShareScopeMap.cjs.map +1 -0
- package/dist/attachShareScopeMap.d.ts +7 -0
- package/dist/attachShareScopeMap.js +10 -0
- package/dist/attachShareScopeMap.js.map +1 -0
- package/dist/bundler.cjs +18 -0
- package/dist/bundler.d.ts +4 -0
- package/dist/bundler.js +4 -0
- package/dist/constant.cjs +8 -0
- package/dist/constant.cjs.map +1 -0
- package/dist/constant.d.ts +5 -1
- package/dist/constant.js +6 -0
- package/dist/constant.js.map +1 -0
- package/dist/consumes.cjs +55 -0
- package/dist/consumes.cjs.map +1 -0
- package/dist/consumes.js +55 -0
- package/dist/consumes.js.map +1 -0
- package/dist/getSharedFallbackGetter.cjs +27 -0
- package/dist/getSharedFallbackGetter.cjs.map +1 -0
- package/dist/getSharedFallbackGetter.js +26 -0
- package/dist/getSharedFallbackGetter.js.map +1 -0
- package/dist/getUsedExports.cjs +11 -0
- package/dist/getUsedExports.cjs.map +1 -0
- package/dist/getUsedExports.js +10 -0
- package/dist/getUsedExports.js.map +1 -0
- package/dist/index.cjs +50 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +46 -2
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/init.cjs +82 -0
- package/dist/init.cjs.map +1 -0
- package/dist/init.js +80 -0
- package/dist/init.js.map +1 -0
- package/dist/initContainerEntry.cjs +43 -0
- package/dist/initContainerEntry.cjs.map +1 -0
- package/dist/initContainerEntry.d.ts +7 -0
- package/dist/initContainerEntry.js +42 -0
- package/dist/initContainerEntry.js.map +1 -0
- package/dist/initializeSharing.cjs +61 -0
- package/dist/initializeSharing.cjs.map +1 -0
- package/dist/initializeSharing.d.ts +13 -0
- package/dist/initializeSharing.js +61 -0
- package/dist/initializeSharing.js.map +1 -0
- package/dist/installInitialConsumes.cjs +63 -0
- package/dist/installInitialConsumes.cjs.map +1 -0
- package/dist/installInitialConsumes.js +63 -0
- package/dist/installInitialConsumes.js.map +1 -0
- package/dist/remotes.cjs +74 -0
- package/dist/remotes.cjs.map +1 -0
- package/dist/remotes.js +73 -0
- package/dist/remotes.js.map +1 -0
- package/dist/runtime-core/dist/core.d.ts +130 -0
- package/dist/runtime-core/dist/global.d.ts +24 -0
- package/dist/runtime-core/dist/helpers.d.ts +1 -0
- package/dist/runtime-core/dist/index.d.ts +6 -0
- package/dist/runtime-core/dist/module/index.d.ts +32 -0
- package/dist/runtime-core/dist/plugins/snapshot/SnapshotHandler.d.ts +67 -0
- package/dist/runtime-core/dist/remote/index.d.ts +120 -0
- package/dist/runtime-core/dist/shared/index.d.ts +84 -0
- package/dist/runtime-core/dist/type/config.d.ts +117 -0
- package/dist/runtime-core/dist/type/index.d.ts +1 -0
- package/dist/runtime-core/dist/type/plugin.d.ts +28 -0
- package/dist/runtime-core/dist/type/preload.d.ts +32 -0
- package/dist/runtime-core/dist/types.d.ts +3 -0
- package/dist/runtime-core/dist/utils/hooks/asyncHook.d.ts +11 -0
- package/dist/runtime-core/dist/utils/hooks/asyncWaterfallHooks.d.ts +13 -0
- package/dist/runtime-core/dist/utils/hooks/pluginSystem.d.ts +20 -0
- package/dist/runtime-core/dist/utils/hooks/syncHook.d.ts +17 -0
- package/dist/runtime-core/dist/utils/hooks/syncWaterfallHook.d.ts +12 -0
- package/dist/runtime-core/dist/utils/load.d.ts +15 -0
- package/dist/runtime-core/dist/utils/manifest.d.ts +1 -0
- package/dist/runtime-core/dist/utils/preload.d.ts +1 -0
- package/dist/runtime-core/dist/utils/share.d.ts +1 -0
- package/dist/sdk/dist/types/plugins/ModuleFederationPlugin.d.ts +11 -0
- package/dist/types.d.ts +201 -0
- package/dist/updateOptions.cjs +112 -0
- package/dist/updateOptions.cjs.map +1 -0
- package/dist/updateOptions.js +110 -0
- package/dist/updateOptions.js.map +1 -0
- package/package.json +20 -9
- package/dist/constant.cjs.cjs +0 -6
- package/dist/constant.cjs.cjs.map +0 -1
- package/dist/constant.cjs.d.ts +0 -1
- package/dist/constant.esm.js +0 -4
- package/dist/constant.esm.js.map +0 -1
- package/dist/index.cjs.cjs +0 -793
- package/dist/index.cjs.cjs.map +0 -1
- package/dist/index.cjs.d.ts +0 -2
- package/dist/index.esm.js +0 -772
- package/dist/index.esm.js.map +0 -1
- package/dist/src/attachShareScopeMap.d.ts +0 -2
- package/dist/src/constant.d.ts +0 -1
- package/dist/src/consumes.d.ts +0 -2
- package/dist/src/getSharedFallbackGetter.d.ts +0 -2
- package/dist/src/getUsedExports.d.ts +0 -2
- package/dist/src/index.d.ts +0 -39
- package/dist/src/init.d.ts +0 -4
- package/dist/src/initContainerEntry.d.ts +0 -2
- package/dist/src/initializeSharing.d.ts +0 -2
- package/dist/src/installInitialConsumes.d.ts +0 -2
- package/dist/src/remotes.d.ts +0 -2
- package/dist/src/types.d.ts +0 -194
- package/dist/src/updateOptions.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"public": true,
|
|
3
3
|
"name": "@module-federation/webpack-bundler-runtime",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "Module Federation Runtime for webpack",
|
|
@@ -22,34 +22,35 @@
|
|
|
22
22
|
"directory": "packages/webpack-bundler-runtime"
|
|
23
23
|
},
|
|
24
24
|
"author": "zhanghang <hanric.zhang@gmail.com>",
|
|
25
|
-
"main": "./dist/index.cjs
|
|
26
|
-
"module": "./dist/index.
|
|
25
|
+
"main": "./dist/index.cjs",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@module-federation/runtime": "2.0
|
|
30
|
-
"@module-federation/sdk": "2.0
|
|
29
|
+
"@module-federation/runtime": "2.2.0",
|
|
30
|
+
"@module-federation/sdk": "2.2.0"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
34
|
"import": {
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
|
-
"default": "./dist/index.
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
37
|
},
|
|
38
38
|
"require": {
|
|
39
39
|
"types": "./dist/index.d.ts",
|
|
40
|
-
"default": "./dist/index.cjs
|
|
40
|
+
"default": "./dist/index.cjs"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"./constant": {
|
|
44
44
|
"import": {
|
|
45
45
|
"types": "./dist/constant.d.ts",
|
|
46
|
-
"default": "./dist/constant.
|
|
46
|
+
"default": "./dist/constant.js"
|
|
47
47
|
},
|
|
48
48
|
"require": {
|
|
49
49
|
"types": "./dist/constant.d.ts",
|
|
50
|
-
"default": "./dist/constant.cjs
|
|
50
|
+
"default": "./dist/constant.cjs"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
+
"./bundler": "./dist/bundler.js",
|
|
53
54
|
"./*": "./*"
|
|
54
55
|
},
|
|
55
56
|
"typesVersions": {
|
|
@@ -59,7 +60,17 @@
|
|
|
59
60
|
],
|
|
60
61
|
"constant": [
|
|
61
62
|
"./dist/constant.d.ts"
|
|
63
|
+
],
|
|
64
|
+
"bundler": [
|
|
65
|
+
"./dist/bundler.d.ts"
|
|
62
66
|
]
|
|
63
67
|
}
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "tsdown --config tsdown.config.ts --filter webpack-bundler-runtime-build",
|
|
71
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=false pnpm exec eslint --ignore-pattern node_modules \"**/*.ts\" \"package.json\"",
|
|
72
|
+
"test": "pnpm exec jest --config jest.config.cjs --passWithNoTests",
|
|
73
|
+
"test:ci": "pnpm exec jest --config jest.config.cjs --passWithNoTests --ci --coverage",
|
|
74
|
+
"pre-release": "pnpm run test && pnpm run build"
|
|
64
75
|
}
|
|
65
76
|
}
|
package/dist/constant.cjs.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constant.cjs.cjs","sources":["../src/constant.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAO,MAAM,0BAA0B,GAAG,CAAC,QAAQ;;;;"}
|
package/dist/constant.cjs.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./src/constant";
|
package/dist/constant.esm.js
DELETED
package/dist/constant.esm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constant.esm.js","sources":["../src/constant.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,0BAA0B,GAAG,CAAC,QAAQ;;;;"}
|