@rsbuild/core 1.2.0-beta.1 → 1.2.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/compiled/chokidar/index.js +21 -21
- package/compiled/connect/index.js +49 -49
- package/compiled/connect-history-api-fallback/index.js +4 -4
- package/compiled/cors/index.js +6 -6
- package/compiled/css-loader/index.js +171 -171
- package/compiled/html-rspack-plugin/index.js +24 -24
- package/compiled/http-proxy-middleware/index.js +145 -145
- package/compiled/jiti/index.js +22 -22
- package/compiled/launch-editor-middleware/index.js +36 -36
- package/compiled/on-finished/index.js +6 -6
- package/compiled/open/index.js +19 -19
- package/compiled/picocolors/index.js +2 -2
- package/compiled/postcss/index.js +152 -152
- package/compiled/postcss-load-config/index.js +26 -26
- package/compiled/postcss-loader/index.js +15 -15
- package/compiled/rsbuild-dev-middleware/index.js +140 -140
- package/compiled/rspack-chain/index.js +85 -85
- package/compiled/rspack-manifest-plugin/index.js +12 -12
- package/compiled/sirv/index.js +18 -18
- package/compiled/style-loader/index.js +13 -13
- package/compiled/tinyglobby/index.js +70 -70
- package/compiled/webpack-bundle-analyzer/index.js +197 -197
- package/compiled/webpack-merge/index.js +29 -29
- package/compiled/ws/index.js +81 -81
- package/dist/index.cjs +153 -142
- package/dist/index.js +153 -142
- package/dist-types/configChain.d.ts +2 -0
- package/dist-types/helpers/path.d.ts +6 -0
- package/dist-types/plugins/css.d.ts +2 -1
- package/dist-types/types/config.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
4
|
-
const url = __nccwpck_require__(
|
|
5
|
-
const path = __nccwpck_require__(
|
|
6
|
-
const launch = __nccwpck_require__(
|
|
3
|
+
680: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
|
+
const url = __nccwpck_require__(16);
|
|
5
|
+
const path = __nccwpck_require__(928);
|
|
6
|
+
const launch = __nccwpck_require__(506);
|
|
7
7
|
module.exports = (specifiedEditor, srcRoot, onErrorCallback) => {
|
|
8
8
|
if (typeof specifiedEditor === "function") {
|
|
9
9
|
onErrorCallback = specifiedEditor;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
991: (module) => {
|
|
36
36
|
module.exports = {
|
|
37
37
|
atom: "atom",
|
|
38
38
|
Brackets: "brackets",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"rider.sh": "rider",
|
|
61
61
|
};
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
748: (module) => {
|
|
64
64
|
module.exports = {
|
|
65
65
|
"/Applications/Atom.app/Contents/MacOS/Atom": "atom",
|
|
66
66
|
"/Applications/Atom Beta.app/Contents/MacOS/Atom Beta":
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"/Applications/Zed.app/Contents/MacOS/zed": "zed",
|
|
108
108
|
};
|
|
109
109
|
},
|
|
110
|
-
|
|
110
|
+
444: (module) => {
|
|
111
111
|
module.exports = [
|
|
112
112
|
"Brackets.exe",
|
|
113
113
|
"Code.exe",
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
"rider64.exe",
|
|
135
135
|
];
|
|
136
136
|
},
|
|
137
|
-
|
|
138
|
-
const path = __nccwpck_require__(
|
|
137
|
+
302: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
138
|
+
const path = __nccwpck_require__(928);
|
|
139
139
|
module.exports = function getArgumentsForPosition(
|
|
140
140
|
editor,
|
|
141
141
|
fileName,
|
|
@@ -205,13 +205,13 @@
|
|
|
205
205
|
return [fileName];
|
|
206
206
|
};
|
|
207
207
|
},
|
|
208
|
-
|
|
209
|
-
const path = __nccwpck_require__(
|
|
210
|
-
const shellQuote = __nccwpck_require__(
|
|
211
|
-
const childProcess = __nccwpck_require__(
|
|
212
|
-
const COMMON_EDITORS_MACOS = __nccwpck_require__(
|
|
213
|
-
const COMMON_EDITORS_LINUX = __nccwpck_require__(
|
|
214
|
-
const COMMON_EDITORS_WIN = __nccwpck_require__(
|
|
208
|
+
215: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
209
|
+
const path = __nccwpck_require__(928);
|
|
210
|
+
const shellQuote = __nccwpck_require__(32);
|
|
211
|
+
const childProcess = __nccwpck_require__(317);
|
|
212
|
+
const COMMON_EDITORS_MACOS = __nccwpck_require__(748);
|
|
213
|
+
const COMMON_EDITORS_LINUX = __nccwpck_require__(991);
|
|
214
|
+
const COMMON_EDITORS_WIN = __nccwpck_require__(444);
|
|
215
215
|
module.exports = function guessEditor(specifiedEditor) {
|
|
216
216
|
if (specifiedEditor) {
|
|
217
217
|
return shellQuote.parse(specifiedEditor);
|
|
@@ -288,14 +288,14 @@
|
|
|
288
288
|
return [null];
|
|
289
289
|
};
|
|
290
290
|
},
|
|
291
|
-
|
|
292
|
-
const fs = __nccwpck_require__(
|
|
293
|
-
const os = __nccwpck_require__(
|
|
294
|
-
const path = __nccwpck_require__(
|
|
295
|
-
const colors = __nccwpck_require__(
|
|
296
|
-
const childProcess = __nccwpck_require__(
|
|
297
|
-
const guessEditor = __nccwpck_require__(
|
|
298
|
-
const getArgumentsForPosition = __nccwpck_require__(
|
|
291
|
+
506: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
292
|
+
const fs = __nccwpck_require__(896);
|
|
293
|
+
const os = __nccwpck_require__(857);
|
|
294
|
+
const path = __nccwpck_require__(928);
|
|
295
|
+
const colors = __nccwpck_require__(717);
|
|
296
|
+
const childProcess = __nccwpck_require__(317);
|
|
297
|
+
const guessEditor = __nccwpck_require__(215);
|
|
298
|
+
const getArgumentsForPosition = __nccwpck_require__(302);
|
|
299
299
|
function wrapErrorCallback(cb) {
|
|
300
300
|
return (fileName, errorMessage) => {
|
|
301
301
|
console.log();
|
|
@@ -414,12 +414,12 @@
|
|
|
414
414
|
}
|
|
415
415
|
module.exports = launchEditor;
|
|
416
416
|
},
|
|
417
|
-
|
|
417
|
+
32: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
418
418
|
"use strict";
|
|
419
|
-
exports.quote = __nccwpck_require__(
|
|
420
|
-
exports.parse = __nccwpck_require__(
|
|
419
|
+
exports.quote = __nccwpck_require__(740);
|
|
420
|
+
exports.parse = __nccwpck_require__(779);
|
|
421
421
|
},
|
|
422
|
-
|
|
422
|
+
779: (module) => {
|
|
423
423
|
"use strict";
|
|
424
424
|
var CONTROL =
|
|
425
425
|
"(?:" +
|
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
}, []);
|
|
621
621
|
};
|
|
622
622
|
},
|
|
623
|
-
|
|
623
|
+
740: (module) => {
|
|
624
624
|
"use strict";
|
|
625
625
|
module.exports = function quote(xs) {
|
|
626
626
|
return xs
|
|
@@ -642,27 +642,27 @@
|
|
|
642
642
|
.join(" ");
|
|
643
643
|
};
|
|
644
644
|
},
|
|
645
|
-
|
|
645
|
+
717: (module) => {
|
|
646
646
|
"use strict";
|
|
647
647
|
module.exports = require("../picocolors");
|
|
648
648
|
},
|
|
649
|
-
|
|
649
|
+
317: (module) => {
|
|
650
650
|
"use strict";
|
|
651
651
|
module.exports = require("child_process");
|
|
652
652
|
},
|
|
653
|
-
|
|
653
|
+
896: (module) => {
|
|
654
654
|
"use strict";
|
|
655
655
|
module.exports = require("fs");
|
|
656
656
|
},
|
|
657
|
-
|
|
657
|
+
857: (module) => {
|
|
658
658
|
"use strict";
|
|
659
659
|
module.exports = require("os");
|
|
660
660
|
},
|
|
661
|
-
|
|
661
|
+
928: (module) => {
|
|
662
662
|
"use strict";
|
|
663
663
|
module.exports = require("path");
|
|
664
664
|
},
|
|
665
|
-
|
|
665
|
+
16: (module) => {
|
|
666
666
|
"use strict";
|
|
667
667
|
module.exports = require("url");
|
|
668
668
|
},
|
|
@@ -689,6 +689,6 @@
|
|
|
689
689
|
}
|
|
690
690
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
691
691
|
__nccwpck_require__.ab = __dirname + "/";
|
|
692
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
692
|
+
var __webpack_exports__ = __nccwpck_require__(680);
|
|
693
693
|
module.exports = __webpack_exports__;
|
|
694
694
|
})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
4
|
+
997: (module) => {
|
|
5
5
|
/*!
|
|
6
6
|
* ee-first
|
|
7
7
|
* Copyright(c) 2014 Jonathan Ong
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
|
|
56
|
+
21: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
57
57
|
/*!
|
|
58
58
|
* on-finished
|
|
59
59
|
* Copyright(c) 2013 Jonathan Ong
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
module.exports = onFinished;
|
|
64
64
|
module.exports.isFinished = isFinished;
|
|
65
65
|
var asyncHooks = tryRequireAsyncHooks();
|
|
66
|
-
var first = __nccwpck_require__(
|
|
66
|
+
var first = __nccwpck_require__(997);
|
|
67
67
|
var defer =
|
|
68
68
|
typeof setImmediate === "function"
|
|
69
69
|
? setImmediate
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
}
|
|
151
151
|
function tryRequireAsyncHooks() {
|
|
152
152
|
try {
|
|
153
|
-
return __nccwpck_require__(
|
|
153
|
+
return __nccwpck_require__(290);
|
|
154
154
|
} catch (e) {
|
|
155
155
|
return {};
|
|
156
156
|
}
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
return res.runInAsyncScope.bind(res, fn, null);
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
-
|
|
169
|
+
290: (module) => {
|
|
170
170
|
module.exports = require("async_hooks");
|
|
171
171
|
},
|
|
172
172
|
};
|
|
@@ -192,6 +192,6 @@
|
|
|
192
192
|
}
|
|
193
193
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
194
194
|
__nccwpck_require__.ab = __dirname + "/";
|
|
195
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
195
|
+
var __webpack_exports__ = __nccwpck_require__(21);
|
|
196
196
|
module.exports = __webpack_exports__;
|
|
197
197
|
})();
|
package/compiled/open/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
932: (module) => {
|
|
4
4
|
"use strict";
|
|
5
5
|
module.exports = (object, propertyName, fn) => {
|
|
6
6
|
const define = (value) =>
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
return object;
|
|
25
25
|
};
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
293: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
28
28
|
"use strict";
|
|
29
|
-
const fs = __nccwpck_require__(
|
|
29
|
+
const fs = __nccwpck_require__(896);
|
|
30
30
|
let isDocker;
|
|
31
31
|
function hasDockerEnv() {
|
|
32
32
|
try {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
return isDocker;
|
|
53
53
|
};
|
|
54
54
|
},
|
|
55
|
-
|
|
55
|
+
622: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
56
56
|
"use strict";
|
|
57
|
-
const os = __nccwpck_require__(
|
|
58
|
-
const fs = __nccwpck_require__(
|
|
59
|
-
const isDocker = __nccwpck_require__(
|
|
57
|
+
const os = __nccwpck_require__(857);
|
|
58
|
+
const fs = __nccwpck_require__(896);
|
|
59
|
+
const isDocker = __nccwpck_require__(293);
|
|
60
60
|
const isWsl = () => {
|
|
61
61
|
if (process.platform !== "linux") {
|
|
62
62
|
return false;
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
module.exports = isWsl();
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
|
|
88
|
-
const path = __nccwpck_require__(
|
|
89
|
-
const childProcess = __nccwpck_require__(
|
|
90
|
-
const { promises: fs, constants: fsConstants } = __nccwpck_require__(
|
|
91
|
-
const isWsl = __nccwpck_require__(
|
|
92
|
-
const isDocker = __nccwpck_require__(
|
|
93
|
-
const defineLazyProperty = __nccwpck_require__(
|
|
87
|
+
820: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
88
|
+
const path = __nccwpck_require__(928);
|
|
89
|
+
const childProcess = __nccwpck_require__(317);
|
|
90
|
+
const { promises: fs, constants: fsConstants } = __nccwpck_require__(896);
|
|
91
|
+
const isWsl = __nccwpck_require__(622);
|
|
92
|
+
const isDocker = __nccwpck_require__(293);
|
|
93
|
+
const defineLazyProperty = __nccwpck_require__(932);
|
|
94
94
|
const localXdgOpenPath = __nccwpck_require__.ab + "xdg-open";
|
|
95
95
|
const { platform, arch } = process;
|
|
96
96
|
const hasContainerEnv = () => {
|
|
@@ -365,19 +365,19 @@
|
|
|
365
365
|
open.openApp = openApp;
|
|
366
366
|
module.exports = open;
|
|
367
367
|
},
|
|
368
|
-
|
|
368
|
+
317: (module) => {
|
|
369
369
|
"use strict";
|
|
370
370
|
module.exports = require("child_process");
|
|
371
371
|
},
|
|
372
|
-
|
|
372
|
+
896: (module) => {
|
|
373
373
|
"use strict";
|
|
374
374
|
module.exports = require("fs");
|
|
375
375
|
},
|
|
376
|
-
|
|
376
|
+
857: (module) => {
|
|
377
377
|
"use strict";
|
|
378
378
|
module.exports = require("os");
|
|
379
379
|
},
|
|
380
|
-
|
|
380
|
+
928: (module) => {
|
|
381
381
|
"use strict";
|
|
382
382
|
module.exports = require("path");
|
|
383
383
|
},
|
|
@@ -404,6 +404,6 @@
|
|
|
404
404
|
}
|
|
405
405
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
406
406
|
__nccwpck_require__.ab = __dirname + "/";
|
|
407
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
407
|
+
var __webpack_exports__ = __nccwpck_require__(820);
|
|
408
408
|
module.exports = __webpack_exports__;
|
|
409
409
|
})();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
456: (module) => {
|
|
4
4
|
let p = process || {},
|
|
5
5
|
argv = p.argv || [],
|
|
6
6
|
env = p.env || {};
|
|
@@ -103,6 +103,6 @@
|
|
|
103
103
|
}
|
|
104
104
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
105
105
|
__nccwpck_require__.ab = __dirname + "/";
|
|
106
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
106
|
+
var __webpack_exports__ = __nccwpck_require__(456);
|
|
107
107
|
module.exports = __webpack_exports__;
|
|
108
108
|
})();
|