@module-federation/modern-js 0.0.0-next-20241129065701 → 0.0.0-next-20241205085800
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.
|
@@ -169,32 +169,3 @@ const mfConfig = {
|
|
|
169
169
|
(0, import_vitest.expect)(bundlerConfig).toStrictEqual(expectedConfig);
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
|
-
(0, import_vitest.it)("no add watchOptions.ignored if the ", async () => {
|
|
173
|
-
const bundlerConfig = {
|
|
174
|
-
output: {
|
|
175
|
-
publicPath: "auto"
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
(0, import_utils.patchBundlerConfig)({
|
|
179
|
-
bundlerType: "webpack",
|
|
180
|
-
bundlerConfig,
|
|
181
|
-
isServer: false,
|
|
182
|
-
modernjsConfig: {
|
|
183
|
-
server: {
|
|
184
|
-
ssr: {
|
|
185
|
-
mode: "stream"
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
mfConfig
|
|
190
|
-
});
|
|
191
|
-
const expectedConfig = {
|
|
192
|
-
output: {
|
|
193
|
-
chunkLoadingGlobal: "chunk_host",
|
|
194
|
-
publicPath: "auto",
|
|
195
|
-
uniqueName: "host"
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
bundlerConfig === null || bundlerConfig === void 0 ? true : delete bundlerConfig.ignoreWarnings;
|
|
199
|
-
(0, import_vitest.expect)(bundlerConfig).toStrictEqual(expectedConfig);
|
|
200
|
-
});
|
|
@@ -182,38 +182,3 @@ describe("patchBundlerConfig", /* @__PURE__ */ _async_to_generator(function() {
|
|
|
182
182
|
];
|
|
183
183
|
});
|
|
184
184
|
}));
|
|
185
|
-
it("no add watchOptions.ignored if the ", /* @__PURE__ */ _async_to_generator(function() {
|
|
186
|
-
var bundlerConfig, expectedConfig;
|
|
187
|
-
return _ts_generator(this, function(_state) {
|
|
188
|
-
bundlerConfig = {
|
|
189
|
-
output: {
|
|
190
|
-
publicPath: "auto"
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
patchBundlerConfig({
|
|
194
|
-
bundlerType: "webpack",
|
|
195
|
-
bundlerConfig,
|
|
196
|
-
isServer: false,
|
|
197
|
-
modernjsConfig: {
|
|
198
|
-
server: {
|
|
199
|
-
ssr: {
|
|
200
|
-
mode: "stream"
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
mfConfig
|
|
205
|
-
});
|
|
206
|
-
expectedConfig = {
|
|
207
|
-
output: {
|
|
208
|
-
chunkLoadingGlobal: "chunk_host",
|
|
209
|
-
publicPath: "auto",
|
|
210
|
-
uniqueName: "host"
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
bundlerConfig === null || bundlerConfig === void 0 ? true : delete bundlerConfig.ignoreWarnings;
|
|
214
|
-
expect(bundlerConfig).toStrictEqual(expectedConfig);
|
|
215
|
-
return [
|
|
216
|
-
2
|
|
217
|
-
];
|
|
218
|
-
});
|
|
219
|
-
}));
|
|
@@ -146,32 +146,3 @@ describe("patchBundlerConfig", async () => {
|
|
|
146
146
|
expect(bundlerConfig).toStrictEqual(expectedConfig);
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
|
-
it("no add watchOptions.ignored if the ", async () => {
|
|
150
|
-
const bundlerConfig = {
|
|
151
|
-
output: {
|
|
152
|
-
publicPath: "auto"
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
patchBundlerConfig({
|
|
156
|
-
bundlerType: "webpack",
|
|
157
|
-
bundlerConfig,
|
|
158
|
-
isServer: false,
|
|
159
|
-
modernjsConfig: {
|
|
160
|
-
server: {
|
|
161
|
-
ssr: {
|
|
162
|
-
mode: "stream"
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
mfConfig
|
|
167
|
-
});
|
|
168
|
-
const expectedConfig = {
|
|
169
|
-
output: {
|
|
170
|
-
chunkLoadingGlobal: "chunk_host",
|
|
171
|
-
publicPath: "auto",
|
|
172
|
-
uniqueName: "host"
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
bundlerConfig === null || bundlerConfig === void 0 ? true : delete bundlerConfig.ignoreWarnings;
|
|
176
|
-
expect(bundlerConfig).toStrictEqual(expectedConfig);
|
|
177
|
-
});
|
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-20241205085800",
|
|
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-20241205085800",
|
|
89
|
+
"@module-federation/node": "0.0.0-next-20241205085800",
|
|
90
|
+
"@module-federation/sdk": "0.0.0-next-20241205085800"
|
|
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-20241205085800"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"react": ">=17",
|