@rsbuild/core 2.0.9 → 2.0.10
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/compiled/connect-next/package.json +1 -1
- package/compiled/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/html-rspack-plugin/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rslog/index.d.ts +3 -3
- package/compiled/rslog/package.json +1 -1
- package/compiled/rspack-chain/package.json +1 -1
- package/dist/756.js +16 -18
- package/dist/launch-editor-middleware.js +58 -23
- package/dist/manifest-plugin.js +6 -6
- package/dist/memfs.js +97 -95
- package/dist/tinyglobby.js +11 -9
- package/package.json +11 -11
package/dist/tinyglobby.js
CHANGED
|
@@ -1457,7 +1457,7 @@ var Builder = class {
|
|
|
1457
1457
|
return isMatch || (isMatch = globFn(patterns, ...options), this.globCache[patterns.join("\0")] = isMatch), this.options.filters.push((path)=>isMatch(path)), this;
|
|
1458
1458
|
}
|
|
1459
1459
|
};
|
|
1460
|
-
let picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js"), isReadonlyArray = Array.isArray, BACKSLASHES = /\\/g, isWin = "win32" === process.platform, ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
|
|
1460
|
+
let picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js"), isReadonlyArray = Array.isArray, BACKSLASHES = /\\/g, DRIVE_RELATIVE_PATH = /^[A-Za-z]:$/, isWin = "win32" === process.platform, ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
|
|
1461
1461
|
function getPartialMatcher(patterns, options = {}) {
|
|
1462
1462
|
let i, j, patternsCount = patterns.length, patternsParts = Array(patternsCount), matchers = Array(patternsCount);
|
|
1463
1463
|
for(i = 0; i < patternsCount; i++){
|
|
@@ -1510,6 +1510,9 @@ function buildRelative(cwd, root) {
|
|
|
1510
1510
|
return "/" === p[p.length - 1] && "" !== result ? `${result}/` : result || ".";
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
|
+
function ensureNonDriveRelativePath(path) {
|
|
1514
|
+
return path.replace(DRIVE_RELATIVE_PATH, (match)=>`${match}/`);
|
|
1515
|
+
}
|
|
1513
1516
|
let splitPatternOptions = {
|
|
1514
1517
|
parts: !0
|
|
1515
1518
|
};
|
|
@@ -1546,7 +1549,7 @@ function normalizePattern(pattern, opts, props, isIgnore) {
|
|
|
1546
1549
|
let n = (parentDir.length + 1) / 3, i = 0, cwdParts = escapedCwd.split("/");
|
|
1547
1550
|
for(; i < n && parts[i + n] === cwdParts[cwdParts.length + i - n];)result = result.slice(0, (n - i - 1) * 3) + result.slice((n - i) * 3 + parts[i + n].length + 1) || ".", i++;
|
|
1548
1551
|
let potentialRoot = posix.join(cwd, parentDir.slice(3 * i));
|
|
1549
|
-
"." !== potentialRoot[0] && props.root.length > potentialRoot.length && (props.root = potentialRoot, props.depthOffset = -n + i);
|
|
1552
|
+
"." !== potentialRoot[0] && props.root.length > potentialRoot.length && (props.root = ensureNonDriveRelativePath(potentialRoot), props.depthOffset = -n + i);
|
|
1550
1553
|
}
|
|
1551
1554
|
if (!isIgnore && props.depthOffset >= 0) {
|
|
1552
1555
|
null != props.commonPath || (props.commonPath = parts);
|
|
@@ -1560,7 +1563,7 @@ function normalizePattern(pattern, opts, props, isIgnore) {
|
|
|
1560
1563
|
if (i === parts.length - 1 || part !== props.commonPath[i] || isDynamicPattern(part)) break;
|
|
1561
1564
|
newCommonPath.push(part);
|
|
1562
1565
|
}
|
|
1563
|
-
props.depthOffset = newCommonPath.length, props.commonPath = newCommonPath, props.root = newCommonPath.length > 0 ? posix.join(cwd, ...newCommonPath) : cwd;
|
|
1566
|
+
props.depthOffset = newCommonPath.length, props.commonPath = newCommonPath, props.root = ensureNonDriveRelativePath(newCommonPath.length > 0 ? posix.join(cwd, ...newCommonPath) : cwd);
|
|
1564
1567
|
}
|
|
1565
1568
|
return result;
|
|
1566
1569
|
}
|
|
@@ -1631,18 +1634,17 @@ function formatPaths(paths, mapper) {
|
|
|
1631
1634
|
}
|
|
1632
1635
|
let defaultOptions = {
|
|
1633
1636
|
caseSensitiveMatch: !0,
|
|
1634
|
-
cwd: process.cwd(),
|
|
1635
1637
|
debug: !!process.env.TINYGLOBBY_DEBUG,
|
|
1636
1638
|
expandDirectories: !0,
|
|
1637
1639
|
followSymbolicLinks: !0,
|
|
1638
1640
|
onlyFiles: !0
|
|
1639
1641
|
};
|
|
1640
1642
|
function getOptions(options) {
|
|
1641
|
-
let opts = {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
};
|
|
1645
|
-
return opts.cwd = (opts.cwd instanceof URL ? fileURLToPath(opts.cwd) : resolve(opts.cwd)).replace(BACKSLASHES, "/"), opts.ignore = ensureStringArray(opts.ignore), opts.fs && (opts.fs = {
|
|
1643
|
+
let opts = Object.assign({}, options);
|
|
1644
|
+
for(let key in defaultOptions)void 0 === opts[key] && Object.assign(opts, {
|
|
1645
|
+
[key]: defaultOptions[key]
|
|
1646
|
+
});
|
|
1647
|
+
return opts.cwd = (opts.cwd instanceof URL ? fileURLToPath(opts.cwd) : resolve(opts.cwd || process.cwd())).replace(BACKSLASHES, "/"), opts.ignore = ensureStringArray(opts.ignore), opts.fs && (opts.fs = {
|
|
1646
1648
|
readdir: opts.fs.readdir || readdir,
|
|
1647
1649
|
readdirSync: opts.fs.readdirSync || readdirSync,
|
|
1648
1650
|
realpath: opts.fs.realpath || realpath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.rs",
|
|
6
6
|
"bugs": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"types.d.ts"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@rspack/core": "~2.0.
|
|
39
|
+
"@rspack/core": "~2.0.6",
|
|
40
40
|
"@swc/helpers": "^0.5.23"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -56,37 +56,37 @@
|
|
|
56
56
|
"@types/on-finished": "2.3.5",
|
|
57
57
|
"@types/range-parser": "^1.2.7",
|
|
58
58
|
"@types/ws": "^8.18.1",
|
|
59
|
-
"browserslist-load-config": "^1.0.
|
|
59
|
+
"browserslist-load-config": "^1.0.2",
|
|
60
60
|
"cac": "^7.0.0",
|
|
61
61
|
"chokidar": "^5.0.0",
|
|
62
|
-
"connect-next": "4.0.
|
|
62
|
+
"connect-next": "4.0.2",
|
|
63
63
|
"core-js": "^3.49.0",
|
|
64
64
|
"cors": "^2.8.6",
|
|
65
65
|
"css-loader": "7.1.4",
|
|
66
66
|
"deepmerge": "^4.3.1",
|
|
67
67
|
"dotenv-expand": "^13.0.0",
|
|
68
|
-
"html-rspack-plugin": "6.1.
|
|
68
|
+
"html-rspack-plugin": "6.1.9",
|
|
69
69
|
"http-proxy-middleware": "4.0.0",
|
|
70
70
|
"jiti": "^2.7.0",
|
|
71
|
-
"launch-editor-middleware": "^2.
|
|
72
|
-
"memfs": "^4.57.
|
|
71
|
+
"launch-editor-middleware": "^2.14.0",
|
|
72
|
+
"memfs": "^4.57.3",
|
|
73
73
|
"mrmime": "^2.0.1",
|
|
74
74
|
"on-finished": "2.4.1",
|
|
75
75
|
"open": "^11.0.0",
|
|
76
76
|
"postcss": "^8.5.15",
|
|
77
77
|
"postcss-load-config": "6.0.1",
|
|
78
78
|
"postcss-loader": "8.2.1",
|
|
79
|
-
"prebundle": "1.6.
|
|
79
|
+
"prebundle": "1.6.5",
|
|
80
80
|
"range-parser": "^1.2.1",
|
|
81
81
|
"reduce-configs": "^2.0.0",
|
|
82
|
-
"rslog": "^2.1.
|
|
83
|
-
"rspack-chain": "^2.0.
|
|
82
|
+
"rslog": "^2.1.2",
|
|
83
|
+
"rspack-chain": "^2.0.2",
|
|
84
84
|
"rspack-manifest-plugin": "5.2.1",
|
|
85
85
|
"rspack-merge": "1.0.1",
|
|
86
86
|
"sirv": "^3.0.2",
|
|
87
87
|
"stacktrace-parser": "^0.1.11",
|
|
88
88
|
"style-loader": "^4.0.0",
|
|
89
|
-
"tinyglobby": "^0.2.
|
|
89
|
+
"tinyglobby": "^0.2.17",
|
|
90
90
|
"typescript": "^6.0.3",
|
|
91
91
|
"ws": "^8.21.0"
|
|
92
92
|
},
|