@module-federation/modern-js 0.0.0-next-20241126061428 → 0.0.0-next-20241127081350
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/cjs/cli/utils.js +14 -8
- package/dist/esm/cli/utils.js +14 -8
- package/dist/esm-node/cli/utils.js +14 -8
- package/package.json +5 -5
package/dist/cjs/cli/utils.js
CHANGED
|
@@ -195,21 +195,27 @@ function patchBundlerConfig(options) {
|
|
|
195
195
|
bundlerConfig.watchOptions = bundlerConfig.watchOptions || {};
|
|
196
196
|
if (!Array.isArray(bundlerConfig.watchOptions.ignored)) {
|
|
197
197
|
if (bundlerConfig.watchOptions.ignored) {
|
|
198
|
-
bundlerConfig.watchOptions.ignored
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
if (typeof bundlerConfig.watchOptions.ignored !== "string") {
|
|
199
|
+
import_logger.default.warn(`Detect you have set watchOptions.ignore as regexp, please transform it to glob string array and add "**/@mf-types/**" to the array.`);
|
|
200
|
+
} else {
|
|
201
|
+
bundlerConfig.watchOptions.ignored = [
|
|
202
|
+
bundlerConfig.watchOptions.ignored
|
|
203
|
+
];
|
|
204
|
+
}
|
|
201
205
|
} else {
|
|
202
206
|
bundlerConfig.watchOptions.ignored = [];
|
|
203
207
|
}
|
|
204
208
|
}
|
|
205
|
-
if (
|
|
206
|
-
if (
|
|
207
|
-
|
|
209
|
+
if (Array.isArray(bundlerConfig.watchOptions.ignored)) {
|
|
210
|
+
if (mfConfig.dts !== false) {
|
|
211
|
+
if (typeof mfConfig.dts === "object" && typeof mfConfig.dts.consumeTypes === "object" && mfConfig.dts.consumeTypes.remoteTypesFolder) {
|
|
212
|
+
bundlerConfig.watchOptions.ignored.push(`**/${mfConfig.dts.consumeTypes.remoteTypesFolder}/**`);
|
|
213
|
+
} else {
|
|
214
|
+
bundlerConfig.watchOptions.ignored.push("**/@mf-types/**");
|
|
215
|
+
}
|
|
208
216
|
} else {
|
|
209
217
|
bundlerConfig.watchOptions.ignored.push("**/@mf-types/**");
|
|
210
218
|
}
|
|
211
|
-
} else {
|
|
212
|
-
bundlerConfig.watchOptions.ignored.push("**/@mf-types/**");
|
|
213
219
|
}
|
|
214
220
|
}
|
|
215
221
|
if (bundlerConfig.output) {
|
package/dist/esm/cli/utils.js
CHANGED
|
@@ -191,21 +191,27 @@ function patchBundlerConfig(options) {
|
|
|
191
191
|
bundlerConfig.watchOptions = bundlerConfig.watchOptions || {};
|
|
192
192
|
if (!Array.isArray(bundlerConfig.watchOptions.ignored)) {
|
|
193
193
|
if (bundlerConfig.watchOptions.ignored) {
|
|
194
|
-
bundlerConfig.watchOptions.ignored
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
if (typeof bundlerConfig.watchOptions.ignored !== "string") {
|
|
195
|
+
logger.warn('Detect you have set watchOptions.ignore as regexp, please transform it to glob string array and add "**/@mf-types/**" to the array.');
|
|
196
|
+
} else {
|
|
197
|
+
bundlerConfig.watchOptions.ignored = [
|
|
198
|
+
bundlerConfig.watchOptions.ignored
|
|
199
|
+
];
|
|
200
|
+
}
|
|
197
201
|
} else {
|
|
198
202
|
bundlerConfig.watchOptions.ignored = [];
|
|
199
203
|
}
|
|
200
204
|
}
|
|
201
|
-
if (
|
|
202
|
-
if (
|
|
203
|
-
|
|
205
|
+
if (Array.isArray(bundlerConfig.watchOptions.ignored)) {
|
|
206
|
+
if (mfConfig.dts !== false) {
|
|
207
|
+
if (_type_of(mfConfig.dts) === "object" && _type_of(mfConfig.dts.consumeTypes) === "object" && mfConfig.dts.consumeTypes.remoteTypesFolder) {
|
|
208
|
+
bundlerConfig.watchOptions.ignored.push("**/".concat(mfConfig.dts.consumeTypes.remoteTypesFolder, "/**"));
|
|
209
|
+
} else {
|
|
210
|
+
bundlerConfig.watchOptions.ignored.push("**/@mf-types/**");
|
|
211
|
+
}
|
|
204
212
|
} else {
|
|
205
213
|
bundlerConfig.watchOptions.ignored.push("**/@mf-types/**");
|
|
206
214
|
}
|
|
207
|
-
} else {
|
|
208
|
-
bundlerConfig.watchOptions.ignored.push("**/@mf-types/**");
|
|
209
215
|
}
|
|
210
216
|
}
|
|
211
217
|
if (bundlerConfig.output) {
|
|
@@ -158,21 +158,27 @@ function patchBundlerConfig(options) {
|
|
|
158
158
|
bundlerConfig.watchOptions = bundlerConfig.watchOptions || {};
|
|
159
159
|
if (!Array.isArray(bundlerConfig.watchOptions.ignored)) {
|
|
160
160
|
if (bundlerConfig.watchOptions.ignored) {
|
|
161
|
-
bundlerConfig.watchOptions.ignored
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
if (typeof bundlerConfig.watchOptions.ignored !== "string") {
|
|
162
|
+
logger.warn(`Detect you have set watchOptions.ignore as regexp, please transform it to glob string array and add "**/@mf-types/**" to the array.`);
|
|
163
|
+
} else {
|
|
164
|
+
bundlerConfig.watchOptions.ignored = [
|
|
165
|
+
bundlerConfig.watchOptions.ignored
|
|
166
|
+
];
|
|
167
|
+
}
|
|
164
168
|
} else {
|
|
165
169
|
bundlerConfig.watchOptions.ignored = [];
|
|
166
170
|
}
|
|
167
171
|
}
|
|
168
|
-
if (
|
|
169
|
-
if (
|
|
170
|
-
|
|
172
|
+
if (Array.isArray(bundlerConfig.watchOptions.ignored)) {
|
|
173
|
+
if (mfConfig.dts !== false) {
|
|
174
|
+
if (typeof mfConfig.dts === "object" && typeof mfConfig.dts.consumeTypes === "object" && mfConfig.dts.consumeTypes.remoteTypesFolder) {
|
|
175
|
+
bundlerConfig.watchOptions.ignored.push(`**/${mfConfig.dts.consumeTypes.remoteTypesFolder}/**`);
|
|
176
|
+
} else {
|
|
177
|
+
bundlerConfig.watchOptions.ignored.push("**/@mf-types/**");
|
|
178
|
+
}
|
|
171
179
|
} else {
|
|
172
180
|
bundlerConfig.watchOptions.ignored.push("**/@mf-types/**");
|
|
173
181
|
}
|
|
174
|
-
} else {
|
|
175
|
-
bundlerConfig.watchOptions.ignored.push("**/@mf-types/**");
|
|
176
182
|
}
|
|
177
183
|
}
|
|
178
184
|
if (bundlerConfig.output) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/modern-js",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20241127081350",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"hoist-non-react-statics": "3.3.2",
|
|
86
86
|
"node-fetch": "~3.3.0",
|
|
87
87
|
"react-error-boundary": "4.0.13",
|
|
88
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
89
|
-
"@module-federation/node": "0.0.0-next-
|
|
90
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
88
|
+
"@module-federation/enhanced": "0.0.0-next-20241127081350",
|
|
89
|
+
"@module-federation/node": "0.0.0-next-20241127081350",
|
|
90
|
+
"@module-federation/sdk": "0.0.0-next-20241127081350"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@modern-js/app-tools": "2.60.6",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@modern-js/runtime": "2.60.6",
|
|
97
97
|
"@modern-js/tsconfig": "2.60.6",
|
|
98
98
|
"@types/hoist-non-react-statics": "3.3.5",
|
|
99
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
99
|
+
"@module-federation/manifest": "0.0.0-next-20241127081350"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"react": ">=17",
|