@rsbuild/core 1.2.11 → 1.2.13
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.d.ts +61 -23
- package/compiled/chokidar/index.js +71 -56
- package/compiled/css-loader/index.js +309 -195
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/http-proxy-middleware/index.d.ts +1 -1
- package/compiled/launch-editor-middleware/index.js +9 -6
- package/compiled/mrmime/index.js +4 -0
- package/compiled/mrmime/package.json +1 -1
- package/compiled/postcss/index.js +194 -194
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-load-config/index.js +11 -11
- package/compiled/postcss-loader/index.js +9 -9
- package/compiled/rsbuild-dev-middleware/index.js +56 -46
- package/compiled/rsbuild-dev-middleware/package.json +1 -1
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/sirv/index.js +8 -4
- package/compiled/sirv/package.json +1 -1
- package/compiled/style-loader/index.js +10 -10
- package/compiled/tinyglobby/index.d.ts +1 -0
- package/compiled/tinyglobby/index.js +266 -142
- package/compiled/tinyglobby/package.json +1 -1
- package/compiled/webpack-bundle-analyzer/index.js +6 -2
- package/compiled/ws/index.js +50 -49
- package/compiled/ws/package.json +1 -1
- package/dist/client/hmr.js +2 -2
- package/dist/index.cjs +146 -93
- package/dist/index.js +142 -89
- package/dist-types/helpers/index.d.ts +4 -3
- package/dist-types/index.d.ts +1 -1
- package/dist-types/loadEnv.d.ts +16 -4
- package/dist-types/logger.d.ts +14 -0
- package/dist-types/server/devServer.d.ts +2 -1
- package/dist-types/server/socketServer.d.ts +4 -2
- package/dist-types/types/config.d.ts +79 -43
- package/dist-types/types/rspack.d.ts +1 -1
- package/package.json +12 -12
- package/compiled/jiti/index.d.ts +0 -1
- package/compiled/jiti/index.js +0 -416
- package/compiled/jiti/license +0 -21
- package/compiled/jiti/package.json +0 -1
|
@@ -370,12 +370,12 @@
|
|
|
370
370
|
};
|
|
371
371
|
};
|
|
372
372
|
},
|
|
373
|
-
|
|
373
|
+
838: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
374
374
|
const { resolve } = __nccwpck_require__(760);
|
|
375
375
|
const config = __nccwpck_require__(920);
|
|
376
|
-
const loadOptions = __nccwpck_require__(
|
|
377
|
-
const loadPlugins = __nccwpck_require__(
|
|
378
|
-
const req = __nccwpck_require__(
|
|
376
|
+
const loadOptions = __nccwpck_require__(672);
|
|
377
|
+
const loadPlugins = __nccwpck_require__(934);
|
|
378
|
+
const req = __nccwpck_require__(606);
|
|
379
379
|
const interopRequireDefault = (obj) =>
|
|
380
380
|
obj && obj.__esModule ? obj : { default: obj };
|
|
381
381
|
async function processResult(ctx, result) {
|
|
@@ -489,8 +489,8 @@
|
|
|
489
489
|
* @requires ./plugins
|
|
490
490
|
*/ module.exports = rc;
|
|
491
491
|
},
|
|
492
|
-
|
|
493
|
-
const req = __nccwpck_require__(
|
|
492
|
+
672: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
493
|
+
const req = __nccwpck_require__(606);
|
|
494
494
|
async function options(config, file) {
|
|
495
495
|
if (config.parser && typeof config.parser === "string") {
|
|
496
496
|
try {
|
|
@@ -523,8 +523,8 @@
|
|
|
523
523
|
}
|
|
524
524
|
module.exports = options;
|
|
525
525
|
},
|
|
526
|
-
|
|
527
|
-
const req = __nccwpck_require__(
|
|
526
|
+
934: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
527
|
+
const req = __nccwpck_require__(606);
|
|
528
528
|
async function load(plugin, options, file) {
|
|
529
529
|
try {
|
|
530
530
|
if (
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
}
|
|
580
580
|
module.exports = plugins;
|
|
581
581
|
},
|
|
582
|
-
|
|
582
|
+
606: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
583
583
|
const { createRequire } = __nccwpck_require__(995);
|
|
584
584
|
const { pathToFileURL } = __nccwpck_require__(136);
|
|
585
585
|
const TS_EXT_RE = /\.[mc]?ts$/;
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
}
|
|
610
610
|
if (jiti === undefined) {
|
|
611
611
|
try {
|
|
612
|
-
jiti = (await import("
|
|
612
|
+
jiti = (await import("jiti")).default;
|
|
613
613
|
} catch (error) {
|
|
614
614
|
importError.push(error);
|
|
615
615
|
}
|
|
@@ -740,6 +740,6 @@
|
|
|
740
740
|
})();
|
|
741
741
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
742
742
|
__nccwpck_require__.ab = __dirname + "/";
|
|
743
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
743
|
+
var __webpack_exports__ = __nccwpck_require__(838);
|
|
744
744
|
module.exports = __webpack_exports__;
|
|
745
745
|
})();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
384: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(534)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
534: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8
8
|
var __webpack_unused_export__;
|
|
9
9
|
__webpack_unused_export__ = { value: true };
|
|
10
10
|
exports["default"] = loader;
|
|
11
11
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
12
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _utils = __nccwpck_require__(519);
|
|
13
13
|
function _interopRequireDefault(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
15
15
|
}
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
callback(null, result.css, map, { ast });
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
519: (module, exports, __nccwpck_require__) => {
|
|
183
183
|
module = __nccwpck_require__.nmd(module);
|
|
184
184
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
185
185
|
exports.exec = exec;
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
};
|
|
310
310
|
if (!tsLoader) {
|
|
311
311
|
const opts = { interopDefault: true };
|
|
312
|
-
const jiti = __nccwpck_require__(
|
|
312
|
+
const jiti = __nccwpck_require__(549)(__filename, opts);
|
|
313
313
|
tsLoader = (filepath) => jiti(filepath);
|
|
314
314
|
}
|
|
315
315
|
loaders[".cts"] = tsLoader;
|
|
@@ -669,8 +669,8 @@
|
|
|
669
669
|
return obj;
|
|
670
670
|
}
|
|
671
671
|
},
|
|
672
|
-
|
|
673
|
-
module.exports = require("
|
|
672
|
+
549: (module) => {
|
|
673
|
+
module.exports = require("jiti");
|
|
674
674
|
},
|
|
675
675
|
339: (module) => {
|
|
676
676
|
module.exports = require("module");
|
|
@@ -716,6 +716,6 @@
|
|
|
716
716
|
})();
|
|
717
717
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
718
718
|
__nccwpck_require__.ab = __dirname + "/";
|
|
719
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
719
|
+
var __webpack_exports__ = __nccwpck_require__(384);
|
|
720
720
|
module.exports = __webpack_exports__;
|
|
721
721
|
})();
|
|
@@ -4449,14 +4449,15 @@
|
|
|
4449
4449
|
return a.start - b.start;
|
|
4450
4450
|
}
|
|
4451
4451
|
},
|
|
4452
|
-
|
|
4452
|
+
4189: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4453
4453
|
"use strict";
|
|
4454
|
-
const
|
|
4455
|
-
const
|
|
4456
|
-
const
|
|
4457
|
-
const
|
|
4458
|
-
const
|
|
4459
|
-
const
|
|
4454
|
+
const { logger } = __nccwpck_require__(8679);
|
|
4455
|
+
const middleware = __nccwpck_require__(7217);
|
|
4456
|
+
const getFilenameFromUrl = __nccwpck_require__(5513);
|
|
4457
|
+
const setupHooks = __nccwpck_require__(2628);
|
|
4458
|
+
const setupWriteToDisk = __nccwpck_require__(495);
|
|
4459
|
+
const setupOutputFileSystem = __nccwpck_require__(6372);
|
|
4460
|
+
const ready = __nccwpck_require__(4480);
|
|
4460
4461
|
const noop = () => {};
|
|
4461
4462
|
function wdm(compiler, options = {}) {
|
|
4462
4463
|
const context = {
|
|
@@ -4465,7 +4466,6 @@
|
|
|
4465
4466
|
callbacks: [],
|
|
4466
4467
|
options,
|
|
4467
4468
|
compiler,
|
|
4468
|
-
logger: compiler.getInfrastructureLogger("webpack-dev-middleware"),
|
|
4469
4469
|
};
|
|
4470
4470
|
setupHooks(context);
|
|
4471
4471
|
if (options.writeToDisk) {
|
|
@@ -4477,7 +4477,10 @@
|
|
|
4477
4477
|
} else {
|
|
4478
4478
|
const errorHandler = (error) => {
|
|
4479
4479
|
if (error) {
|
|
4480
|
-
|
|
4480
|
+
if (error.message && error.message.includes("× Error:")) {
|
|
4481
|
+
error.message = error.message.replace("× Error:", "").trim();
|
|
4482
|
+
}
|
|
4483
|
+
logger.error(error);
|
|
4481
4484
|
}
|
|
4482
4485
|
};
|
|
4483
4486
|
if (Array.isArray(context.compiler.compilers)) {
|
|
@@ -4511,14 +4514,15 @@
|
|
|
4511
4514
|
}
|
|
4512
4515
|
module.exports = wdm;
|
|
4513
4516
|
},
|
|
4514
|
-
|
|
4517
|
+
7217: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4515
4518
|
"use strict";
|
|
4516
4519
|
const mrmime = __nccwpck_require__(8311);
|
|
4520
|
+
const { logger } = __nccwpck_require__(8679);
|
|
4517
4521
|
const onFinishedStream = __nccwpck_require__(21);
|
|
4518
|
-
const getFilenameFromUrl = __nccwpck_require__(
|
|
4519
|
-
const ready = __nccwpck_require__(
|
|
4520
|
-
const parseTokenList = __nccwpck_require__(
|
|
4521
|
-
const memorize = __nccwpck_require__(
|
|
4522
|
+
const getFilenameFromUrl = __nccwpck_require__(5513);
|
|
4523
|
+
const ready = __nccwpck_require__(4480);
|
|
4524
|
+
const parseTokenList = __nccwpck_require__(1855);
|
|
4525
|
+
const memorize = __nccwpck_require__(2297);
|
|
4522
4526
|
async function getEtag(stat) {
|
|
4523
4527
|
const mtime = stat.mtime.getTime().toString(16);
|
|
4524
4528
|
const size = stat.size.toString(16);
|
|
@@ -4610,7 +4614,7 @@
|
|
|
4610
4614
|
return;
|
|
4611
4615
|
}
|
|
4612
4616
|
function sendError(status, options) {
|
|
4613
|
-
const escapeHtml = __nccwpck_require__(
|
|
4617
|
+
const escapeHtml = __nccwpck_require__(2117);
|
|
4614
4618
|
const content = statuses[status] || String(status);
|
|
4615
4619
|
const document = Buffer.from(
|
|
4616
4620
|
`<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Error</title>\n</head>\n<body>\n<pre>${escapeHtml(content)}</pre>\n</body>\n</html>`,
|
|
@@ -4769,7 +4773,9 @@
|
|
|
4769
4773
|
const filename = getFilenameFromUrl(context, req.url, extra);
|
|
4770
4774
|
if (extra.errorCode) {
|
|
4771
4775
|
if (extra.errorCode === 403) {
|
|
4772
|
-
|
|
4776
|
+
logger.error(
|
|
4777
|
+
`[rsbuild-dev-middleware] Malicious path "${filename}".`,
|
|
4778
|
+
);
|
|
4773
4779
|
}
|
|
4774
4780
|
sendError(extra.errorCode);
|
|
4775
4781
|
return;
|
|
@@ -4836,7 +4842,9 @@
|
|
|
4836
4842
|
parsedRanges = [];
|
|
4837
4843
|
}
|
|
4838
4844
|
if (parsedRanges === -1) {
|
|
4839
|
-
|
|
4845
|
+
logger.error(
|
|
4846
|
+
"[rsbuild-dev-middleware] Unsatisfiable range for 'Range' header.",
|
|
4847
|
+
);
|
|
4840
4848
|
res.setHeader(
|
|
4841
4849
|
"Content-Range",
|
|
4842
4850
|
getValueContentRangeHeader("bytes", size),
|
|
@@ -4847,12 +4855,12 @@
|
|
|
4847
4855
|
return;
|
|
4848
4856
|
}
|
|
4849
4857
|
if (parsedRanges === -2) {
|
|
4850
|
-
|
|
4851
|
-
"A malformed 'Range' header was provided. A regular response will be sent for this request.",
|
|
4858
|
+
logger.error(
|
|
4859
|
+
"[rsbuild-dev-middleware] A malformed 'Range' header was provided. A regular response will be sent for this request.",
|
|
4852
4860
|
);
|
|
4853
4861
|
} else if (parsedRanges.length > 1) {
|
|
4854
|
-
|
|
4855
|
-
"A 'Range' header with multiple ranges was provided. Multiple ranges are not supported, so a regular response will be sent for this request.",
|
|
4862
|
+
logger.error(
|
|
4863
|
+
"[rsbuild-dev-middleware] A 'Range' header with multiple ranges was provided. Multiple ranges are not supported, so a regular response will be sent for this request.",
|
|
4856
4864
|
);
|
|
4857
4865
|
}
|
|
4858
4866
|
if (parsedRanges !== -2 && parsedRanges.length === 1) {
|
|
@@ -4915,7 +4923,7 @@
|
|
|
4915
4923
|
}
|
|
4916
4924
|
module.exports = wrapper;
|
|
4917
4925
|
},
|
|
4918
|
-
|
|
4926
|
+
2117: (module) => {
|
|
4919
4927
|
"use strict";
|
|
4920
4928
|
const matchHtmlRegExp = /["'&<>]/;
|
|
4921
4929
|
function escapeHtml(string) {
|
|
@@ -4960,13 +4968,13 @@
|
|
|
4960
4968
|
}
|
|
4961
4969
|
module.exports = escapeHtml;
|
|
4962
4970
|
},
|
|
4963
|
-
|
|
4971
|
+
5513: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4964
4972
|
"use strict";
|
|
4965
4973
|
const path = __nccwpck_require__(6928);
|
|
4966
4974
|
const { parse } = __nccwpck_require__(7016);
|
|
4967
4975
|
const querystring = __nccwpck_require__(3480);
|
|
4968
|
-
const getPaths = __nccwpck_require__(
|
|
4969
|
-
const memorize = __nccwpck_require__(
|
|
4976
|
+
const getPaths = __nccwpck_require__(4803);
|
|
4977
|
+
const memorize = __nccwpck_require__(2297);
|
|
4970
4978
|
const memoizedParse = memorize(parse, undefined, (value) => {
|
|
4971
4979
|
if (value.pathname) {
|
|
4972
4980
|
value.pathname = decode(value.pathname);
|
|
@@ -5049,7 +5057,7 @@
|
|
|
5049
5057
|
}
|
|
5050
5058
|
module.exports = getFilenameFromUrl;
|
|
5051
5059
|
},
|
|
5052
|
-
|
|
5060
|
+
4803: (module) => {
|
|
5053
5061
|
"use strict";
|
|
5054
5062
|
function getPaths(context) {
|
|
5055
5063
|
const { stats, options } = context;
|
|
@@ -5070,7 +5078,7 @@
|
|
|
5070
5078
|
}
|
|
5071
5079
|
module.exports = getPaths;
|
|
5072
5080
|
},
|
|
5073
|
-
|
|
5081
|
+
2297: (module) => {
|
|
5074
5082
|
"use strict";
|
|
5075
5083
|
const cacheStore = new WeakMap();
|
|
5076
5084
|
function memorize(fn, { cache = new Map() } = {}, callback) {
|
|
@@ -5092,7 +5100,7 @@
|
|
|
5092
5100
|
}
|
|
5093
5101
|
module.exports = memorize;
|
|
5094
5102
|
},
|
|
5095
|
-
|
|
5103
|
+
1855: (module) => {
|
|
5096
5104
|
"use strict";
|
|
5097
5105
|
function parseTokenList(str) {
|
|
5098
5106
|
let end = 0;
|
|
@@ -5125,28 +5133,26 @@
|
|
|
5125
5133
|
}
|
|
5126
5134
|
module.exports = parseTokenList;
|
|
5127
5135
|
},
|
|
5128
|
-
|
|
5136
|
+
4480: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5129
5137
|
"use strict";
|
|
5138
|
+
const { logger } = __nccwpck_require__(8679);
|
|
5130
5139
|
function ready(context, callback, req) {
|
|
5131
5140
|
if (context.state) {
|
|
5132
5141
|
callback(context.stats);
|
|
5133
5142
|
return;
|
|
5134
5143
|
}
|
|
5135
5144
|
const name = (req && req.url) || callback.name;
|
|
5136
|
-
|
|
5137
|
-
`wait until bundle finished${name ? `: ${name}` : ""}`,
|
|
5145
|
+
logger.debug(
|
|
5146
|
+
`[rsbuild-dev-middleware] wait until bundle finished${name ? `: ${name}` : ""}`,
|
|
5138
5147
|
);
|
|
5139
5148
|
context.callbacks.push(callback);
|
|
5140
5149
|
}
|
|
5141
5150
|
module.exports = ready;
|
|
5142
5151
|
},
|
|
5143
|
-
|
|
5152
|
+
2628: (module) => {
|
|
5144
5153
|
"use strict";
|
|
5145
5154
|
function setupHooks(context) {
|
|
5146
5155
|
function invalid() {
|
|
5147
|
-
if (context.state) {
|
|
5148
|
-
context.logger.log("Compilation starting...");
|
|
5149
|
-
}
|
|
5150
5156
|
context.state = false;
|
|
5151
5157
|
context.stats = undefined;
|
|
5152
5158
|
}
|
|
@@ -5154,11 +5160,10 @@
|
|
|
5154
5160
|
context.state = true;
|
|
5155
5161
|
context.stats = stats;
|
|
5156
5162
|
process.nextTick(() => {
|
|
5157
|
-
const {
|
|
5163
|
+
const { state, callbacks } = context;
|
|
5158
5164
|
if (!state) {
|
|
5159
5165
|
return;
|
|
5160
5166
|
}
|
|
5161
|
-
logger.log("Compilation finished");
|
|
5162
5167
|
context.callbacks = [];
|
|
5163
5168
|
callbacks.forEach((callback) => {
|
|
5164
5169
|
callback(stats);
|
|
@@ -5172,7 +5177,7 @@
|
|
|
5172
5177
|
}
|
|
5173
5178
|
module.exports = setupHooks;
|
|
5174
5179
|
},
|
|
5175
|
-
|
|
5180
|
+
6372: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5176
5181
|
"use strict";
|
|
5177
5182
|
const memfs = __nccwpck_require__(5590);
|
|
5178
5183
|
function setupOutputFileSystem(context) {
|
|
@@ -5199,10 +5204,11 @@
|
|
|
5199
5204
|
}
|
|
5200
5205
|
module.exports = setupOutputFileSystem;
|
|
5201
5206
|
},
|
|
5202
|
-
|
|
5207
|
+
495: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5203
5208
|
"use strict";
|
|
5204
5209
|
const fs = __nccwpck_require__(9896);
|
|
5205
5210
|
const path = __nccwpck_require__(6928);
|
|
5211
|
+
const { logger } = __nccwpck_require__(8679);
|
|
5206
5212
|
function setupWriteToDisk(context) {
|
|
5207
5213
|
const compilers = context.compiler.compilers || [context.compiler];
|
|
5208
5214
|
for (const compiler of compilers) {
|
|
@@ -5228,20 +5234,20 @@
|
|
|
5228
5234
|
: "";
|
|
5229
5235
|
return fs.mkdir(dir, { recursive: true }, (mkdirError) => {
|
|
5230
5236
|
if (mkdirError) {
|
|
5231
|
-
|
|
5232
|
-
|
|
5237
|
+
logger.error(
|
|
5238
|
+
`[rsbuild-dev-middleware] ${name}Unable to write "${dir}" directory to disk:\n${mkdirError}`,
|
|
5233
5239
|
);
|
|
5234
5240
|
return callback(mkdirError);
|
|
5235
5241
|
}
|
|
5236
5242
|
return fs.writeFile(targetPath, content, (writeFileError) => {
|
|
5237
5243
|
if (writeFileError) {
|
|
5238
|
-
|
|
5239
|
-
|
|
5244
|
+
logger.error(
|
|
5245
|
+
`[rsbuild-dev-middleware] ${name}Unable to write "${targetPath}" asset to disk:\n${writeFileError}`,
|
|
5240
5246
|
);
|
|
5241
5247
|
return callback(writeFileError);
|
|
5242
5248
|
}
|
|
5243
|
-
|
|
5244
|
-
|
|
5249
|
+
logger.debug(
|
|
5250
|
+
`[rsbuild-dev-middleware] ${name}Asset written to disk: "${targetPath}"`,
|
|
5245
5251
|
);
|
|
5246
5252
|
return callback();
|
|
5247
5253
|
});
|
|
@@ -6118,6 +6124,10 @@
|
|
|
6118
6124
|
"use strict";
|
|
6119
6125
|
module.exports = require("../mrmime");
|
|
6120
6126
|
},
|
|
6127
|
+
8679: (module) => {
|
|
6128
|
+
"use strict";
|
|
6129
|
+
module.exports = require("../rslog");
|
|
6130
|
+
},
|
|
6121
6131
|
2613: (module) => {
|
|
6122
6132
|
"use strict";
|
|
6123
6133
|
module.exports = require("assert");
|
|
@@ -6185,6 +6195,6 @@
|
|
|
6185
6195
|
}
|
|
6186
6196
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6187
6197
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6188
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6198
|
+
var __webpack_exports__ = __nccwpck_require__(4189);
|
|
6189
6199
|
module.exports = __webpack_exports__;
|
|
6190
6200
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"rsbuild-dev-middleware","author":"Tobias Koppers @sokra","version":"0.
|
|
1
|
+
{"name":"rsbuild-dev-middleware","author":"Tobias Koppers @sokra","version":"0.2.0","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
4
|
+
290: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.transformFiles =
|
|
7
7
|
exports.reduceChunk =
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
.map(standardizeFilePaths);
|
|
121
121
|
exports.transformFiles = transformFiles;
|
|
122
122
|
},
|
|
123
|
-
|
|
123
|
+
491: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
124
124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
125
125
|
exports.normalModuleLoaderHook =
|
|
126
126
|
exports.getCompilerHooks =
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
const fs_1 = __nccwpck_require__(896);
|
|
131
131
|
const path_1 = __nccwpck_require__(928);
|
|
132
132
|
const lite_tapable_1 = __nccwpck_require__(408);
|
|
133
|
-
const helpers_1 = __nccwpck_require__(
|
|
133
|
+
const helpers_1 = __nccwpck_require__(290);
|
|
134
134
|
const compilerHookMap = new WeakMap();
|
|
135
135
|
const getCompilerHooks = (compiler) => {
|
|
136
136
|
let hooks = compilerHookMap.get(compiler);
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
exports.getCompilerHooks =
|
|
313
313
|
void 0;
|
|
314
314
|
const path_1 = __nccwpck_require__(928);
|
|
315
|
-
const hooks_1 = __nccwpck_require__(
|
|
315
|
+
const hooks_1 = __nccwpck_require__(491);
|
|
316
316
|
Object.defineProperty(exports, "getCompilerHooks", {
|
|
317
317
|
enumerable: true,
|
|
318
318
|
get: function () {
|
package/compiled/sirv/index.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
exports.parse = parse;
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
443: (__unused_webpack_module, exports) => {
|
|
28
28
|
const mimes = {
|
|
29
29
|
"3g2": "video/3gpp2",
|
|
30
30
|
"3gp": "video/3gpp",
|
|
@@ -181,6 +181,7 @@
|
|
|
181
181
|
jsonml: "application/jsonml+json",
|
|
182
182
|
jsx: "text/jsx",
|
|
183
183
|
jt: "model/jt",
|
|
184
|
+
jxl: "image/jxl",
|
|
184
185
|
jxr: "image/jxr",
|
|
185
186
|
jxra: "image/jxra",
|
|
186
187
|
jxrs: "image/jxrs",
|
|
@@ -201,6 +202,8 @@
|
|
|
201
202
|
m1v: "video/mpeg",
|
|
202
203
|
m21: "application/mp21",
|
|
203
204
|
m2a: "audio/mpeg",
|
|
205
|
+
m2t: "video/mp2t",
|
|
206
|
+
m2ts: "video/mp2t",
|
|
204
207
|
m2v: "video/mpeg",
|
|
205
208
|
m3a: "audio/mpeg",
|
|
206
209
|
m4a: "audio/mp4",
|
|
@@ -261,6 +264,7 @@
|
|
|
261
264
|
msm: "application/octet-stream",
|
|
262
265
|
msp: "application/octet-stream",
|
|
263
266
|
mtl: "model/mtl",
|
|
267
|
+
mts: "video/mp2t",
|
|
264
268
|
musd: "application/mmt-usd+xml",
|
|
265
269
|
mxf: "application/mxf",
|
|
266
270
|
mxmf: "audio/mobile-xmf",
|
|
@@ -469,12 +473,12 @@
|
|
|
469
473
|
exports.mimes = mimes;
|
|
470
474
|
exports.lookup = lookup;
|
|
471
475
|
},
|
|
472
|
-
|
|
476
|
+
940: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
473
477
|
const fs = __nccwpck_require__(24);
|
|
474
478
|
const { join, normalize, resolve } = __nccwpck_require__(760);
|
|
475
479
|
const { totalist } = __nccwpck_require__(794);
|
|
476
480
|
const { parse } = __nccwpck_require__(847);
|
|
477
|
-
const { lookup } = __nccwpck_require__(
|
|
481
|
+
const { lookup } = __nccwpck_require__(443);
|
|
478
482
|
const noop = () => {};
|
|
479
483
|
function isMatch(uri, arr) {
|
|
480
484
|
for (let i = 0; i < arr.length; i++) {
|
|
@@ -704,6 +708,6 @@
|
|
|
704
708
|
}
|
|
705
709
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
706
710
|
__nccwpck_require__.ab = __dirname + "/";
|
|
707
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
711
|
+
var __webpack_exports__ = __nccwpck_require__(940);
|
|
708
712
|
module.exports = __webpack_exports__;
|
|
709
713
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"sirv","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"version":"3.0.
|
|
1
|
+
{"name":"sirv","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"version":"3.0.1","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
4
|
+
127: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
const loader = __nccwpck_require__(689);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
},
|
|
8
|
-
|
|
8
|
+
689: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports["default"] = void 0;
|
|
11
11
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
12
|
-
var _utils = __nccwpck_require__(
|
|
13
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
12
|
+
var _utils = __nccwpck_require__(708);
|
|
13
|
+
var _options = _interopRequireDefault(__nccwpck_require__(20));
|
|
14
14
|
function _interopRequireDefault(obj) {
|
|
15
15
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
16
16
|
}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
};
|
|
105
105
|
var _default = (exports["default"] = loader);
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
798: (module) => {
|
|
108
108
|
function isEqualLocals(a, b, isNamedExport) {
|
|
109
109
|
if ((!a && b) || (a && !b)) {
|
|
110
110
|
return false;
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
}
|
|
131
131
|
module.exports = isEqualLocals;
|
|
132
132
|
},
|
|
133
|
-
|
|
133
|
+
708: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
134
134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
135
135
|
exports.getExportLazyStyleCode = getExportLazyStyleCode;
|
|
136
136
|
exports.getExportStyleCode = getExportStyleCode;
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
exports.getdomAPI = getdomAPI;
|
|
152
152
|
exports.stringifyRequest = stringifyRequest;
|
|
153
153
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
154
|
-
var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(
|
|
154
|
+
var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(798));
|
|
155
155
|
function _interopRequireDefault(obj) {
|
|
156
156
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
157
157
|
}
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
928: (module) => {
|
|
395
395
|
module.exports = require("path");
|
|
396
396
|
},
|
|
397
|
-
|
|
397
|
+
20: (module) => {
|
|
398
398
|
module.exports = JSON.parse(
|
|
399
399
|
'{"title":"Style Loader options","type":"object","properties":{"injectType":{"description":"Allows to setup how styles will be injected into DOM.","link":"https://github.com/webpack-contrib/style-loader#injecttype","enum":["styleTag","singletonStyleTag","autoStyleTag","lazyStyleTag","lazySingletonStyleTag","lazyAutoStyleTag","linkTag"]},"attributes":{"description":"Adds custom attributes to tag.","link":"https://github.com/webpack-contrib/style-loader#attributes","type":"object"},"insert":{"description":"Inserts `<style>`/`<link>` at the given position.","link":"https://github.com/webpack-contrib/style-loader#insert","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"base":{"description":"Sets module ID base for DLLPlugin.","link":"https://github.com/webpack-contrib/style-loader#base","type":"number"},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"styleTagTransform":{"description":"Transform tag and css when insert \'style\' tag into the DOM","link":"https://github.com/webpack-contrib/style-loader#styleTagTransform","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
|
|
400
400
|
);
|
|
@@ -422,6 +422,6 @@
|
|
|
422
422
|
}
|
|
423
423
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
424
424
|
__nccwpck_require__.ab = __dirname + "/";
|
|
425
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
425
|
+
var __webpack_exports__ = __nccwpck_require__(127);
|
|
426
426
|
module.exports = __webpack_exports__;
|
|
427
427
|
})();
|
|
@@ -16,6 +16,7 @@ interface GlobOptions {
|
|
|
16
16
|
expandDirectories?: boolean;
|
|
17
17
|
onlyDirectories?: boolean;
|
|
18
18
|
onlyFiles?: boolean;
|
|
19
|
+
debug?: boolean;
|
|
19
20
|
}
|
|
20
21
|
declare function glob(patterns: string | string[], options?: Omit<GlobOptions, 'patterns'>): Promise<string[]>;
|
|
21
22
|
declare function glob(options: GlobOptions): Promise<string[]>;
|