@module-federation/bridge-react-webpack-plugin 0.0.0-next-20240808030043 → 0.0.0-next-20240808065005
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/CHANGELOG.md +2 -3
- package/dist/index.cjs.js +1 -5
- package/dist/index.es.js +1 -5
- package/package.json +4 -4
- package/src/index.ts +1 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# @module-federation/bridge-react-webpack-plugin
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-20240808065005
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- @module-federation/sdk@0.0.0-next-20240808030043
|
|
7
|
+
- @module-federation/sdk@0.0.0-next-20240808065005
|
|
9
8
|
|
|
10
9
|
## 0.3.5
|
|
11
10
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -38,11 +38,7 @@ class ReactBridgeAliasChangerPlugin {
|
|
|
38
38
|
if (fs.existsSync(targetFilePath)) {
|
|
39
39
|
const originalResolve = compiler.options.resolve || {};
|
|
40
40
|
const originalAlias = originalResolve.alias || {};
|
|
41
|
-
const updatedAlias = {
|
|
42
|
-
// allow `alias` can be override
|
|
43
|
-
[this.alias]: targetFilePath,
|
|
44
|
-
...originalAlias
|
|
45
|
-
};
|
|
41
|
+
const updatedAlias = { ...originalAlias, [this.alias]: targetFilePath };
|
|
46
42
|
compiler.options.resolve = {
|
|
47
43
|
...originalResolve,
|
|
48
44
|
alias: updatedAlias
|
package/dist/index.es.js
CHANGED
|
@@ -37,11 +37,7 @@ class ReactBridgeAliasChangerPlugin {
|
|
|
37
37
|
if (fs.existsSync(targetFilePath)) {
|
|
38
38
|
const originalResolve = compiler.options.resolve || {};
|
|
39
39
|
const originalAlias = originalResolve.alias || {};
|
|
40
|
-
const updatedAlias = {
|
|
41
|
-
// allow `alias` can be override
|
|
42
|
-
[this.alias]: targetFilePath,
|
|
43
|
-
...originalAlias
|
|
44
|
-
};
|
|
40
|
+
const updatedAlias = { ...originalAlias, [this.alias]: targetFilePath };
|
|
45
41
|
compiler.options.resolve = {
|
|
46
42
|
...originalResolve,
|
|
47
43
|
alias: updatedAlias
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/bridge-react-webpack-plugin",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20240808065005",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"author": "zhouxiao <codingzx@gmail.com>",
|
|
8
8
|
"main": "./dist/index.cjs.js",
|
|
9
|
-
"module": "./dist/index.
|
|
9
|
+
"module": "./dist/index.esm.js",
|
|
10
10
|
"types": "./dist/index.cjs.d.ts",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"types": "./dist/index.cjs.d.ts",
|
|
14
|
-
"import": "./dist/index.
|
|
14
|
+
"import": "./dist/index.esm.js",
|
|
15
15
|
"require": "./dist/index.cjs.js"
|
|
16
16
|
},
|
|
17
17
|
"./*": "./*"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
20
|
+
"@module-federation/sdk": "0.0.0-next-20240808065005"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.2.2",
|
package/src/index.ts
CHANGED
|
@@ -40,11 +40,7 @@ class ReactBridgeAliasChangerPlugin {
|
|
|
40
40
|
const originalAlias = originalResolve.alias || {};
|
|
41
41
|
|
|
42
42
|
// Update alias
|
|
43
|
-
const updatedAlias = {
|
|
44
|
-
// allow `alias` can be override
|
|
45
|
-
[this.alias]: targetFilePath,
|
|
46
|
-
...originalAlias,
|
|
47
|
-
};
|
|
43
|
+
const updatedAlias = { ...originalAlias, [this.alias]: targetFilePath };
|
|
48
44
|
|
|
49
45
|
// Update the webpack configuration
|
|
50
46
|
compiler.options.resolve = {
|