@modern-js/plugin-garfish 2.31.1 → 2.32.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/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @modern-js/plugin-garfish
2
2
 
3
+ ## 2.32.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 6076166: fix: packaging errors found by publint
8
+
9
+ fix: 修复 publint 检测到的 packaging 问题
10
+
11
+ - b12c9c9: feat: fix hot module replacement error and support microfront-end fast refresh
12
+ 修复微前端场景下热更新异常问题,支持微前端场景下使用 fast refresh
13
+ - 3c91100: chore(builder): using unified version of webpack-chain
14
+
15
+ chore(builder): 使用统一的 webpack-chain 版本
16
+
17
+ - Updated dependencies [e5a3fb4]
18
+ - Updated dependencies [6076166]
19
+ - Updated dependencies [a030aff]
20
+ - Updated dependencies [92591c6]
21
+ - Updated dependencies [3c91100]
22
+ - Updated dependencies [5255eba]
23
+ - @modern-js/runtime@2.32.0
24
+ - @modern-js/utils@2.32.0
25
+
26
+ ## 2.31.2
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [15d30abdc66]
31
+ - @modern-js/utils@2.31.2
32
+ - @modern-js/runtime@2.31.2
33
+
3
34
  ## 2.31.1
4
35
 
5
36
  ### Patch Changes
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Modern.js
3
+ Copyright (c) 2021-present Modern.js
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -188,6 +188,10 @@ const garfishPlugin = ({ pluginName = "@modern-js/plugin-garfish", runtimePlugin
188
188
  });
189
189
  }
190
190
  }
191
+ const uniqueName = chain.output.get("uniqueName");
192
+ if (!uniqueName) {
193
+ chain.output.uniqueName(config.packageName);
194
+ }
191
195
  const resolveConfig = chain.toConfig();
192
196
  (0, _util.logger)("bundlerConfig", {
193
197
  output: resolveConfig.output,
@@ -177,6 +177,10 @@ export var garfishPlugin = function() {
177
177
  });
178
178
  }
179
179
  }
180
+ var uniqueName = chain.output.get("uniqueName");
181
+ if (!uniqueName) {
182
+ chain.output.uniqueName(config2.packageName);
183
+ }
180
184
  var resolveConfig = chain.toConfig();
181
185
  logger("bundlerConfig", {
182
186
  output: resolveConfig.output,
@@ -163,6 +163,10 @@ export const garfishPlugin = ({ pluginName = "@modern-js/plugin-garfish", runtim
163
163
  });
164
164
  }
165
165
  }
166
+ const uniqueName = chain.output.get("uniqueName");
167
+ if (!uniqueName) {
168
+ chain.output.uniqueName(config.packageName);
169
+ }
166
170
  const resolveConfig = chain.toConfig();
167
171
  logger("bundlerConfig", {
168
172
  output: resolveConfig.output,
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.31.1",
18
+ "version": "2.32.0",
19
19
  "jsnext:source": "./src/cli/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "typesVersions": {
@@ -42,23 +42,23 @@
42
42
  "exports": {
43
43
  "./types": "./type.d.ts",
44
44
  ".": {
45
- "jsnext:source": "./src/cli/index.ts",
46
45
  "types": "./dist/types/runtime/index.d.ts",
46
+ "jsnext:source": "./src/cli/index.ts",
47
47
  "default": "./dist/cjs/cli/index.js"
48
48
  },
49
49
  "./cli": {
50
- "jsnext:source": "./src/cli/index.ts",
51
50
  "types": "./dist/types/cli/index.d.ts",
51
+ "jsnext:source": "./src/cli/index.ts",
52
52
  "default": "./dist/cjs/cli/index.js"
53
53
  },
54
54
  "./deps": {
55
- "jsnext:source": "./src/deps/index.ts",
56
55
  "types": "./dist/types/deps/index.d.ts",
56
+ "jsnext:source": "./src/deps/index.ts",
57
57
  "default": "./dist/esm/deps/index.js"
58
58
  },
59
59
  "./runtime": {
60
- "jsnext:source": "./src/index.ts",
61
60
  "types": "./dist/types/runtime/index.d.ts",
61
+ "jsnext:source": "./src/index.ts",
62
62
  "default": "./dist/esm/runtime/index.js"
63
63
  }
64
64
  },
@@ -70,10 +70,10 @@
70
70
  "hoist-non-react-statics": "^3.3.2",
71
71
  "react-loadable": "^5.5.0",
72
72
  "@swc/helpers": "0.5.1",
73
- "@modern-js/utils": "2.31.1"
73
+ "@modern-js/utils": "2.32.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@modern-js/runtime": "^2.31.1"
76
+ "@modern-js/runtime": "^2.32.0"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@testing-library/dom": "^8.14.0",
@@ -89,14 +89,13 @@
89
89
  "react-dom": "^18",
90
90
  "react-router-dom": "^6.8.1",
91
91
  "typescript": "^5",
92
- "webpack-chain": "^6.5.1",
93
- "@modern-js/app-tools": "2.31.1",
94
- "@modern-js/core": "2.31.1",
95
- "@modern-js/plugin-router-v5": "2.31.1",
96
- "@modern-js/runtime": "2.31.1",
97
- "@modern-js/types": "2.31.1",
98
- "@scripts/build": "2.31.1",
99
- "@scripts/jest-config": "2.31.1"
92
+ "@modern-js/app-tools": "2.32.0",
93
+ "@modern-js/core": "2.32.0",
94
+ "@modern-js/plugin-router-v5": "2.32.0",
95
+ "@modern-js/runtime": "2.32.0",
96
+ "@modern-js/types": "2.32.0",
97
+ "@scripts/build": "2.32.0",
98
+ "@scripts/jest-config": "2.32.0"
100
99
  },
101
100
  "sideEffects": false,
102
101
  "publishConfig": {