@module-federation/bridge-react-webpack-plugin 0.0.0-next-20240819031127 → 0.0.0-next-20240819112150

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 CHANGED
@@ -1,20 +1,10 @@
1
1
  # @module-federation/bridge-react-webpack-plugin
2
2
 
3
- ## 0.0.0-next-20240819031127
3
+ ## 0.0.0-next-20240819112150
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 49d6135: feat(@module-federation/bridge): enhance Bridge capabilities and fix some issues
8
- - Updated dependencies [8378a77]
9
- - @module-federation/sdk@0.0.0-next-20240819031127
10
-
11
- ## 0.4.0
12
-
13
- ### Patch Changes
14
-
15
- - Updated dependencies [a6e2bed]
16
- - Updated dependencies [a6e2bed]
17
- - @module-federation/sdk@0.4.0
7
+ - @module-federation/sdk@0.0.0-next-20240819112150
18
8
 
19
9
  ## 0.3.5
20
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-20240819031127",
3
+ "version": "0.0.0-next-20240819112150",
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.es.js",
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.es.js",
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-20240819031127"
20
+ "@module-federation/sdk": "0.0.0-next-20240819112150"
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 = {