@module-federation/bridge-react-webpack-plugin 0.10.0 → 0.11.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 +7 -0
- package/dist/index.cjs.js +14 -21
- package/dist/index.es.js +14 -21
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -22,10 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
23
|
mod
|
|
24
24
|
));
|
|
25
|
-
var __publicField = (obj, key, value) =>
|
|
26
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
27
|
-
return value;
|
|
28
|
-
};
|
|
25
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
29
26
|
const fs = require("node:fs");
|
|
30
27
|
const path = require("node:path");
|
|
31
28
|
function getDefaultExportFromCjs(x) {
|
|
@@ -658,8 +655,7 @@ var lrucache = LRUCache;
|
|
|
658
655
|
var range;
|
|
659
656
|
var hasRequiredRange;
|
|
660
657
|
function requireRange() {
|
|
661
|
-
if (hasRequiredRange)
|
|
662
|
-
return range;
|
|
658
|
+
if (hasRequiredRange) return range;
|
|
663
659
|
hasRequiredRange = 1;
|
|
664
660
|
const SPACE_CHARACTERS = /\s+/g;
|
|
665
661
|
class Range2 {
|
|
@@ -1035,8 +1031,7 @@ function requireRange() {
|
|
|
1035
1031
|
var comparator;
|
|
1036
1032
|
var hasRequiredComparator;
|
|
1037
1033
|
function requireComparator() {
|
|
1038
|
-
if (hasRequiredComparator)
|
|
1039
|
-
return comparator;
|
|
1034
|
+
if (hasRequiredComparator) return comparator;
|
|
1040
1035
|
hasRequiredComparator = 1;
|
|
1041
1036
|
const ANY2 = Symbol("SemVer ANY");
|
|
1042
1037
|
class Comparator2 {
|
|
@@ -1392,19 +1387,18 @@ const subset$1 = (sub, dom, options = {}) => {
|
|
|
1392
1387
|
sub = new Range$1(sub, options);
|
|
1393
1388
|
dom = new Range$1(dom, options);
|
|
1394
1389
|
let sawNonNull = false;
|
|
1395
|
-
OUTER:
|
|
1396
|
-
for (const
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
continue OUTER;
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
if (sawNonNull) {
|
|
1405
|
-
return false;
|
|
1390
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
1391
|
+
for (const simpleDom of dom.set) {
|
|
1392
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
1393
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
1394
|
+
if (isSub) {
|
|
1395
|
+
continue OUTER;
|
|
1406
1396
|
}
|
|
1407
1397
|
}
|
|
1398
|
+
if (sawNonNull) {
|
|
1399
|
+
return false;
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1408
1402
|
return true;
|
|
1409
1403
|
};
|
|
1410
1404
|
const minimumVersionWithPreRelease = [new Comparator$1(">=0.0.0-0")];
|
|
@@ -1627,8 +1621,7 @@ var semver = {
|
|
|
1627
1621
|
const semver$1 = /* @__PURE__ */ getDefaultExportFromCjs(semver);
|
|
1628
1622
|
const checkVersion = (version) => {
|
|
1629
1623
|
const versionMatch = version.match(/\d.*/);
|
|
1630
|
-
if (!versionMatch)
|
|
1631
|
-
return 0;
|
|
1624
|
+
if (!versionMatch) return 0;
|
|
1632
1625
|
const cleanVersion = versionMatch[0];
|
|
1633
1626
|
if (semver$1.gte(cleanVersion, "5.0.0") && semver$1.lt(cleanVersion, "6.0.0")) {
|
|
1634
1627
|
return 5;
|
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
import fs from "node:fs";
|
|
8
5
|
import path from "node:path";
|
|
9
6
|
function getDefaultExportFromCjs(x) {
|
|
@@ -636,8 +633,7 @@ var lrucache = LRUCache;
|
|
|
636
633
|
var range;
|
|
637
634
|
var hasRequiredRange;
|
|
638
635
|
function requireRange() {
|
|
639
|
-
if (hasRequiredRange)
|
|
640
|
-
return range;
|
|
636
|
+
if (hasRequiredRange) return range;
|
|
641
637
|
hasRequiredRange = 1;
|
|
642
638
|
const SPACE_CHARACTERS = /\s+/g;
|
|
643
639
|
class Range2 {
|
|
@@ -1013,8 +1009,7 @@ function requireRange() {
|
|
|
1013
1009
|
var comparator;
|
|
1014
1010
|
var hasRequiredComparator;
|
|
1015
1011
|
function requireComparator() {
|
|
1016
|
-
if (hasRequiredComparator)
|
|
1017
|
-
return comparator;
|
|
1012
|
+
if (hasRequiredComparator) return comparator;
|
|
1018
1013
|
hasRequiredComparator = 1;
|
|
1019
1014
|
const ANY2 = Symbol("SemVer ANY");
|
|
1020
1015
|
class Comparator2 {
|
|
@@ -1370,19 +1365,18 @@ const subset$1 = (sub, dom, options = {}) => {
|
|
|
1370
1365
|
sub = new Range$1(sub, options);
|
|
1371
1366
|
dom = new Range$1(dom, options);
|
|
1372
1367
|
let sawNonNull = false;
|
|
1373
|
-
OUTER:
|
|
1374
|
-
for (const
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
continue OUTER;
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
if (sawNonNull) {
|
|
1383
|
-
return false;
|
|
1368
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
1369
|
+
for (const simpleDom of dom.set) {
|
|
1370
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
1371
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
1372
|
+
if (isSub) {
|
|
1373
|
+
continue OUTER;
|
|
1384
1374
|
}
|
|
1385
1375
|
}
|
|
1376
|
+
if (sawNonNull) {
|
|
1377
|
+
return false;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1386
1380
|
return true;
|
|
1387
1381
|
};
|
|
1388
1382
|
const minimumVersionWithPreRelease = [new Comparator$1(">=0.0.0-0")];
|
|
@@ -1605,8 +1599,7 @@ var semver = {
|
|
|
1605
1599
|
const semver$1 = /* @__PURE__ */ getDefaultExportFromCjs(semver);
|
|
1606
1600
|
const checkVersion = (version) => {
|
|
1607
1601
|
const versionMatch = version.match(/\d.*/);
|
|
1608
|
-
if (!versionMatch)
|
|
1609
|
-
return 0;
|
|
1602
|
+
if (!versionMatch) return 0;
|
|
1610
1603
|
const cleanVersion = versionMatch[0];
|
|
1611
1604
|
if (semver$1.gte(cleanVersion, "5.0.0") && semver$1.lt(cleanVersion, "6.0.0")) {
|
|
1612
1605
|
return 5;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/bridge-react-webpack-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"semver": "7.6.3",
|
|
27
27
|
"@types/semver": "7.5.8",
|
|
28
|
-
"@module-federation/sdk": "0.
|
|
28
|
+
"@module-federation/sdk": "0.11.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.2.2",
|
|
32
|
-
"vite": "^5.
|
|
32
|
+
"vite": "^5.4.12",
|
|
33
33
|
"vite-plugin-dts": "^4.3.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|