@modern-js/plugin-garfish 2.31.2 → 2.32.1
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 +31 -0
- package/LICENSE +1 -1
- package/dist/cjs/cli/index.js +4 -0
- package/dist/esm/cli/index.js +4 -0
- package/dist/esm-node/cli/index.js +4 -0
- package/package.json +14 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @modern-js/plugin-garfish
|
|
2
2
|
|
|
3
|
+
## 2.32.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [90e053a]
|
|
8
|
+
- @modern-js/runtime@2.32.1
|
|
9
|
+
- @modern-js/utils@2.32.1
|
|
10
|
+
|
|
11
|
+
## 2.32.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 6076166: fix: packaging errors found by publint
|
|
16
|
+
|
|
17
|
+
fix: 修复 publint 检测到的 packaging 问题
|
|
18
|
+
|
|
19
|
+
- b12c9c9: feat: fix hot module replacement error and support microfront-end fast refresh
|
|
20
|
+
修复微前端场景下热更新异常问题,支持微前端场景下使用 fast refresh
|
|
21
|
+
- 3c91100: chore(builder): using unified version of webpack-chain
|
|
22
|
+
|
|
23
|
+
chore(builder): 使用统一的 webpack-chain 版本
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [e5a3fb4]
|
|
26
|
+
- Updated dependencies [6076166]
|
|
27
|
+
- Updated dependencies [a030aff]
|
|
28
|
+
- Updated dependencies [92591c6]
|
|
29
|
+
- Updated dependencies [3c91100]
|
|
30
|
+
- Updated dependencies [5255eba]
|
|
31
|
+
- @modern-js/runtime@2.32.0
|
|
32
|
+
- @modern-js/utils@2.32.0
|
|
33
|
+
|
|
3
34
|
## 2.31.2
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/LICENSE
CHANGED
package/dist/cjs/cli/index.js
CHANGED
|
@@ -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,
|
package/dist/esm/cli/index.js
CHANGED
|
@@ -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.
|
|
18
|
+
"version": "2.32.1",
|
|
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.
|
|
73
|
+
"@modern-js/utils": "2.32.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@modern-js/runtime": "^2.
|
|
76
|
+
"@modern-js/runtime": "^2.32.1"
|
|
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
|
-
"
|
|
93
|
-
"@modern-js/
|
|
94
|
-
"@modern-js/
|
|
95
|
-
"@modern-js/
|
|
96
|
-
"@modern-js/
|
|
97
|
-
"@
|
|
98
|
-
"@scripts/
|
|
99
|
-
"@scripts/jest-config": "2.31.1"
|
|
92
|
+
"@modern-js/app-tools": "2.32.1",
|
|
93
|
+
"@modern-js/core": "2.32.1",
|
|
94
|
+
"@modern-js/plugin-router-v5": "2.32.1",
|
|
95
|
+
"@modern-js/runtime": "2.32.1",
|
|
96
|
+
"@modern-js/types": "2.32.1",
|
|
97
|
+
"@scripts/build": "2.32.1",
|
|
98
|
+
"@scripts/jest-config": "2.32.1"
|
|
100
99
|
},
|
|
101
100
|
"sideEffects": false,
|
|
102
101
|
"publishConfig": {
|