@module-federation/vite 1.9.0 → 1.9.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/lib/index.cjs +0 -9
- package/lib/index.esm.js +0 -9
- package/lib/index.modern.js +0 -5
- package/lib/index.umd.js +0 -9
- package/package.json +1 -1
- package/lib/utils/logUtils.d.ts +0 -1
package/lib/index.cjs
CHANGED
|
@@ -286,12 +286,6 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
var warn = function warn(message) {
|
|
290
|
-
return message.split('\n').forEach(function (msg) {
|
|
291
|
-
return console.warn('\x1b[33m%s\x1b[0m', msg);
|
|
292
|
-
});
|
|
293
|
-
};
|
|
294
|
-
|
|
295
289
|
function normalizeExposesItem(key, item) {
|
|
296
290
|
var importPath = '';
|
|
297
291
|
if (typeof item === 'string') {
|
|
@@ -460,9 +454,6 @@ function getNormalizeShareItem(key) {
|
|
|
460
454
|
return shareItem;
|
|
461
455
|
}
|
|
462
456
|
function normalizeModuleFederationOptions(options) {
|
|
463
|
-
if (options.getPublicPath) {
|
|
464
|
-
warn("We are ignoring the getPublicPath options because they are natively supported by Vite\nwith the \"experimental.renderBuiltUrl\" configuration https://vitejs.dev/guide/build#advanced-base-options");
|
|
465
|
-
}
|
|
466
457
|
if (options.virtualModuleDir && options.virtualModuleDir.includes('/')) {
|
|
467
458
|
throw new Error("Invalid virtualModuleDir: \"" + options.virtualModuleDir + "\". " + "The virtualModuleDir option cannot contain slashes (/). " + "Please use a single directory name like '__mf__virtual__your_app_name'.");
|
|
468
459
|
}
|
package/lib/index.esm.js
CHANGED
|
@@ -262,12 +262,6 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
var warn = function warn(message) {
|
|
266
|
-
return message.split('\n').forEach(function (msg) {
|
|
267
|
-
return console.warn('\x1b[33m%s\x1b[0m', msg);
|
|
268
|
-
});
|
|
269
|
-
};
|
|
270
|
-
|
|
271
265
|
function normalizeExposesItem(key, item) {
|
|
272
266
|
var importPath = '';
|
|
273
267
|
if (typeof item === 'string') {
|
|
@@ -436,9 +430,6 @@ function getNormalizeShareItem(key) {
|
|
|
436
430
|
return shareItem;
|
|
437
431
|
}
|
|
438
432
|
function normalizeModuleFederationOptions(options) {
|
|
439
|
-
if (options.getPublicPath) {
|
|
440
|
-
warn("We are ignoring the getPublicPath options because they are natively supported by Vite\nwith the \"experimental.renderBuiltUrl\" configuration https://vitejs.dev/guide/build#advanced-base-options");
|
|
441
|
-
}
|
|
442
433
|
if (options.virtualModuleDir && options.virtualModuleDir.includes('/')) {
|
|
443
434
|
throw new Error("Invalid virtualModuleDir: \"" + options.virtualModuleDir + "\". " + "The virtualModuleDir option cannot contain slashes (/). " + "Please use a single directory name like '__mf__virtual__your_app_name'.");
|
|
444
435
|
}
|
package/lib/index.modern.js
CHANGED
|
@@ -239,8 +239,6 @@ function _extends() {
|
|
|
239
239
|
}, _extends.apply(null, arguments);
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
const warn = message => message.split('\n').forEach(msg => console.warn('\x1b[33m%s\x1b[0m', msg));
|
|
243
|
-
|
|
244
242
|
function normalizeExposesItem(key, item) {
|
|
245
243
|
let importPath = '';
|
|
246
244
|
if (typeof item === 'string') {
|
|
@@ -405,9 +403,6 @@ function getNormalizeShareItem(key) {
|
|
|
405
403
|
return shareItem;
|
|
406
404
|
}
|
|
407
405
|
function normalizeModuleFederationOptions(options) {
|
|
408
|
-
if (options.getPublicPath) {
|
|
409
|
-
warn(`We are ignoring the getPublicPath options because they are natively supported by Vite\nwith the "experimental.renderBuiltUrl" configuration https://vitejs.dev/guide/build#advanced-base-options`);
|
|
410
|
-
}
|
|
411
406
|
if (options.virtualModuleDir && options.virtualModuleDir.includes('/')) {
|
|
412
407
|
throw new Error(`Invalid virtualModuleDir: "${options.virtualModuleDir}". ` + `The virtualModuleDir option cannot contain slashes (/). ` + `Please use a single directory name like '__mf__virtual__your_app_name'.`);
|
|
413
408
|
}
|
package/lib/index.umd.js
CHANGED
|
@@ -284,12 +284,6 @@
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
var warn = function warn(message) {
|
|
288
|
-
return message.split('\n').forEach(function (msg) {
|
|
289
|
-
return console.warn('\x1b[33m%s\x1b[0m', msg);
|
|
290
|
-
});
|
|
291
|
-
};
|
|
292
|
-
|
|
293
287
|
function normalizeExposesItem(key, item) {
|
|
294
288
|
var importPath = '';
|
|
295
289
|
if (typeof item === 'string') {
|
|
@@ -458,9 +452,6 @@
|
|
|
458
452
|
return shareItem;
|
|
459
453
|
}
|
|
460
454
|
function normalizeModuleFederationOptions(options) {
|
|
461
|
-
if (options.getPublicPath) {
|
|
462
|
-
warn("We are ignoring the getPublicPath options because they are natively supported by Vite\nwith the \"experimental.renderBuiltUrl\" configuration https://vitejs.dev/guide/build#advanced-base-options");
|
|
463
|
-
}
|
|
464
455
|
if (options.virtualModuleDir && options.virtualModuleDir.includes('/')) {
|
|
465
456
|
throw new Error("Invalid virtualModuleDir: \"" + options.virtualModuleDir + "\". " + "The virtualModuleDir option cannot contain slashes (/). " + "Please use a single directory name like '__mf__virtual__your_app_name'.");
|
|
466
457
|
}
|
package/package.json
CHANGED
package/lib/utils/logUtils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const warn: (message: string) => void;
|