@rspack-debug/browser 2.0.0-beta.7 → 2.0.0-beta.9
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/dist/Compilation.d.ts +2 -0
- package/dist/FileSystem.d.ts +1 -1
- package/dist/browser/BrowserRequirePlugin.d.ts +1 -1
- package/dist/browser/fs.d.ts +1 -1
- package/dist/builtin-loader/swc/pluginImport.d.ts +1 -1
- package/dist/builtin-loader/swc/types.d.ts +6 -0
- package/dist/builtin-plugin/EsmNodeTargetPlugin.d.ts +9 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/config/types.d.ts +5 -2
- package/dist/exports.d.ts +3 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.js +607 -434
- package/dist/napi-binding.d.ts +41 -32
- package/dist/swc.d.ts +1 -1
- package/dist/wasi-worker-browser.mjs +268 -159
- package/package.json +3 -3
- package/dist/rslib-runtime.js +0 -65
package/dist/index.js
CHANGED
|
@@ -1,8 +1,72 @@
|
|
|
1
1
|
/*! LICENSE: index.js.LICENSE.txt */
|
|
2
|
+
import rspack_wasi_browser, { AsyncDependenciesBlock, BuiltinPluginName as external_rspack_wasi_browser_js_BuiltinPluginName, Chunk, ChunkGraph, Chunks as external_rspack_wasi_browser_js_Chunks, ConcatenatedModule, ContextModule, Dependency, EnforceExtension, EntryDependency, ExternalModule, JsCoordinator, JsLoaderState, JsRspackSeverity, Module, NormalModule, RawRuleSetConditionType, RegisterJsTapKind, ResolverFactory as external_rspack_wasi_browser_js_ResolverFactory, async as external_rspack_wasi_browser_js_async, cleanupGlobalTrace, formatDiagnostic, registerGlobalTrace, sync, syncTraceEvent, transformSync as external_rspack_wasi_browser_js_transformSync } from "./rspack.wasi-browser.js";
|
|
3
|
+
import { AsyncParallelHook, AsyncSeriesBailHook, HookMap, SyncBailHook, SyncHook, SyncWaterfallHook } from "@rspack/lite-tapable";
|
|
2
4
|
import * as __rspack_external__rspack_wasi_browser_js_bd433424 from "./rspack.wasi-browser.js";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
import * as __rspack_external__rspack_lite_tapable_c6bdf810 from "@rspack/lite-tapable";
|
|
6
|
+
var __webpack_modules__ = {};
|
|
7
|
+
var __webpack_module_cache__ = {};
|
|
8
|
+
function __webpack_require__(moduleId) {
|
|
9
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
10
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
11
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
12
|
+
exports: {}
|
|
13
|
+
};
|
|
14
|
+
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
15
|
+
return module.exports;
|
|
16
|
+
}
|
|
17
|
+
__webpack_require__.m = __webpack_modules__;
|
|
18
|
+
(()=>{
|
|
19
|
+
__webpack_require__.n = (module)=>{
|
|
20
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
21
|
+
__webpack_require__.d(getter, {
|
|
22
|
+
a: getter
|
|
23
|
+
});
|
|
24
|
+
return getter;
|
|
25
|
+
};
|
|
26
|
+
})();
|
|
27
|
+
(()=>{
|
|
28
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
29
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: definition[key]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
(()=>{
|
|
36
|
+
__webpack_require__.add = function(modules) {
|
|
37
|
+
Object.assign(__webpack_require__.m, modules);
|
|
38
|
+
};
|
|
39
|
+
})();
|
|
40
|
+
(()=>{
|
|
41
|
+
__webpack_require__.g = (()=>{
|
|
42
|
+
if ('object' == typeof globalThis) return globalThis;
|
|
43
|
+
try {
|
|
44
|
+
return this || new Function('return this')();
|
|
45
|
+
} catch (e) {
|
|
46
|
+
if ('object' == typeof window) return window;
|
|
47
|
+
}
|
|
48
|
+
})();
|
|
49
|
+
})();
|
|
50
|
+
(()=>{
|
|
51
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
52
|
+
})();
|
|
53
|
+
(()=>{
|
|
54
|
+
__webpack_require__.r = (exports)=>{
|
|
55
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
|
|
56
|
+
value: 'Module'
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, '__esModule', {
|
|
59
|
+
value: true
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
})();
|
|
63
|
+
(()=>{
|
|
64
|
+
__webpack_require__.nmd = (module)=>{
|
|
65
|
+
module.paths = [];
|
|
66
|
+
if (!module.children) module.children = [];
|
|
67
|
+
return module;
|
|
68
|
+
};
|
|
69
|
+
})();
|
|
6
70
|
__webpack_require__.add({
|
|
7
71
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
8
72
|
var asn1 = exports;
|
|
@@ -14553,9 +14617,9 @@ __webpack_require__.add({
|
|
|
14553
14617
|
}
|
|
14554
14618
|
utils.intFromLE = intFromLE;
|
|
14555
14619
|
},
|
|
14556
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.20.
|
|
14620
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
14557
14621
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
14558
|
-
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.
|
|
14622
|
+
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/util/process-browser.js");
|
|
14559
14623
|
const dirname = (path)=>{
|
|
14560
14624
|
let idx = path.length - 1;
|
|
14561
14625
|
while(idx >= 0){
|
|
@@ -14849,7 +14913,7 @@ __webpack_require__.add({
|
|
|
14849
14913
|
}
|
|
14850
14914
|
};
|
|
14851
14915
|
},
|
|
14852
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.20.
|
|
14916
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/util/process-browser.js" (module) {
|
|
14853
14917
|
module.exports = {
|
|
14854
14918
|
versions: {},
|
|
14855
14919
|
nextTick (fn) {
|
|
@@ -32920,6 +32984,9 @@ __webpack_require__.add({
|
|
|
32920
32984
|
execute();
|
|
32921
32985
|
}
|
|
32922
32986
|
};
|
|
32987
|
+
exports.getNumberOfWatchers = ()=>watcherCount;
|
|
32988
|
+
exports.createHandleChangeEvent = createHandleChangeEvent;
|
|
32989
|
+
exports.watcherLimit = watcherLimit;
|
|
32923
32990
|
},
|
|
32924
32991
|
"../../node_modules/.pnpm/watchpack@2.4.4/node_modules/watchpack/lib/watchpack.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
32925
32992
|
const getWatcherManager = __webpack_require__("../../node_modules/.pnpm/watchpack@2.4.4/node_modules/watchpack/lib/getWatcherManager.js");
|
|
@@ -35293,7 +35360,7 @@ __webpack_require__.add({
|
|
|
35293
35360
|
__webpack_require__.d(__webpack_exports__, {
|
|
35294
35361
|
Buffer: ()=>_napi_rs_wasm_runtime_fs__rspack_import_0.hp
|
|
35295
35362
|
});
|
|
35296
|
-
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.
|
|
35363
|
+
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35297
35364
|
},
|
|
35298
35365
|
"./src/browser/fs.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
35299
35366
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -35309,15 +35376,15 @@ __webpack_require__.add({
|
|
|
35309
35376
|
volume: ()=>volume,
|
|
35310
35377
|
watch: ()=>watch
|
|
35311
35378
|
});
|
|
35312
|
-
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.
|
|
35313
|
-
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?
|
|
35379
|
+
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35380
|
+
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?c40c");
|
|
35314
35381
|
const fs = _rspack_binding__rspack_import_1.__fs;
|
|
35315
35382
|
const volume = _rspack_binding__rspack_import_1.__volume;
|
|
35316
35383
|
const memfs = _napi_rs_wasm_runtime_fs__rspack_import_0.tO;
|
|
35317
35384
|
const { readFileSync, readdirSync, lstat, existsSync, readdir, watch } = fs;
|
|
35318
35385
|
const __rspack_default_export = fs;
|
|
35319
35386
|
},
|
|
35320
|
-
"@rspack/binding?
|
|
35387
|
+
"@rspack/binding?c40c" (module) {
|
|
35321
35388
|
module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
|
|
35322
35389
|
},
|
|
35323
35390
|
"?7763" () {},
|
|
@@ -35337,7 +35404,7 @@ __webpack_require__.add({
|
|
|
35337
35404
|
return out;
|
|
35338
35405
|
};
|
|
35339
35406
|
},
|
|
35340
|
-
"../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.
|
|
35407
|
+
"../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/dist/fs.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35341
35408
|
__webpack_require__.d(__webpack_exports__, {
|
|
35342
35409
|
hp: ()=>Buffer,
|
|
35343
35410
|
tO: ()=>memfs
|
|
@@ -36970,13 +37037,13 @@ __webpack_require__.add({
|
|
|
36970
37037
|
function requireBuffer$1() {
|
|
36971
37038
|
if (hasRequiredBuffer$1) return buffer$1;
|
|
36972
37039
|
hasRequiredBuffer$1 = 1;
|
|
36973
|
-
(function(exports) {
|
|
36974
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37040
|
+
(function(exports$1) {
|
|
37041
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
36975
37042
|
value: true
|
|
36976
37043
|
});
|
|
36977
|
-
exports.Buffer = void 0;
|
|
37044
|
+
exports$1.Buffer = void 0;
|
|
36978
37045
|
var node_buffer_1 = require$$0$2;
|
|
36979
|
-
Object.defineProperty(exports, "Buffer", {
|
|
37046
|
+
Object.defineProperty(exports$1, "Buffer", {
|
|
36980
37047
|
enumerable: true,
|
|
36981
37048
|
get: function() {
|
|
36982
37049
|
return node_buffer_1.Buffer;
|
|
@@ -36989,13 +37056,13 @@ __webpack_require__.add({
|
|
|
36989
37056
|
function requireBuffer() {
|
|
36990
37057
|
if (hasRequiredBuffer) return buffer$2;
|
|
36991
37058
|
hasRequiredBuffer = 1;
|
|
36992
|
-
(function(exports) {
|
|
36993
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37059
|
+
(function(exports$1) {
|
|
37060
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
36994
37061
|
value: true
|
|
36995
37062
|
});
|
|
36996
|
-
exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
|
|
37063
|
+
exports$1.bufferFrom = exports$1.bufferAllocUnsafe = exports$1.Buffer = void 0;
|
|
36997
37064
|
const buffer_1 = requireBuffer$1();
|
|
36998
|
-
Object.defineProperty(exports, "Buffer", {
|
|
37065
|
+
Object.defineProperty(exports$1, "Buffer", {
|
|
36999
37066
|
enumerable: true,
|
|
37000
37067
|
get: function() {
|
|
37001
37068
|
return buffer_1.Buffer;
|
|
@@ -37005,9 +37072,9 @@ __webpack_require__.add({
|
|
|
37005
37072
|
return new buffer_1.Buffer(arg0, ...args);
|
|
37006
37073
|
}
|
|
37007
37074
|
const bufferAllocUnsafe = buffer_1.Buffer.allocUnsafe || bufferV0P12Ponyfill;
|
|
37008
|
-
exports.bufferAllocUnsafe = bufferAllocUnsafe;
|
|
37075
|
+
exports$1.bufferAllocUnsafe = bufferAllocUnsafe;
|
|
37009
37076
|
const bufferFrom = buffer_1.Buffer.from || bufferV0P12Ponyfill;
|
|
37010
|
-
exports.bufferFrom = bufferFrom;
|
|
37077
|
+
exports$1.bufferFrom = bufferFrom;
|
|
37011
37078
|
})(buffer$2);
|
|
37012
37079
|
return buffer$2;
|
|
37013
37080
|
}
|
|
@@ -37096,13 +37163,13 @@ __webpack_require__.add({
|
|
|
37096
37163
|
function requireErrors$1() {
|
|
37097
37164
|
if (hasRequiredErrors$1) return errors$1;
|
|
37098
37165
|
hasRequiredErrors$1 = 1;
|
|
37099
|
-
(function(exports) {
|
|
37100
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37166
|
+
(function(exports$1) {
|
|
37167
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37101
37168
|
value: true
|
|
37102
37169
|
});
|
|
37103
|
-
exports.AssertionError = exports.RangeError = exports.TypeError = exports.Error = void 0;
|
|
37104
|
-
exports.message = message;
|
|
37105
|
-
exports.E = E;
|
|
37170
|
+
exports$1.AssertionError = exports$1.RangeError = exports$1.TypeError = exports$1.Error = void 0;
|
|
37171
|
+
exports$1.message = message;
|
|
37172
|
+
exports$1.E = E;
|
|
37106
37173
|
const util_1 = requireUtil$4();
|
|
37107
37174
|
const kCode = "u" < typeof Symbol ? '_kCode' : Symbol('code');
|
|
37108
37175
|
const messages = {};
|
|
@@ -37119,7 +37186,7 @@ __webpack_require__.add({
|
|
|
37119
37186
|
const g = "u" > typeof globalThis ? globalThis : commonjsGlobal;
|
|
37120
37187
|
class AssertionError extends g.Error {
|
|
37121
37188
|
constructor(options){
|
|
37122
|
-
if ('object' != typeof options || null === options) throw new exports.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
|
|
37189
|
+
if ('object' != typeof options || null === options) throw new exports$1.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
|
|
37123
37190
|
if (options.message) super(options.message);
|
|
37124
37191
|
else super(`${(0, util_1.inspect)(options.actual).slice(0, 128)} ${options.operator} ${(0, util_1.inspect)(options.expected).slice(0, 128)}`);
|
|
37125
37192
|
this.generatedMessage = !options.message;
|
|
@@ -37128,14 +37195,14 @@ __webpack_require__.add({
|
|
|
37128
37195
|
this.actual = options.actual;
|
|
37129
37196
|
this.expected = options.expected;
|
|
37130
37197
|
this.operator = options.operator;
|
|
37131
|
-
exports.Error.captureStackTrace(this, options.stackStartFunction);
|
|
37198
|
+
exports$1.Error.captureStackTrace(this, options.stackStartFunction);
|
|
37132
37199
|
}
|
|
37133
37200
|
}
|
|
37134
|
-
exports.AssertionError = AssertionError;
|
|
37201
|
+
exports$1.AssertionError = AssertionError;
|
|
37135
37202
|
function message(key, args) {
|
|
37136
|
-
if ('string' != typeof key) throw new exports.Error('Error message key must be a string');
|
|
37203
|
+
if ('string' != typeof key) throw new exports$1.Error('Error message key must be a string');
|
|
37137
37204
|
const msg = messages[key];
|
|
37138
|
-
if (!msg) throw new exports.Error(`An invalid error message key was used: ${key}.`);
|
|
37205
|
+
if (!msg) throw new exports$1.Error(`An invalid error message key was used: ${key}.`);
|
|
37139
37206
|
let fmt;
|
|
37140
37207
|
if ('function' == typeof msg) fmt = msg;
|
|
37141
37208
|
else {
|
|
@@ -37148,9 +37215,9 @@ __webpack_require__.add({
|
|
|
37148
37215
|
function E(sym, val) {
|
|
37149
37216
|
messages[sym] = 'function' == typeof val ? val : String(val);
|
|
37150
37217
|
}
|
|
37151
|
-
exports.Error = makeNodeError(g.Error);
|
|
37152
|
-
exports.TypeError = makeNodeError(g.TypeError);
|
|
37153
|
-
exports.RangeError = makeNodeError(g.RangeError);
|
|
37218
|
+
exports$1.Error = makeNodeError(g.Error);
|
|
37219
|
+
exports$1.TypeError = makeNodeError(g.TypeError);
|
|
37220
|
+
exports$1.RangeError = makeNodeError(g.RangeError);
|
|
37154
37221
|
E('ERR_DIR_CLOSED', 'Directory handle was closed');
|
|
37155
37222
|
E('ERR_DIR_CONCURRENT_OPERATION', 'Cannot do synchronous work on directory handle with concurrent asynchronous operations');
|
|
37156
37223
|
E('ERR_INVALID_FILE_URL_HOST', 'File URL host must be "localhost" or empty on %s');
|
|
@@ -37165,21 +37232,21 @@ __webpack_require__.add({
|
|
|
37165
37232
|
function requireEncoding() {
|
|
37166
37233
|
if (hasRequiredEncoding) return encoding;
|
|
37167
37234
|
hasRequiredEncoding = 1;
|
|
37168
|
-
(function(exports) {
|
|
37169
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37235
|
+
(function(exports$1) {
|
|
37236
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37170
37237
|
value: true
|
|
37171
37238
|
});
|
|
37172
|
-
exports.ENCODING_UTF8 = void 0;
|
|
37173
|
-
exports.assertEncoding = assertEncoding;
|
|
37174
|
-
exports.strToEncoding = strToEncoding;
|
|
37239
|
+
exports$1.ENCODING_UTF8 = void 0;
|
|
37240
|
+
exports$1.assertEncoding = assertEncoding;
|
|
37241
|
+
exports$1.strToEncoding = strToEncoding;
|
|
37175
37242
|
const buffer_1 = requireBuffer();
|
|
37176
37243
|
const errors = requireErrors$1();
|
|
37177
|
-
exports.ENCODING_UTF8 = 'utf8';
|
|
37244
|
+
exports$1.ENCODING_UTF8 = 'utf8';
|
|
37178
37245
|
function assertEncoding(encoding) {
|
|
37179
37246
|
if (encoding && !buffer_1.Buffer.isEncoding(encoding)) throw new errors.TypeError('ERR_INVALID_OPT_VALUE_ENCODING', encoding);
|
|
37180
37247
|
}
|
|
37181
37248
|
function strToEncoding(str, encoding) {
|
|
37182
|
-
if (!encoding || encoding === exports.ENCODING_UTF8) return str;
|
|
37249
|
+
if (!encoding || encoding === exports$1.ENCODING_UTF8) return str;
|
|
37183
37250
|
if ('buffer' === encoding) return new buffer_1.Buffer(str);
|
|
37184
37251
|
return new buffer_1.Buffer(str).toString(encoding);
|
|
37185
37252
|
}
|
|
@@ -37713,61 +37780,61 @@ __webpack_require__.add({
|
|
|
37713
37780
|
function requirePath() {
|
|
37714
37781
|
if (hasRequiredPath) return path;
|
|
37715
37782
|
hasRequiredPath = 1;
|
|
37716
|
-
(function(exports) {
|
|
37717
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37783
|
+
(function(exports$1) {
|
|
37784
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37718
37785
|
value: true
|
|
37719
37786
|
});
|
|
37720
|
-
exports.basename = exports.isAbsolute = exports.normalize = exports.dirname = exports.relative = exports.join = exports.posix = exports.sep = exports.resolve = void 0;
|
|
37787
|
+
exports$1.basename = exports$1.isAbsolute = exports$1.normalize = exports$1.dirname = exports$1.relative = exports$1.join = exports$1.posix = exports$1.sep = exports$1.resolve = void 0;
|
|
37721
37788
|
var node_path_1 = requirePathBrowserify();
|
|
37722
|
-
Object.defineProperty(exports, "resolve", {
|
|
37789
|
+
Object.defineProperty(exports$1, "resolve", {
|
|
37723
37790
|
enumerable: true,
|
|
37724
37791
|
get: function() {
|
|
37725
37792
|
return node_path_1.resolve;
|
|
37726
37793
|
}
|
|
37727
37794
|
});
|
|
37728
|
-
Object.defineProperty(exports, "sep", {
|
|
37795
|
+
Object.defineProperty(exports$1, "sep", {
|
|
37729
37796
|
enumerable: true,
|
|
37730
37797
|
get: function() {
|
|
37731
37798
|
return node_path_1.sep;
|
|
37732
37799
|
}
|
|
37733
37800
|
});
|
|
37734
|
-
Object.defineProperty(exports, "posix", {
|
|
37801
|
+
Object.defineProperty(exports$1, "posix", {
|
|
37735
37802
|
enumerable: true,
|
|
37736
37803
|
get: function() {
|
|
37737
37804
|
return node_path_1.posix;
|
|
37738
37805
|
}
|
|
37739
37806
|
});
|
|
37740
|
-
Object.defineProperty(exports, "join", {
|
|
37807
|
+
Object.defineProperty(exports$1, "join", {
|
|
37741
37808
|
enumerable: true,
|
|
37742
37809
|
get: function() {
|
|
37743
37810
|
return node_path_1.join;
|
|
37744
37811
|
}
|
|
37745
37812
|
});
|
|
37746
|
-
Object.defineProperty(exports, "relative", {
|
|
37813
|
+
Object.defineProperty(exports$1, "relative", {
|
|
37747
37814
|
enumerable: true,
|
|
37748
37815
|
get: function() {
|
|
37749
37816
|
return node_path_1.relative;
|
|
37750
37817
|
}
|
|
37751
37818
|
});
|
|
37752
|
-
Object.defineProperty(exports, "dirname", {
|
|
37819
|
+
Object.defineProperty(exports$1, "dirname", {
|
|
37753
37820
|
enumerable: true,
|
|
37754
37821
|
get: function() {
|
|
37755
37822
|
return node_path_1.dirname;
|
|
37756
37823
|
}
|
|
37757
37824
|
});
|
|
37758
|
-
Object.defineProperty(exports, "normalize", {
|
|
37825
|
+
Object.defineProperty(exports$1, "normalize", {
|
|
37759
37826
|
enumerable: true,
|
|
37760
37827
|
get: function() {
|
|
37761
37828
|
return node_path_1.normalize;
|
|
37762
37829
|
}
|
|
37763
37830
|
});
|
|
37764
|
-
Object.defineProperty(exports, "isAbsolute", {
|
|
37831
|
+
Object.defineProperty(exports$1, "isAbsolute", {
|
|
37765
37832
|
enumerable: true,
|
|
37766
37833
|
get: function() {
|
|
37767
37834
|
return node_path_1.isAbsolute;
|
|
37768
37835
|
}
|
|
37769
37836
|
});
|
|
37770
|
-
Object.defineProperty(exports, "basename", {
|
|
37837
|
+
Object.defineProperty(exports$1, "basename", {
|
|
37771
37838
|
enumerable: true,
|
|
37772
37839
|
get: function() {
|
|
37773
37840
|
return node_path_1.basename;
|
|
@@ -38447,6 +38514,7 @@ __webpack_require__.add({
|
|
|
38447
38514
|
const { S_IFMT, S_IFDIR, S_IFREG, S_IFLNK, S_IFCHR } = constants_1.constants;
|
|
38448
38515
|
const getuid = ()=>process_1.default.getuid?.() ?? 0;
|
|
38449
38516
|
const getgid = ()=>process_1.default.getgid?.() ?? 0;
|
|
38517
|
+
const EMPTY_BUFFER = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
38450
38518
|
let Node$1 = class {
|
|
38451
38519
|
constructor(ino, mode = 0o666){
|
|
38452
38520
|
this.changes = new fanout_1.FanOut();
|
|
@@ -38455,6 +38523,9 @@ __webpack_require__.add({
|
|
|
38455
38523
|
this._atime = new Date();
|
|
38456
38524
|
this._mtime = new Date();
|
|
38457
38525
|
this._ctime = new Date();
|
|
38526
|
+
this.buf = EMPTY_BUFFER;
|
|
38527
|
+
this.capacity = 0;
|
|
38528
|
+
this.size = 0;
|
|
38458
38529
|
this.rdev = 0;
|
|
38459
38530
|
this._nlink = 1;
|
|
38460
38531
|
this.mode = mode;
|
|
@@ -38512,20 +38583,26 @@ __webpack_require__.add({
|
|
|
38512
38583
|
return this.getBuffer().toString(encoding);
|
|
38513
38584
|
}
|
|
38514
38585
|
setString(str) {
|
|
38515
|
-
this.
|
|
38516
|
-
this.touch();
|
|
38586
|
+
this._setBuf((0, buffer_1.bufferFrom)(str, 'utf8'));
|
|
38517
38587
|
}
|
|
38518
38588
|
getBuffer() {
|
|
38519
38589
|
this.atime = new Date();
|
|
38520
38590
|
if (!this.buf) this.buf = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
38521
|
-
return (0, buffer_1.bufferFrom)(this.buf);
|
|
38591
|
+
return (0, buffer_1.bufferFrom)(this.buf.subarray(0, this.size));
|
|
38522
38592
|
}
|
|
38523
38593
|
setBuffer(buf) {
|
|
38524
|
-
|
|
38594
|
+
const copy = (0, buffer_1.bufferFrom)(buf);
|
|
38595
|
+
this._setBuf(copy);
|
|
38596
|
+
}
|
|
38597
|
+
_setBuf(buf) {
|
|
38598
|
+
const size = buf.length;
|
|
38599
|
+
this.buf = buf;
|
|
38600
|
+
this.capacity = size;
|
|
38601
|
+
this.size = size;
|
|
38525
38602
|
this.touch();
|
|
38526
38603
|
}
|
|
38527
38604
|
getSize() {
|
|
38528
|
-
return this.
|
|
38605
|
+
return this.size;
|
|
38529
38606
|
}
|
|
38530
38607
|
setModeProperty(property) {
|
|
38531
38608
|
this.mode = property;
|
|
@@ -38547,38 +38624,56 @@ __webpack_require__.add({
|
|
|
38547
38624
|
this.symlink = symlink;
|
|
38548
38625
|
}
|
|
38549
38626
|
write(buf, off = 0, len = buf.length, pos = 0) {
|
|
38550
|
-
|
|
38551
|
-
if (
|
|
38552
|
-
|
|
38553
|
-
|
|
38627
|
+
const bufLength = buf.length;
|
|
38628
|
+
if (off + len > bufLength) len = bufLength - off;
|
|
38629
|
+
if (len <= 0) return 0;
|
|
38630
|
+
const requiredSize = pos + len;
|
|
38631
|
+
if (requiredSize > this.capacity) {
|
|
38632
|
+
let newCapacity = Math.max(2 * this.capacity, 64);
|
|
38633
|
+
while(newCapacity < requiredSize)newCapacity *= 2;
|
|
38634
|
+
const newBuf = (0, buffer_1.bufferAllocUnsafe)(newCapacity);
|
|
38635
|
+
if (this.size > 0) this.buf.copy(newBuf, 0, 0, this.size);
|
|
38554
38636
|
this.buf = newBuf;
|
|
38637
|
+
this.capacity = newCapacity;
|
|
38555
38638
|
}
|
|
38639
|
+
if (pos > this.size) this.buf.fill(0, this.size, pos);
|
|
38556
38640
|
buf.copy(this.buf, pos, off, off + len);
|
|
38641
|
+
if (requiredSize > this.size) this.size = requiredSize;
|
|
38557
38642
|
this.touch();
|
|
38558
38643
|
return len;
|
|
38559
38644
|
}
|
|
38560
38645
|
read(buf, off = 0, len = buf.byteLength, pos = 0) {
|
|
38561
38646
|
this.atime = new Date();
|
|
38562
|
-
if (
|
|
38563
|
-
if (pos >= this.buf.length) return 0;
|
|
38647
|
+
if (pos >= this.size) return 0;
|
|
38564
38648
|
let actualLen = len;
|
|
38565
38649
|
if (actualLen > buf.byteLength) actualLen = buf.byteLength;
|
|
38566
|
-
if (actualLen + pos > this.
|
|
38650
|
+
if (actualLen + pos > this.size) actualLen = this.size - pos;
|
|
38651
|
+
if (actualLen <= 0) return 0;
|
|
38567
38652
|
const buf2 = buf instanceof buffer_1.Buffer ? buf : buffer_1.Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
38568
38653
|
this.buf.copy(buf2, off, pos, pos + actualLen);
|
|
38569
38654
|
return actualLen;
|
|
38570
38655
|
}
|
|
38571
38656
|
truncate(len = 0) {
|
|
38572
|
-
if (len) {
|
|
38573
|
-
|
|
38574
|
-
|
|
38575
|
-
|
|
38576
|
-
|
|
38577
|
-
|
|
38578
|
-
|
|
38657
|
+
if (!len) {
|
|
38658
|
+
this.buf = EMPTY_BUFFER;
|
|
38659
|
+
this.capacity = 0;
|
|
38660
|
+
this.size = 0;
|
|
38661
|
+
this.touch();
|
|
38662
|
+
return;
|
|
38663
|
+
}
|
|
38664
|
+
if (len <= this.size) this.size = len;
|
|
38665
|
+
else {
|
|
38666
|
+
if (len > this.capacity) {
|
|
38667
|
+
let newCapacity = Math.max(2 * this.capacity, 64);
|
|
38668
|
+
while(newCapacity < len)newCapacity *= 2;
|
|
38669
|
+
const buf = (0, buffer_1.bufferAllocUnsafe)(newCapacity);
|
|
38670
|
+
if (this.size > 0) this.buf.copy(buf, 0, 0, this.size);
|
|
38671
|
+
buf.fill(0, this.size, len);
|
|
38579
38672
|
this.buf = buf;
|
|
38580
|
-
|
|
38581
|
-
|
|
38673
|
+
this.capacity = newCapacity;
|
|
38674
|
+
} else this.buf.fill(0, this.size, len);
|
|
38675
|
+
this.size = len;
|
|
38676
|
+
}
|
|
38582
38677
|
this.touch();
|
|
38583
38678
|
}
|
|
38584
38679
|
chmod(perm) {
|
|
@@ -38892,25 +38987,25 @@ __webpack_require__.add({
|
|
|
38892
38987
|
function requireUtil$3() {
|
|
38893
38988
|
if (hasRequiredUtil$3) return util$2;
|
|
38894
38989
|
hasRequiredUtil$3 = 1;
|
|
38895
|
-
(function(exports) {
|
|
38896
|
-
Object.defineProperty(exports, "__esModule", {
|
|
38990
|
+
(function(exports$1) {
|
|
38991
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
38897
38992
|
value: true
|
|
38898
38993
|
});
|
|
38899
|
-
exports.filenameToSteps = exports.resolve = exports.unixify = exports.isWin = void 0;
|
|
38900
|
-
exports.isFd = isFd;
|
|
38901
|
-
exports.validateFd = validateFd;
|
|
38902
|
-
exports.dataToBuffer = dataToBuffer;
|
|
38994
|
+
exports$1.filenameToSteps = exports$1.resolve = exports$1.unixify = exports$1.isWin = void 0;
|
|
38995
|
+
exports$1.isFd = isFd;
|
|
38996
|
+
exports$1.validateFd = validateFd;
|
|
38997
|
+
exports$1.dataToBuffer = dataToBuffer;
|
|
38903
38998
|
const path_1 = requirePath();
|
|
38904
38999
|
const buffer_1 = requireBuffer();
|
|
38905
39000
|
const process_1 = requireProcess();
|
|
38906
39001
|
const encoding_1 = requireEncoding();
|
|
38907
39002
|
const constants_1 = requireConstants();
|
|
38908
|
-
exports.isWin = 'win32' === process_1.default.platform;
|
|
39003
|
+
exports$1.isWin = 'win32' === process_1.default.platform;
|
|
38909
39004
|
const resolveCrossPlatform = path_1.resolve;
|
|
38910
39005
|
const pathSep = path_1.posix ? path_1.posix.sep : path_1.sep;
|
|
38911
39006
|
const isSeparator = (str, i)=>{
|
|
38912
39007
|
let char = str[i];
|
|
38913
|
-
return i > 0 && ('/' === char || exports.isWin && '\\' === char);
|
|
39008
|
+
return i > 0 && ('/' === char || exports$1.isWin && '\\' === char);
|
|
38914
39009
|
};
|
|
38915
39010
|
const removeTrailingSeparator = (str)=>{
|
|
38916
39011
|
let i = str.length - 1;
|
|
@@ -38925,18 +39020,18 @@ __webpack_require__.add({
|
|
|
38925
39020
|
return str;
|
|
38926
39021
|
};
|
|
38927
39022
|
const unixify = (filepath, stripTrailing = true)=>{
|
|
38928
|
-
if (exports.isWin) {
|
|
39023
|
+
if (exports$1.isWin) {
|
|
38929
39024
|
filepath = normalizePath(filepath, stripTrailing);
|
|
38930
39025
|
return filepath.replace(/^([a-zA-Z]+:|\.\/)/, '');
|
|
38931
39026
|
}
|
|
38932
39027
|
return filepath;
|
|
38933
39028
|
};
|
|
38934
|
-
exports.unixify = unixify;
|
|
39029
|
+
exports$1.unixify = unixify;
|
|
38935
39030
|
let resolve = (filename, base = process_1.default.cwd())=>resolveCrossPlatform(base, filename);
|
|
38936
|
-
exports.resolve = resolve;
|
|
38937
|
-
if (exports.isWin) {
|
|
39031
|
+
exports$1.resolve = resolve;
|
|
39032
|
+
if (exports$1.isWin) {
|
|
38938
39033
|
const _resolve = resolve;
|
|
38939
|
-
exports.resolve = resolve = (filename, base)=>(0, exports.unixify)(_resolve(filename, base));
|
|
39034
|
+
exports$1.resolve = resolve = (filename, base)=>(0, exports$1.unixify)(_resolve(filename, base));
|
|
38940
39035
|
}
|
|
38941
39036
|
const filenameToSteps = (filename, base)=>{
|
|
38942
39037
|
const fullPath = resolve(filename, base);
|
|
@@ -38944,7 +39039,7 @@ __webpack_require__.add({
|
|
|
38944
39039
|
if (!fullPathSansSlash) return [];
|
|
38945
39040
|
return fullPathSansSlash.split(pathSep);
|
|
38946
39041
|
};
|
|
38947
|
-
exports.filenameToSteps = filenameToSteps;
|
|
39042
|
+
exports$1.filenameToSteps = filenameToSteps;
|
|
38948
39043
|
function isFd(path) {
|
|
38949
39044
|
return path >>> 0 === path;
|
|
38950
39045
|
}
|
|
@@ -38969,9 +39064,9 @@ __webpack_require__.add({
|
|
|
38969
39064
|
function requirePunycode() {
|
|
38970
39065
|
if (hasRequiredPunycode) return punycode$1.exports;
|
|
38971
39066
|
hasRequiredPunycode = 1;
|
|
38972
|
-
(function(module, exports) {
|
|
39067
|
+
(function(module, exports$1) {
|
|
38973
39068
|
(function(root) {
|
|
38974
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
39069
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
38975
39070
|
var freeModule = module && !module.nodeType && module;
|
|
38976
39071
|
var freeGlobal = 'object' == typeof commonjsGlobal && commonjsGlobal;
|
|
38977
39072
|
if (freeGlobal.undefined === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) root = freeGlobal;
|
|
@@ -42421,37 +42516,37 @@ __webpack_require__.add({
|
|
|
42421
42516
|
function requireCore() {
|
|
42422
42517
|
if (hasRequiredCore) return core;
|
|
42423
42518
|
hasRequiredCore = 1;
|
|
42424
|
-
(function(exports) {
|
|
42425
|
-
Object.defineProperty(exports, "__esModule", {
|
|
42519
|
+
(function(exports$1) {
|
|
42520
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
42426
42521
|
value: true
|
|
42427
42522
|
});
|
|
42428
|
-
exports.Superblock = exports.File = exports.Link = exports.Node = void 0;
|
|
42523
|
+
exports$1.Superblock = exports$1.File = exports$1.Link = exports$1.Node = void 0;
|
|
42429
42524
|
const tslib_1 = require$$0$1;
|
|
42430
|
-
tslib_1.__exportStar(requireTypes(), exports);
|
|
42431
|
-
tslib_1.__exportStar(requireJson(), exports);
|
|
42525
|
+
tslib_1.__exportStar(requireTypes(), exports$1);
|
|
42526
|
+
tslib_1.__exportStar(requireJson(), exports$1);
|
|
42432
42527
|
var Node_1 = requireNode();
|
|
42433
|
-
Object.defineProperty(exports, "Node", {
|
|
42528
|
+
Object.defineProperty(exports$1, "Node", {
|
|
42434
42529
|
enumerable: true,
|
|
42435
42530
|
get: function() {
|
|
42436
42531
|
return Node_1.Node;
|
|
42437
42532
|
}
|
|
42438
42533
|
});
|
|
42439
42534
|
var Link_1 = requireLink();
|
|
42440
|
-
Object.defineProperty(exports, "Link", {
|
|
42535
|
+
Object.defineProperty(exports$1, "Link", {
|
|
42441
42536
|
enumerable: true,
|
|
42442
42537
|
get: function() {
|
|
42443
42538
|
return Link_1.Link;
|
|
42444
42539
|
}
|
|
42445
42540
|
});
|
|
42446
42541
|
var File_1 = requireFile();
|
|
42447
|
-
Object.defineProperty(exports, "File", {
|
|
42542
|
+
Object.defineProperty(exports$1, "File", {
|
|
42448
42543
|
enumerable: true,
|
|
42449
42544
|
get: function() {
|
|
42450
42545
|
return File_1.File;
|
|
42451
42546
|
}
|
|
42452
42547
|
});
|
|
42453
42548
|
var Superblock_1 = requireSuperblock();
|
|
42454
|
-
Object.defineProperty(exports, "Superblock", {
|
|
42549
|
+
Object.defineProperty(exports$1, "Superblock", {
|
|
42455
42550
|
enumerable: true,
|
|
42456
42551
|
get: function() {
|
|
42457
42552
|
return Superblock_1.Superblock;
|
|
@@ -44436,7 +44531,7 @@ __webpack_require__.add({
|
|
|
44436
44531
|
function requireSafeBuffer() {
|
|
44437
44532
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
44438
44533
|
hasRequiredSafeBuffer = 1;
|
|
44439
|
-
(function(module, exports) {
|
|
44534
|
+
(function(module, exports$1) {
|
|
44440
44535
|
var buffer = require$$0$2;
|
|
44441
44536
|
var Buffer = buffer.Buffer;
|
|
44442
44537
|
function copyProps(src, dst) {
|
|
@@ -44444,8 +44539,8 @@ __webpack_require__.add({
|
|
|
44444
44539
|
}
|
|
44445
44540
|
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer;
|
|
44446
44541
|
else {
|
|
44447
|
-
copyProps(buffer, exports);
|
|
44448
|
-
exports.Buffer = SafeBuffer;
|
|
44542
|
+
copyProps(buffer, exports$1);
|
|
44543
|
+
exports$1.Buffer = SafeBuffer;
|
|
44449
44544
|
}
|
|
44450
44545
|
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
44451
44546
|
return Buffer(arg, encodingOrOffset, length);
|
|
@@ -47566,19 +47661,19 @@ __webpack_require__.add({
|
|
|
47566
47661
|
function requireStream() {
|
|
47567
47662
|
if (hasRequiredStream) return stream$1;
|
|
47568
47663
|
hasRequiredStream = 1;
|
|
47569
|
-
(function(exports) {
|
|
47570
|
-
Object.defineProperty(exports, "__esModule", {
|
|
47664
|
+
(function(exports$1) {
|
|
47665
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
47571
47666
|
value: true
|
|
47572
47667
|
});
|
|
47573
|
-
exports.Writable = exports.Readable = void 0;
|
|
47668
|
+
exports$1.Writable = exports$1.Readable = void 0;
|
|
47574
47669
|
var node_stream_1 = requireBrowser();
|
|
47575
|
-
Object.defineProperty(exports, "Readable", {
|
|
47670
|
+
Object.defineProperty(exports$1, "Readable", {
|
|
47576
47671
|
enumerable: true,
|
|
47577
47672
|
get: function() {
|
|
47578
47673
|
return node_stream_1.Readable;
|
|
47579
47674
|
}
|
|
47580
47675
|
});
|
|
47581
|
-
Object.defineProperty(exports, "Writable", {
|
|
47676
|
+
Object.defineProperty(exports$1, "Writable", {
|
|
47582
47677
|
enumerable: true,
|
|
47583
47678
|
get: function() {
|
|
47584
47679
|
return node_stream_1.Writable;
|
|
@@ -47592,13 +47687,13 @@ __webpack_require__.add({
|
|
|
47592
47687
|
function requireEvents() {
|
|
47593
47688
|
if (hasRequiredEvents) return events;
|
|
47594
47689
|
hasRequiredEvents = 1;
|
|
47595
|
-
(function(exports) {
|
|
47596
|
-
Object.defineProperty(exports, "__esModule", {
|
|
47690
|
+
(function(exports$1) {
|
|
47691
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
47597
47692
|
value: true
|
|
47598
47693
|
});
|
|
47599
|
-
exports.EventEmitter = void 0;
|
|
47694
|
+
exports$1.EventEmitter = void 0;
|
|
47600
47695
|
var node_events_1 = requireEvents$1();
|
|
47601
|
-
Object.defineProperty(exports, "EventEmitter", {
|
|
47696
|
+
Object.defineProperty(exports$1, "EventEmitter", {
|
|
47602
47697
|
enumerable: true,
|
|
47603
47698
|
get: function() {
|
|
47604
47699
|
return node_events_1.EventEmitter;
|
|
@@ -48016,14 +48111,14 @@ __webpack_require__.add({
|
|
|
48016
48111
|
function requireLib$2() {
|
|
48017
48112
|
if (hasRequiredLib$2) return lib$1;
|
|
48018
48113
|
hasRequiredLib$2 = 1;
|
|
48019
|
-
(function(exports) {
|
|
48020
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48114
|
+
(function(exports$1) {
|
|
48115
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48021
48116
|
value: true
|
|
48022
48117
|
});
|
|
48023
48118
|
const tslib_1 = require$$0$1;
|
|
48024
|
-
tslib_1.__exportStar(requirePrintTree(), exports);
|
|
48025
|
-
tslib_1.__exportStar(requirePrintBinary(), exports);
|
|
48026
|
-
tslib_1.__exportStar(requirePrintJson(), exports);
|
|
48119
|
+
tslib_1.__exportStar(requirePrintTree(), exports$1);
|
|
48120
|
+
tslib_1.__exportStar(requirePrintBinary(), exports$1);
|
|
48121
|
+
tslib_1.__exportStar(requirePrintJson(), exports$1);
|
|
48027
48122
|
})(lib$1);
|
|
48028
48123
|
return lib$1;
|
|
48029
48124
|
}
|
|
@@ -48071,11 +48166,11 @@ __webpack_require__.add({
|
|
|
48071
48166
|
function requirePrint() {
|
|
48072
48167
|
if (hasRequiredPrint) return print;
|
|
48073
48168
|
hasRequiredPrint = 1;
|
|
48074
|
-
(function(exports) {
|
|
48075
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48169
|
+
(function(exports$1) {
|
|
48170
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48076
48171
|
value: true
|
|
48077
48172
|
});
|
|
48078
|
-
exports.toTreeSync = void 0;
|
|
48173
|
+
exports$1.toTreeSync = void 0;
|
|
48079
48174
|
const tree_dump_1 = requireLib$2();
|
|
48080
48175
|
const util_1 = requireUtil();
|
|
48081
48176
|
const toTreeSync = (fs, opts = {})=>{
|
|
@@ -48084,13 +48179,20 @@ __webpack_require__.add({
|
|
|
48084
48179
|
if (dir[dir.length - 1] !== separator) dir += separator;
|
|
48085
48180
|
const tab = opts.tab || '';
|
|
48086
48181
|
const depth = opts.depth ?? 10;
|
|
48182
|
+
const sort = opts.sort ?? true;
|
|
48087
48183
|
let subtree = ' (...)';
|
|
48088
48184
|
if (depth > 0) {
|
|
48089
48185
|
const list = fs.readdirSync(dir, {
|
|
48090
48186
|
withFileTypes: true
|
|
48091
48187
|
});
|
|
48188
|
+
if (sort) list.sort((a, b)=>{
|
|
48189
|
+
if (a.isDirectory() && b.isDirectory()) return a.name.toString().localeCompare(b.name.toString());
|
|
48190
|
+
if (a.isDirectory()) return -1;
|
|
48191
|
+
if (b.isDirectory()) return 1;
|
|
48192
|
+
return a.name.toString().localeCompare(b.name.toString());
|
|
48193
|
+
});
|
|
48092
48194
|
subtree = (0, tree_dump_1.printTree)(tab, list.map((entry)=>(tab)=>{
|
|
48093
|
-
if (entry.isDirectory()) return (0, exports.toTreeSync)(fs, {
|
|
48195
|
+
if (entry.isDirectory()) return (0, exports$1.toTreeSync)(fs, {
|
|
48094
48196
|
dir: dir + entry.name,
|
|
48095
48197
|
depth: depth - 1,
|
|
48096
48198
|
tab
|
|
@@ -48102,7 +48204,7 @@ __webpack_require__.add({
|
|
|
48102
48204
|
const base = (0, util_1.basename)(dir, separator) + separator;
|
|
48103
48205
|
return base + subtree;
|
|
48104
48206
|
};
|
|
48105
|
-
exports.toTreeSync = toTreeSync;
|
|
48207
|
+
exports$1.toTreeSync = toTreeSync;
|
|
48106
48208
|
})(print);
|
|
48107
48209
|
return print;
|
|
48108
48210
|
}
|
|
@@ -48111,14 +48213,14 @@ __webpack_require__.add({
|
|
|
48111
48213
|
function requireOptions() {
|
|
48112
48214
|
if (hasRequiredOptions) return options;
|
|
48113
48215
|
hasRequiredOptions = 1;
|
|
48114
|
-
(function(exports) {
|
|
48115
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48216
|
+
(function(exports$1) {
|
|
48217
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48116
48218
|
value: true
|
|
48117
48219
|
});
|
|
48118
|
-
exports.getWriteFileOptions = exports.writeFileDefaults = exports.getRealpathOptsAndCb = exports.getRealpathOptions = exports.getStatfsOptsAndCb = exports.getStatfsOptions = exports.getStatOptsAndCb = exports.getStatOptions = exports.getAppendFileOptsAndCb = exports.getAppendFileOpts = exports.getOpendirOptsAndCb = exports.getOpendirOptions = exports.getReaddirOptsAndCb = exports.getReaddirOptions = exports.getReadFileOptions = exports.getRmOptsAndCb = exports.getRmdirOptions = exports.getDefaultOptsAndCb = exports.getDefaultOpts = exports.optsDefaults = exports.getMkdirOptions = void 0;
|
|
48119
|
-
exports.getOptions = getOptions;
|
|
48120
|
-
exports.optsGenerator = optsGenerator;
|
|
48121
|
-
exports.optsAndCbGenerator = optsAndCbGenerator;
|
|
48220
|
+
exports$1.getWriteFileOptions = exports$1.writeFileDefaults = exports$1.getRealpathOptsAndCb = exports$1.getRealpathOptions = exports$1.getStatfsOptsAndCb = exports$1.getStatfsOptions = exports$1.getStatOptsAndCb = exports$1.getStatOptions = exports$1.getAppendFileOptsAndCb = exports$1.getAppendFileOpts = exports$1.getOpendirOptsAndCb = exports$1.getOpendirOptions = exports$1.getReaddirOptsAndCb = exports$1.getReaddirOptions = exports$1.getReadFileOptions = exports$1.getRmOptsAndCb = exports$1.getRmdirOptions = exports$1.getDefaultOptsAndCb = exports$1.getDefaultOpts = exports$1.optsDefaults = exports$1.getMkdirOptions = void 0;
|
|
48221
|
+
exports$1.getOptions = getOptions;
|
|
48222
|
+
exports$1.optsGenerator = optsGenerator;
|
|
48223
|
+
exports$1.optsAndCbGenerator = optsAndCbGenerator;
|
|
48122
48224
|
const constants_1 = requireConstants();
|
|
48123
48225
|
const encoding_1 = requireEncoding();
|
|
48124
48226
|
const util_1 = requireUtil$2();
|
|
@@ -48132,7 +48234,7 @@ __webpack_require__.add({
|
|
|
48132
48234
|
});
|
|
48133
48235
|
return Object.assign({}, mkdirDefaults, options);
|
|
48134
48236
|
};
|
|
48135
|
-
exports.getMkdirOptions = getMkdirOptions;
|
|
48237
|
+
exports$1.getMkdirOptions = getMkdirOptions;
|
|
48136
48238
|
const ERRSTR_OPTS = (tipeof)=>`Expected options to be either an object or a string, but got ${tipeof} instead`;
|
|
48137
48239
|
function getOptions(defaults, options) {
|
|
48138
48240
|
let opts;
|
|
@@ -48167,78 +48269,78 @@ __webpack_require__.add({
|
|
|
48167
48269
|
(0, util_1.validateCallback)(callback)
|
|
48168
48270
|
];
|
|
48169
48271
|
}
|
|
48170
|
-
exports.optsDefaults = {
|
|
48272
|
+
exports$1.optsDefaults = {
|
|
48171
48273
|
encoding: 'utf8'
|
|
48172
48274
|
};
|
|
48173
|
-
exports.getDefaultOpts = optsGenerator(exports.optsDefaults);
|
|
48174
|
-
exports.getDefaultOptsAndCb = optsAndCbGenerator(exports.getDefaultOpts);
|
|
48275
|
+
exports$1.getDefaultOpts = optsGenerator(exports$1.optsDefaults);
|
|
48276
|
+
exports$1.getDefaultOptsAndCb = optsAndCbGenerator(exports$1.getDefaultOpts);
|
|
48175
48277
|
const rmdirDefaults = {
|
|
48176
48278
|
recursive: false
|
|
48177
48279
|
};
|
|
48178
48280
|
const getRmdirOptions = (options)=>Object.assign({}, rmdirDefaults, options);
|
|
48179
|
-
exports.getRmdirOptions = getRmdirOptions;
|
|
48180
|
-
const getRmOpts = optsGenerator(exports.optsDefaults);
|
|
48181
|
-
exports.getRmOptsAndCb = optsAndCbGenerator(getRmOpts);
|
|
48281
|
+
exports$1.getRmdirOptions = getRmdirOptions;
|
|
48282
|
+
const getRmOpts = optsGenerator(exports$1.optsDefaults);
|
|
48283
|
+
exports$1.getRmOptsAndCb = optsAndCbGenerator(getRmOpts);
|
|
48182
48284
|
const readFileOptsDefaults = {
|
|
48183
48285
|
flag: 'r'
|
|
48184
48286
|
};
|
|
48185
|
-
exports.getReadFileOptions = optsGenerator(readFileOptsDefaults);
|
|
48287
|
+
exports$1.getReadFileOptions = optsGenerator(readFileOptsDefaults);
|
|
48186
48288
|
const readdirDefaults = {
|
|
48187
48289
|
encoding: 'utf8',
|
|
48188
48290
|
recursive: false,
|
|
48189
48291
|
withFileTypes: false
|
|
48190
48292
|
};
|
|
48191
|
-
exports.getReaddirOptions = optsGenerator(readdirDefaults);
|
|
48192
|
-
exports.getReaddirOptsAndCb = optsAndCbGenerator(exports.getReaddirOptions);
|
|
48293
|
+
exports$1.getReaddirOptions = optsGenerator(readdirDefaults);
|
|
48294
|
+
exports$1.getReaddirOptsAndCb = optsAndCbGenerator(exports$1.getReaddirOptions);
|
|
48193
48295
|
const opendirDefaults = {
|
|
48194
48296
|
encoding: 'utf8',
|
|
48195
48297
|
bufferSize: 32,
|
|
48196
48298
|
recursive: false
|
|
48197
48299
|
};
|
|
48198
|
-
exports.getOpendirOptions = optsGenerator(opendirDefaults);
|
|
48199
|
-
exports.getOpendirOptsAndCb = optsAndCbGenerator(exports.getOpendirOptions);
|
|
48300
|
+
exports$1.getOpendirOptions = optsGenerator(opendirDefaults);
|
|
48301
|
+
exports$1.getOpendirOptsAndCb = optsAndCbGenerator(exports$1.getOpendirOptions);
|
|
48200
48302
|
const appendFileDefaults = {
|
|
48201
48303
|
encoding: 'utf8',
|
|
48202
48304
|
mode: 438,
|
|
48203
48305
|
flag: constants_1.FLAGS[constants_1.FLAGS.a]
|
|
48204
48306
|
};
|
|
48205
|
-
exports.getAppendFileOpts = optsGenerator(appendFileDefaults);
|
|
48206
|
-
exports.getAppendFileOptsAndCb = optsAndCbGenerator(exports.getAppendFileOpts);
|
|
48307
|
+
exports$1.getAppendFileOpts = optsGenerator(appendFileDefaults);
|
|
48308
|
+
exports$1.getAppendFileOptsAndCb = optsAndCbGenerator(exports$1.getAppendFileOpts);
|
|
48207
48309
|
const statDefaults = {
|
|
48208
48310
|
bigint: false
|
|
48209
48311
|
};
|
|
48210
48312
|
const getStatOptions = (options = {})=>Object.assign({}, statDefaults, options);
|
|
48211
|
-
exports.getStatOptions = getStatOptions;
|
|
48313
|
+
exports$1.getStatOptions = getStatOptions;
|
|
48212
48314
|
const getStatOptsAndCb = (options, callback)=>'function' == typeof options ? [
|
|
48213
|
-
(0, exports.getStatOptions)(),
|
|
48315
|
+
(0, exports$1.getStatOptions)(),
|
|
48214
48316
|
options
|
|
48215
48317
|
] : [
|
|
48216
|
-
(0, exports.getStatOptions)(options),
|
|
48318
|
+
(0, exports$1.getStatOptions)(options),
|
|
48217
48319
|
(0, util_1.validateCallback)(callback)
|
|
48218
48320
|
];
|
|
48219
|
-
exports.getStatOptsAndCb = getStatOptsAndCb;
|
|
48321
|
+
exports$1.getStatOptsAndCb = getStatOptsAndCb;
|
|
48220
48322
|
const statfsDefaults = {
|
|
48221
48323
|
bigint: false
|
|
48222
48324
|
};
|
|
48223
48325
|
const getStatfsOptions = (options = {})=>Object.assign({}, statfsDefaults, options);
|
|
48224
|
-
exports.getStatfsOptions = getStatfsOptions;
|
|
48326
|
+
exports$1.getStatfsOptions = getStatfsOptions;
|
|
48225
48327
|
const getStatfsOptsAndCb = (options, callback)=>'function' == typeof options ? [
|
|
48226
|
-
(0, exports.getStatfsOptions)(),
|
|
48328
|
+
(0, exports$1.getStatfsOptions)(),
|
|
48227
48329
|
options
|
|
48228
48330
|
] : [
|
|
48229
|
-
(0, exports.getStatfsOptions)(options),
|
|
48331
|
+
(0, exports$1.getStatfsOptions)(options),
|
|
48230
48332
|
(0, util_1.validateCallback)(callback)
|
|
48231
48333
|
];
|
|
48232
|
-
exports.getStatfsOptsAndCb = getStatfsOptsAndCb;
|
|
48233
|
-
const realpathDefaults = exports.optsDefaults;
|
|
48234
|
-
exports.getRealpathOptions = optsGenerator(realpathDefaults);
|
|
48235
|
-
exports.getRealpathOptsAndCb = optsAndCbGenerator(exports.getRealpathOptions);
|
|
48236
|
-
exports.writeFileDefaults = {
|
|
48334
|
+
exports$1.getStatfsOptsAndCb = getStatfsOptsAndCb;
|
|
48335
|
+
const realpathDefaults = exports$1.optsDefaults;
|
|
48336
|
+
exports$1.getRealpathOptions = optsGenerator(realpathDefaults);
|
|
48337
|
+
exports$1.getRealpathOptsAndCb = optsAndCbGenerator(exports$1.getRealpathOptions);
|
|
48338
|
+
exports$1.writeFileDefaults = {
|
|
48237
48339
|
encoding: 'utf8',
|
|
48238
48340
|
mode: 438,
|
|
48239
48341
|
flag: constants_1.FLAGS[constants_1.FLAGS.w]
|
|
48240
48342
|
};
|
|
48241
|
-
exports.getWriteFileOptions = optsGenerator(exports.writeFileDefaults);
|
|
48343
|
+
exports$1.getWriteFileOptions = optsGenerator(exports$1.writeFileDefaults);
|
|
48242
48344
|
})(options);
|
|
48243
48345
|
return options;
|
|
48244
48346
|
}
|
|
@@ -48383,12 +48485,73 @@ __webpack_require__.add({
|
|
|
48383
48485
|
function requireLib$1() {
|
|
48384
48486
|
if (hasRequiredLib$1) return lib;
|
|
48385
48487
|
hasRequiredLib$1 = 1;
|
|
48386
|
-
(function(exports) {
|
|
48387
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48488
|
+
(function(exports$1) {
|
|
48489
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48388
48490
|
value: true
|
|
48389
48491
|
});
|
|
48390
|
-
exports.toMatcher = exports.toRegex = void 0;
|
|
48492
|
+
exports$1.toMatcher = exports$1.toRegex = void 0;
|
|
48391
48493
|
const escapeRe = (ch)=>/[.^$+{}()|\\]/.test(ch) ? `\\${ch}` : ch;
|
|
48494
|
+
const parseExtGlob = (pattern, startIdx, prefix, options)=>{
|
|
48495
|
+
let i = startIdx;
|
|
48496
|
+
const parts = [];
|
|
48497
|
+
let cur = '';
|
|
48498
|
+
let depth = 1;
|
|
48499
|
+
while(i < pattern.length && depth > 0){
|
|
48500
|
+
const ch = pattern[i];
|
|
48501
|
+
if ('(' === ch) {
|
|
48502
|
+
depth++;
|
|
48503
|
+
cur += ch;
|
|
48504
|
+
i++;
|
|
48505
|
+
} else if (')' === ch) {
|
|
48506
|
+
depth--;
|
|
48507
|
+
if (0 === depth) {
|
|
48508
|
+
parts.push(cur);
|
|
48509
|
+
i++;
|
|
48510
|
+
break;
|
|
48511
|
+
}
|
|
48512
|
+
cur += ch;
|
|
48513
|
+
i++;
|
|
48514
|
+
} else if ('|' === ch && 1 === depth) {
|
|
48515
|
+
parts.push(cur);
|
|
48516
|
+
cur = '';
|
|
48517
|
+
i++;
|
|
48518
|
+
} else {
|
|
48519
|
+
cur += ch;
|
|
48520
|
+
i++;
|
|
48521
|
+
}
|
|
48522
|
+
}
|
|
48523
|
+
if (0 !== depth) return;
|
|
48524
|
+
let alternatives = '';
|
|
48525
|
+
const length = parts.length;
|
|
48526
|
+
for(let j = 0; j < length; j++)alternatives += (alternatives ? '|' : '') + (0, exports$1.toRegex)(parts[j], options).source.replace(/^\^/, '').replace(/\$$/, '');
|
|
48527
|
+
switch(prefix){
|
|
48528
|
+
case '?':
|
|
48529
|
+
return [
|
|
48530
|
+
`(?:${alternatives})?`,
|
|
48531
|
+
i
|
|
48532
|
+
];
|
|
48533
|
+
case '*':
|
|
48534
|
+
return [
|
|
48535
|
+
`(?:${alternatives})*`,
|
|
48536
|
+
i
|
|
48537
|
+
];
|
|
48538
|
+
case '+':
|
|
48539
|
+
return [
|
|
48540
|
+
`(?:${alternatives})+`,
|
|
48541
|
+
i
|
|
48542
|
+
];
|
|
48543
|
+
case '@':
|
|
48544
|
+
return [
|
|
48545
|
+
`(?:${alternatives})`,
|
|
48546
|
+
i
|
|
48547
|
+
];
|
|
48548
|
+
case '!':
|
|
48549
|
+
return [
|
|
48550
|
+
`(?!${alternatives})[^/]*`,
|
|
48551
|
+
i
|
|
48552
|
+
];
|
|
48553
|
+
}
|
|
48554
|
+
};
|
|
48392
48555
|
const toRegex = (pattern, options)=>{
|
|
48393
48556
|
let regexStr = '';
|
|
48394
48557
|
let i = 0;
|
|
@@ -48415,11 +48578,22 @@ __webpack_require__.add({
|
|
|
48415
48578
|
i++;
|
|
48416
48579
|
}
|
|
48417
48580
|
if (!closed) return '\\{' + escapeRe(cur);
|
|
48418
|
-
const alt = parts.map((p)=>(0, exports.toRegex)(p, options).source.replace(/^\^/, '').replace(/\$$/, '')).join('|');
|
|
48581
|
+
const alt = parts.map((p)=>(0, exports$1.toRegex)(p, options).source.replace(/^\^/, '').replace(/\$$/, '')).join('|');
|
|
48419
48582
|
return `(?:${alt})`;
|
|
48420
48583
|
};
|
|
48584
|
+
const extglob = !!options?.extglob;
|
|
48421
48585
|
while(i < pattern.length){
|
|
48422
48586
|
const char = pattern[i];
|
|
48587
|
+
if (extglob && '(' === pattern[i + 1]) {
|
|
48588
|
+
if ('?' === char || '*' === char || '+' === char || '@' === char || '!' === char) {
|
|
48589
|
+
const result = parseExtGlob(pattern, i + 2, char, options);
|
|
48590
|
+
if (result) {
|
|
48591
|
+
regexStr += result[0];
|
|
48592
|
+
i = result[1];
|
|
48593
|
+
continue;
|
|
48594
|
+
}
|
|
48595
|
+
}
|
|
48596
|
+
}
|
|
48423
48597
|
switch(char){
|
|
48424
48598
|
case '*':
|
|
48425
48599
|
if ('*' === pattern[i + 1]) {
|
|
@@ -48495,7 +48669,7 @@ __webpack_require__.add({
|
|
|
48495
48669
|
const flags = options?.nocase ? 'i' : '';
|
|
48496
48670
|
return new RegExp('^' + regexStr + '$', flags);
|
|
48497
48671
|
};
|
|
48498
|
-
exports.toRegex = toRegex;
|
|
48672
|
+
exports$1.toRegex = toRegex;
|
|
48499
48673
|
const isRegExp = /^\/(.{1,4096})\/([gimsuy]{0,6})$/;
|
|
48500
48674
|
const toMatcher = (pattern, options)=>{
|
|
48501
48675
|
const regexes = [];
|
|
@@ -48507,11 +48681,11 @@ __webpack_require__.add({
|
|
|
48507
48681
|
if (match) {
|
|
48508
48682
|
const [, expr, flags] = match;
|
|
48509
48683
|
regexes.push(new RegExp(expr, flags));
|
|
48510
|
-
} else regexes.push((0, exports.toRegex)(pat, options));
|
|
48684
|
+
} else regexes.push((0, exports$1.toRegex)(pat, options));
|
|
48511
48685
|
} else regexes.push(pat);
|
|
48512
48686
|
return regexes.length ? new Function('p', 'return ' + regexes.map((r)=>r + '.test(p)').join('||')) : ()=>false;
|
|
48513
48687
|
};
|
|
48514
|
-
exports.toMatcher = toMatcher;
|
|
48688
|
+
exports$1.toMatcher = toMatcher;
|
|
48515
48689
|
})(lib);
|
|
48516
48690
|
return lib;
|
|
48517
48691
|
}
|
|
@@ -50087,6 +50261,7 @@ __webpack_require__.add({
|
|
|
50087
50261
|
'fsyncSync',
|
|
50088
50262
|
'ftruncateSync',
|
|
50089
50263
|
'futimesSync',
|
|
50264
|
+
'globSync',
|
|
50090
50265
|
'lchmodSync',
|
|
50091
50266
|
'lchownSync',
|
|
50092
50267
|
'linkSync',
|
|
@@ -50143,6 +50318,7 @@ __webpack_require__.add({
|
|
|
50143
50318
|
'fsync',
|
|
50144
50319
|
'ftruncate',
|
|
50145
50320
|
'futimes',
|
|
50321
|
+
'glob',
|
|
50146
50322
|
'lchmod',
|
|
50147
50323
|
'lchown',
|
|
50148
50324
|
'link',
|
|
@@ -50181,16 +50357,16 @@ __webpack_require__.add({
|
|
|
50181
50357
|
function requireLib() {
|
|
50182
50358
|
if (hasRequiredLib) return lib$3.exports;
|
|
50183
50359
|
hasRequiredLib = 1;
|
|
50184
|
-
(function(module, exports) {
|
|
50185
|
-
Object.defineProperty(exports, "__esModule", {
|
|
50360
|
+
(function(module, exports$1) {
|
|
50361
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
50186
50362
|
value: true
|
|
50187
50363
|
});
|
|
50188
|
-
exports.memfs = exports.fs = exports.vol = exports.Volume = void 0;
|
|
50189
|
-
exports.createFsFromVolume = createFsFromVolume;
|
|
50364
|
+
exports$1.memfs = exports$1.fs = exports$1.vol = exports$1.Volume = void 0;
|
|
50365
|
+
exports$1.createFsFromVolume = createFsFromVolume;
|
|
50190
50366
|
const Stats_1 = requireStats();
|
|
50191
50367
|
const Dirent_1 = requireDirent();
|
|
50192
50368
|
const volume_1 = requireVolume();
|
|
50193
|
-
Object.defineProperty(exports, "Volume", {
|
|
50369
|
+
Object.defineProperty(exports$1, "Volume", {
|
|
50194
50370
|
enumerable: true,
|
|
50195
50371
|
get: function() {
|
|
50196
50372
|
return volume_1.Volume;
|
|
@@ -50200,7 +50376,7 @@ __webpack_require__.add({
|
|
|
50200
50376
|
const fsSynchronousApiList_1 = requireFsSynchronousApiList();
|
|
50201
50377
|
const fsCallbackApiList_1 = requireFsCallbackApiList();
|
|
50202
50378
|
const { F_OK, R_OK, W_OK, X_OK } = constants_1.constants;
|
|
50203
|
-
exports.vol = new volume_1.Volume();
|
|
50379
|
+
exports$1.vol = new volume_1.Volume();
|
|
50204
50380
|
function createFsFromVolume(vol) {
|
|
50205
50381
|
const fs = {
|
|
50206
50382
|
F_OK,
|
|
@@ -50230,7 +50406,7 @@ __webpack_require__.add({
|
|
|
50230
50406
|
fs.__vol = vol;
|
|
50231
50407
|
return fs;
|
|
50232
50408
|
}
|
|
50233
|
-
exports.fs = createFsFromVolume(exports.vol);
|
|
50409
|
+
exports$1.fs = createFsFromVolume(exports$1.vol);
|
|
50234
50410
|
const memfs = (json = {}, cwd = '/')=>{
|
|
50235
50411
|
const vol = volume_1.Volume.fromNestedJSON(json, cwd);
|
|
50236
50412
|
const fs = createFsFromVolume(vol);
|
|
@@ -50239,10 +50415,10 @@ __webpack_require__.add({
|
|
|
50239
50415
|
vol
|
|
50240
50416
|
};
|
|
50241
50417
|
};
|
|
50242
|
-
exports.memfs = memfs;
|
|
50418
|
+
exports$1.memfs = memfs;
|
|
50243
50419
|
module.exports = {
|
|
50244
50420
|
...module.exports,
|
|
50245
|
-
...exports.fs
|
|
50421
|
+
...exports$1.fs
|
|
50246
50422
|
};
|
|
50247
50423
|
module.exports.semantic = true;
|
|
50248
50424
|
})(lib$3, lib$3.exports);
|
|
@@ -50398,7 +50574,7 @@ const cutOffMessage = (stack, name, message)=>{
|
|
|
50398
50574
|
};
|
|
50399
50575
|
const util_util = __webpack_require__("../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js");
|
|
50400
50576
|
var util_util_default = /*#__PURE__*/ __webpack_require__.n(util_util);
|
|
50401
|
-
class
|
|
50577
|
+
class WebpackError_WebpackError extends Error {
|
|
50402
50578
|
loc;
|
|
50403
50579
|
file;
|
|
50404
50580
|
chunk;
|
|
@@ -50406,14 +50582,14 @@ class WebpackError extends Error {
|
|
|
50406
50582
|
details;
|
|
50407
50583
|
hideStack;
|
|
50408
50584
|
}
|
|
50409
|
-
Object.defineProperty(
|
|
50585
|
+
Object.defineProperty(WebpackError_WebpackError.prototype, util_util.inspect.custom, {
|
|
50410
50586
|
value: function() {
|
|
50411
50587
|
return this.stack + (this.details ? `\n${this.details}` : '');
|
|
50412
50588
|
},
|
|
50413
50589
|
enumerable: false,
|
|
50414
50590
|
configurable: true
|
|
50415
50591
|
});
|
|
50416
|
-
const lib_WebpackError =
|
|
50592
|
+
const lib_WebpackError = WebpackError_WebpackError;
|
|
50417
50593
|
var Logger_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
50418
50594
|
const LogType = Object.freeze({
|
|
50419
50595
|
error: 'error',
|
|
@@ -51738,7 +51914,7 @@ class Compilation {
|
|
|
51738
51914
|
constructor(compiler, inner){
|
|
51739
51915
|
this.#inner = inner;
|
|
51740
51916
|
this.#shutdown = false;
|
|
51741
|
-
const processAssetsHook = new AsyncSeriesHook([
|
|
51917
|
+
const processAssetsHook = new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
51742
51918
|
'assets'
|
|
51743
51919
|
]);
|
|
51744
51920
|
const createProcessAssetsHook = (name, stage, getArgs)=>{
|
|
@@ -51773,94 +51949,94 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
51773
51949
|
};
|
|
51774
51950
|
this.hooks = {
|
|
51775
51951
|
processAssets: processAssetsHook,
|
|
51776
|
-
afterProcessAssets: new SyncHook([
|
|
51952
|
+
afterProcessAssets: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51777
51953
|
'assets'
|
|
51778
51954
|
]),
|
|
51779
51955
|
additionalAssets: createProcessAssetsHook('additionalAssets', Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL, ()=>[]),
|
|
51780
|
-
childCompiler: new SyncHook([
|
|
51956
|
+
childCompiler: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51781
51957
|
'childCompiler',
|
|
51782
51958
|
'compilerName',
|
|
51783
51959
|
'compilerIndex'
|
|
51784
51960
|
]),
|
|
51785
|
-
log: new SyncBailHook([
|
|
51961
|
+
log: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
51786
51962
|
'origin',
|
|
51787
51963
|
'logEntry'
|
|
51788
51964
|
]),
|
|
51789
|
-
optimizeModules: new SyncBailHook([
|
|
51965
|
+
optimizeModules: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
51790
51966
|
'modules'
|
|
51791
51967
|
]),
|
|
51792
|
-
afterOptimizeModules: new SyncBailHook([
|
|
51968
|
+
afterOptimizeModules: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
51793
51969
|
'modules'
|
|
51794
51970
|
]),
|
|
51795
|
-
optimizeTree: new AsyncSeriesHook([
|
|
51971
|
+
optimizeTree: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
51796
51972
|
'chunks',
|
|
51797
51973
|
'modules'
|
|
51798
51974
|
]),
|
|
51799
|
-
optimizeChunkModules: new AsyncSeriesBailHook([
|
|
51975
|
+
optimizeChunkModules: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
51800
51976
|
'chunks',
|
|
51801
51977
|
'modules'
|
|
51802
51978
|
]),
|
|
51803
|
-
beforeModuleIds: new SyncHook([
|
|
51979
|
+
beforeModuleIds: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51804
51980
|
'modules'
|
|
51805
51981
|
]),
|
|
51806
|
-
finishModules: new AsyncSeriesHook([
|
|
51982
|
+
finishModules: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
51807
51983
|
'modules'
|
|
51808
51984
|
]),
|
|
51809
|
-
chunkHash: new SyncHook([
|
|
51985
|
+
chunkHash: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51810
51986
|
'chunk',
|
|
51811
51987
|
'hash'
|
|
51812
51988
|
]),
|
|
51813
|
-
chunkAsset: new SyncHook([
|
|
51989
|
+
chunkAsset: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51814
51990
|
'chunk',
|
|
51815
51991
|
'filename'
|
|
51816
51992
|
]),
|
|
51817
|
-
processWarnings: new SyncWaterfallHook([
|
|
51993
|
+
processWarnings: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
51818
51994
|
'warnings'
|
|
51819
51995
|
]),
|
|
51820
|
-
succeedModule: new SyncHook([
|
|
51996
|
+
succeedModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51821
51997
|
'module'
|
|
51822
51998
|
]),
|
|
51823
|
-
stillValidModule: new SyncHook([
|
|
51999
|
+
stillValidModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51824
52000
|
'module'
|
|
51825
52001
|
]),
|
|
51826
|
-
statsPreset: new HookMap(()=>new SyncHook([
|
|
52002
|
+
statsPreset: new __rspack_external__rspack_lite_tapable_c6bdf810.HookMap(()=>new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51827
52003
|
'options',
|
|
51828
52004
|
'context'
|
|
51829
52005
|
])),
|
|
51830
|
-
statsNormalize: new SyncHook([
|
|
52006
|
+
statsNormalize: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51831
52007
|
'options',
|
|
51832
52008
|
'context'
|
|
51833
52009
|
]),
|
|
51834
|
-
statsFactory: new SyncHook([
|
|
52010
|
+
statsFactory: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51835
52011
|
'statsFactory',
|
|
51836
52012
|
'options'
|
|
51837
52013
|
]),
|
|
51838
|
-
statsPrinter: new SyncHook([
|
|
52014
|
+
statsPrinter: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51839
52015
|
'statsPrinter',
|
|
51840
52016
|
'options'
|
|
51841
52017
|
]),
|
|
51842
|
-
buildModule: new SyncHook([
|
|
52018
|
+
buildModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51843
52019
|
'module'
|
|
51844
52020
|
]),
|
|
51845
|
-
executeModule: new SyncHook([
|
|
52021
|
+
executeModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51846
52022
|
'options',
|
|
51847
52023
|
'context'
|
|
51848
52024
|
]),
|
|
51849
|
-
additionalTreeRuntimeRequirements: new SyncHook([
|
|
52025
|
+
additionalTreeRuntimeRequirements: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51850
52026
|
'chunk',
|
|
51851
52027
|
'runtimeRequirements'
|
|
51852
52028
|
]),
|
|
51853
|
-
runtimeRequirementInTree: new HookMap(()=>new SyncBailHook([
|
|
52029
|
+
runtimeRequirementInTree: new __rspack_external__rspack_lite_tapable_c6bdf810.HookMap(()=>new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
51854
52030
|
'chunk',
|
|
51855
52031
|
'runtimeRequirements'
|
|
51856
52032
|
])),
|
|
51857
|
-
runtimeModule: new SyncHook([
|
|
52033
|
+
runtimeModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51858
52034
|
'module',
|
|
51859
52035
|
'chunk'
|
|
51860
52036
|
]),
|
|
51861
|
-
seal: new SyncHook([]),
|
|
51862
|
-
afterSeal: new AsyncSeriesHook([]),
|
|
51863
|
-
needAdditionalPass: new SyncBailHook([])
|
|
52037
|
+
seal: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
52038
|
+
afterSeal: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([]),
|
|
52039
|
+
needAdditionalPass: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([])
|
|
51864
52040
|
};
|
|
51865
52041
|
const availableHooks = Object.keys(this.hooks);
|
|
51866
52042
|
this.hooks = new Proxy(this.hooks, {
|
|
@@ -52370,6 +52546,16 @@ class Entries {
|
|
|
52370
52546
|
delete(key) {
|
|
52371
52547
|
return this.#data.delete(key);
|
|
52372
52548
|
}
|
|
52549
|
+
getOrInsert(key, defaultValue) {
|
|
52550
|
+
if (this.has(key)) return this.get(key);
|
|
52551
|
+
this.set(key, defaultValue);
|
|
52552
|
+
return this.get(key);
|
|
52553
|
+
}
|
|
52554
|
+
getOrInsertComputed(key, callback) {
|
|
52555
|
+
if (this.has(key)) return this.get(key);
|
|
52556
|
+
this.set(key, callback(key));
|
|
52557
|
+
return this.get(key);
|
|
52558
|
+
}
|
|
52373
52559
|
get(key) {
|
|
52374
52560
|
const binding = this.#data.get(key);
|
|
52375
52561
|
return binding ? EntryData.__from_binding(binding) : void 0;
|
|
@@ -52430,11 +52616,11 @@ function createNativePlugin(name, resolve, affectedHooks) {
|
|
|
52430
52616
|
if (INTERNAL_PLUGIN_NAMES.includes(name)) throw new Error(`Cannot register native plugin with name '${name}', it conflicts with internal plugin names.`);
|
|
52431
52617
|
return base_create(name, resolve, affectedHooks);
|
|
52432
52618
|
}
|
|
52433
|
-
const APIPlugin = base_create(
|
|
52434
|
-
const ArrayPushCallbackChunkFormatPlugin = base_create(
|
|
52435
|
-
const AssetModulesPlugin = base_create(
|
|
52436
|
-
const AsyncWebAssemblyModulesPlugin = base_create(
|
|
52437
|
-
const BannerPlugin = base_create(
|
|
52619
|
+
const APIPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.APIPlugin, ()=>{});
|
|
52620
|
+
const ArrayPushCallbackChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ArrayPushCallbackChunkFormatPlugin, ()=>{});
|
|
52621
|
+
const AssetModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.AssetModulesPlugin, ()=>{}, 'compilation');
|
|
52622
|
+
const AsyncWebAssemblyModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.AsyncWebAssemblyModulesPlugin, ()=>{}, 'compilation');
|
|
52623
|
+
const BannerPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.BannerPlugin, (args)=>{
|
|
52438
52624
|
if ('string' == typeof args || 'function' == typeof args) return {
|
|
52439
52625
|
banner: args
|
|
52440
52626
|
};
|
|
@@ -52449,15 +52635,15 @@ const BannerPlugin = base_create(BuiltinPluginName.BannerPlugin, (args)=>{
|
|
|
52449
52635
|
exclude: args.exclude
|
|
52450
52636
|
};
|
|
52451
52637
|
});
|
|
52452
|
-
const BundlerInfoRspackPlugin = base_create(
|
|
52638
|
+
const BundlerInfoRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.BundlerInfoRspackPlugin, (options)=>({
|
|
52453
52639
|
version: options.version || 'unknown',
|
|
52454
52640
|
bundler: options.bundler || 'rspack',
|
|
52455
52641
|
force: options.force ?? true
|
|
52456
52642
|
}));
|
|
52457
|
-
const CaseSensitivePlugin = base_create(
|
|
52458
|
-
const ChunkPrefetchPreloadPlugin = base_create(
|
|
52643
|
+
const CaseSensitivePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CaseSensitivePlugin, ()=>{}, 'compilation');
|
|
52644
|
+
const ChunkPrefetchPreloadPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
|
|
52459
52645
|
class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
52460
|
-
name =
|
|
52646
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.CircularDependencyRspackPlugin;
|
|
52461
52647
|
_options;
|
|
52462
52648
|
constructor(options){
|
|
52463
52649
|
super();
|
|
@@ -52489,8 +52675,8 @@ class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
|
52489
52675
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
52490
52676
|
}
|
|
52491
52677
|
}
|
|
52492
|
-
const CommonJsChunkFormatPlugin = base_create(
|
|
52493
|
-
const ContextReplacementPlugin = base_create(
|
|
52678
|
+
const CommonJsChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CommonJsChunkFormatPlugin, ()=>{});
|
|
52679
|
+
const ContextReplacementPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ContextReplacementPlugin, (resourceRegExp, newContentResource, newContentRecursive, newContentRegExp)=>{
|
|
52494
52680
|
const rawOptions = {
|
|
52495
52681
|
resourceRegExp
|
|
52496
52682
|
};
|
|
@@ -52515,7 +52701,7 @@ const ContextReplacementPlugin = base_create(BuiltinPluginName.ContextReplacemen
|
|
|
52515
52701
|
}
|
|
52516
52702
|
return rawOptions;
|
|
52517
52703
|
});
|
|
52518
|
-
const CopyRspackPlugin = base_create(
|
|
52704
|
+
const CopyRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CopyRspackPlugin, (copy)=>{
|
|
52519
52705
|
const ret = {
|
|
52520
52706
|
patterns: []
|
|
52521
52707
|
};
|
|
@@ -52551,7 +52737,7 @@ const CssChunkingPlugin = base_create(rspack_wasi_browser.BuiltinPluginName.CssC
|
|
|
52551
52737
|
}
|
|
52552
52738
|
return options;
|
|
52553
52739
|
});
|
|
52554
|
-
const CssModulesPlugin = base_create(
|
|
52740
|
+
const CssModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CssModulesPlugin, ()=>{}, 'compilation');
|
|
52555
52741
|
const path_browserify = __webpack_require__("../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js");
|
|
52556
52742
|
var path_browserify_default = /*#__PURE__*/ __webpack_require__.n(path_browserify);
|
|
52557
52743
|
const utils_PLUGIN_NAME = 'css-extract-rspack-plugin';
|
|
@@ -52572,7 +52758,7 @@ class CssExtractRspackPlugin {
|
|
|
52572
52758
|
}
|
|
52573
52759
|
if (compiler.options.output.pathinfo && void 0 === this.options.pathinfo) this.options.pathinfo = true;
|
|
52574
52760
|
compiler.__internal__registerBuiltinPlugin({
|
|
52575
|
-
name:
|
|
52761
|
+
name: external_rspack_wasi_browser_js_BuiltinPluginName.CssExtractRspackPlugin,
|
|
52576
52762
|
options: this.normalizeOptions(this.options)
|
|
52577
52763
|
});
|
|
52578
52764
|
}
|
|
@@ -52608,8 +52794,8 @@ class CssExtractRspackPlugin {
|
|
|
52608
52794
|
return normalzedOptions;
|
|
52609
52795
|
}
|
|
52610
52796
|
}
|
|
52611
|
-
const DataUriPlugin = base_create(
|
|
52612
|
-
const DefinePlugin = base_create(
|
|
52797
|
+
const DataUriPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DataUriPlugin, ()=>{}, 'compilation');
|
|
52798
|
+
const DefinePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DefinePlugin, function(define1) {
|
|
52613
52799
|
const supportsBigIntLiteral = this.options.output.environment?.bigIntLiteral ?? false;
|
|
52614
52800
|
return normalizeValue(define1, supportsBigIntLiteral);
|
|
52615
52801
|
}, 'compilation');
|
|
@@ -52637,25 +52823,25 @@ const normalizeValue = (define1, supportsBigIntLiteral)=>{
|
|
|
52637
52823
|
return normalizeObject(define1);
|
|
52638
52824
|
};
|
|
52639
52825
|
class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
52640
|
-
name =
|
|
52826
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
52641
52827
|
affectedHooks = 'compilation';
|
|
52642
52828
|
raw() {
|
|
52643
52829
|
return createBuiltinPlugin(this.name, void 0);
|
|
52644
52830
|
}
|
|
52645
52831
|
}
|
|
52646
52832
|
class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
52647
|
-
name =
|
|
52833
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
52648
52834
|
affectedHooks = 'compilation';
|
|
52649
52835
|
raw() {
|
|
52650
52836
|
return createBuiltinPlugin(this.name, void 0);
|
|
52651
52837
|
}
|
|
52652
52838
|
}
|
|
52653
|
-
const DllEntryPlugin = base_create(
|
|
52839
|
+
const DllEntryPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DllEntryPlugin, (context, entries, options)=>({
|
|
52654
52840
|
context,
|
|
52655
52841
|
entries,
|
|
52656
52842
|
name: options.name
|
|
52657
52843
|
}));
|
|
52658
|
-
const DllReferenceAgencyPlugin = base_create(
|
|
52844
|
+
const DllReferenceAgencyPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DllReferenceAgencyPlugin, (options)=>options);
|
|
52659
52845
|
class EntryOptionPlugin {
|
|
52660
52846
|
apply(compiler) {
|
|
52661
52847
|
compiler.hooks.entryOption.tap('EntryOptionPlugin', (context, entry)=>{
|
|
@@ -52689,7 +52875,7 @@ class EntryOptionPlugin {
|
|
|
52689
52875
|
}
|
|
52690
52876
|
}
|
|
52691
52877
|
const lib_EntryOptionPlugin = EntryOptionPlugin;
|
|
52692
|
-
const OriginEntryPlugin = base_create(
|
|
52878
|
+
const OriginEntryPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EntryPlugin, (context, entry, options = '')=>{
|
|
52693
52879
|
const entryOptions = 'string' == typeof options ? {
|
|
52694
52880
|
name: options
|
|
52695
52881
|
} : options;
|
|
@@ -52719,7 +52905,7 @@ function getRawEntryOptions(entry) {
|
|
|
52719
52905
|
class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
52720
52906
|
context;
|
|
52721
52907
|
entry;
|
|
52722
|
-
name =
|
|
52908
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.DynamicEntryPlugin;
|
|
52723
52909
|
affectedHooks = 'make';
|
|
52724
52910
|
constructor(context, entry){
|
|
52725
52911
|
super(), this.context = context, this.entry = entry;
|
|
@@ -52741,8 +52927,8 @@ class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
|
52741
52927
|
return createBuiltinPlugin(this.name, raw);
|
|
52742
52928
|
}
|
|
52743
52929
|
}
|
|
52744
|
-
const ElectronTargetPlugin = base_create(
|
|
52745
|
-
const EnableChunkLoadingPluginInner = base_create(
|
|
52930
|
+
const ElectronTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ElectronTargetPlugin, (context)=>context ?? 'none');
|
|
52931
|
+
const EnableChunkLoadingPluginInner = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EnableChunkLoadingPlugin, (type)=>type);
|
|
52746
52932
|
const enabledTypes = new WeakMap();
|
|
52747
52933
|
const getEnabledTypes = (compiler)=>{
|
|
52748
52934
|
let set = enabledTypes.get(compiler);
|
|
@@ -52783,38 +52969,6 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
52783
52969
|
}
|
|
52784
52970
|
}
|
|
52785
52971
|
}
|
|
52786
|
-
const EnableLibraryPlugin_enabledTypes = new WeakMap();
|
|
52787
|
-
const EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
52788
|
-
let set = EnableLibraryPlugin_enabledTypes.get(compiler);
|
|
52789
|
-
if (void 0 === set) {
|
|
52790
|
-
set = new Set();
|
|
52791
|
-
EnableLibraryPlugin_enabledTypes.set(compiler, set);
|
|
52792
|
-
}
|
|
52793
|
-
return set;
|
|
52794
|
-
};
|
|
52795
|
-
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
52796
|
-
type;
|
|
52797
|
-
name = BuiltinPluginName.EnableLibraryPlugin;
|
|
52798
|
-
constructor(type){
|
|
52799
|
-
super(), this.type = type;
|
|
52800
|
-
}
|
|
52801
|
-
static setEnabled(compiler, type) {
|
|
52802
|
-
EnableLibraryPlugin_getEnabledTypes(compiler).add(type);
|
|
52803
|
-
}
|
|
52804
|
-
static checkEnabled(compiler, type) {
|
|
52805
|
-
if (!EnableLibraryPlugin_getEnabledTypes(compiler).has(type)) throw new Error(`Library type "${type}" is not enabled. EnableLibraryPlugin need to be used to enable this type of library. This usually happens through the "output.enabledLibraryTypes" option. If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". These types are enabled: ${Array.from(EnableLibraryPlugin_getEnabledTypes(compiler)).join(', ')}`);
|
|
52806
|
-
}
|
|
52807
|
-
raw(compiler) {
|
|
52808
|
-
const type = this.type;
|
|
52809
|
-
const enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
|
|
52810
|
-
if (enabled.has(type)) return;
|
|
52811
|
-
enabled.add(type);
|
|
52812
|
-
return createBuiltinPlugin(this.name, type);
|
|
52813
|
-
}
|
|
52814
|
-
}
|
|
52815
|
-
const EnableWasmLoadingPlugin = base_create(BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type);
|
|
52816
|
-
const EnsureChunkConditionsPlugin = base_create(BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{});
|
|
52817
|
-
const RemoveDuplicateModulesPlugin = base_create(BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
52818
52972
|
class JsSplitChunkSizes {
|
|
52819
52973
|
static __to_binding(sizes) {
|
|
52820
52974
|
if ('number' == typeof sizes) return sizes;
|
|
@@ -52829,18 +52983,18 @@ class JsSplitChunkSizes {
|
|
|
52829
52983
|
}
|
|
52830
52984
|
class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
52831
52985
|
options;
|
|
52832
|
-
name =
|
|
52986
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.SplitChunksPlugin;
|
|
52833
52987
|
affectedHooks = 'thisCompilation';
|
|
52834
52988
|
constructor(options){
|
|
52835
52989
|
super(), this.options = options;
|
|
52836
52990
|
}
|
|
52837
52991
|
raw(compiler) {
|
|
52838
|
-
const rawOptions =
|
|
52992
|
+
const rawOptions = SplitChunksPlugin_toRawSplitChunksOptions(this.options, compiler);
|
|
52839
52993
|
if (void 0 === rawOptions) throw new Error('rawOptions should not be undefined');
|
|
52840
52994
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
52841
52995
|
}
|
|
52842
52996
|
}
|
|
52843
|
-
function
|
|
52997
|
+
function SplitChunksPlugin_toRawSplitChunksOptions(sc, compiler) {
|
|
52844
52998
|
if (!sc) return;
|
|
52845
52999
|
function getName(name) {
|
|
52846
53000
|
if ('function' == typeof name) return (ctx)=>{
|
|
@@ -52899,6 +53053,42 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
52899
53053
|
...passThrough
|
|
52900
53054
|
};
|
|
52901
53055
|
}
|
|
53056
|
+
const EnableLibraryPlugin_enabledTypes = new WeakMap();
|
|
53057
|
+
const EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
53058
|
+
let set = EnableLibraryPlugin_enabledTypes.get(compiler);
|
|
53059
|
+
if (void 0 === set) {
|
|
53060
|
+
set = new Set();
|
|
53061
|
+
EnableLibraryPlugin_enabledTypes.set(compiler, set);
|
|
53062
|
+
}
|
|
53063
|
+
return set;
|
|
53064
|
+
};
|
|
53065
|
+
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
53066
|
+
type;
|
|
53067
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.EnableLibraryPlugin;
|
|
53068
|
+
constructor(type){
|
|
53069
|
+
super(), this.type = type;
|
|
53070
|
+
}
|
|
53071
|
+
static setEnabled(compiler, type) {
|
|
53072
|
+
EnableLibraryPlugin_getEnabledTypes(compiler).add(type);
|
|
53073
|
+
}
|
|
53074
|
+
static checkEnabled(compiler, type) {
|
|
53075
|
+
if (!EnableLibraryPlugin_getEnabledTypes(compiler).has(type)) throw new Error(`Library type "${type}" is not enabled. EnableLibraryPlugin need to be used to enable this type of library. This usually happens through the "output.enabledLibraryTypes" option. If you are using a function as entry which sets "library", you need to add all potential library types to "output.enabledLibraryTypes". These types are enabled: ${Array.from(EnableLibraryPlugin_getEnabledTypes(compiler)).join(', ')}`);
|
|
53076
|
+
}
|
|
53077
|
+
raw(compiler) {
|
|
53078
|
+
const type = this.type;
|
|
53079
|
+
const enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
|
|
53080
|
+
if (enabled.has(type)) return;
|
|
53081
|
+
enabled.add(type);
|
|
53082
|
+
return createBuiltinPlugin(this.name, {
|
|
53083
|
+
libraryType: type,
|
|
53084
|
+
preserveModules: compiler.options.output.library?.preserveModules,
|
|
53085
|
+
splitChunks: SplitChunksPlugin_toRawSplitChunksOptions(compiler.options.optimization.splitChunks ?? false, compiler)
|
|
53086
|
+
});
|
|
53087
|
+
}
|
|
53088
|
+
}
|
|
53089
|
+
const EnableWasmLoadingPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type);
|
|
53090
|
+
const EnsureChunkConditionsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{});
|
|
53091
|
+
const RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
52902
53092
|
function applyLimits(options) {
|
|
52903
53093
|
options.optimization.concatenateModules = false;
|
|
52904
53094
|
options.optimization.removeEmptyChunks = false;
|
|
@@ -52918,32 +53108,9 @@ function applyLimits(options) {
|
|
|
52918
53108
|
splitChunks.cacheGroups.defaultVendors = false;
|
|
52919
53109
|
}
|
|
52920
53110
|
}
|
|
52921
|
-
|
|
52922
|
-
|
|
52923
|
-
|
|
52924
|
-
constructor(options){
|
|
52925
|
-
this.options = options ?? {};
|
|
52926
|
-
}
|
|
52927
|
-
apply(compiler) {
|
|
52928
|
-
applyLimits(compiler.options);
|
|
52929
|
-
new RemoveDuplicateModulesPlugin().apply(compiler);
|
|
52930
|
-
let err;
|
|
52931
|
-
if (err = checkConfig(compiler.options)) throw new lib_WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
|
|
52932
|
-
compiler.__internal__registerBuiltinPlugin({
|
|
52933
|
-
name: BuiltinPluginName.EsmLibraryPlugin,
|
|
52934
|
-
options: {
|
|
52935
|
-
preserveModules: this.options.preserveModules,
|
|
52936
|
-
splitChunks: toRawSplitChunksOptions(this.options.splitChunks ?? false, compiler)
|
|
52937
|
-
}
|
|
52938
|
-
});
|
|
52939
|
-
}
|
|
52940
|
-
}
|
|
52941
|
-
function checkConfig(config) {
|
|
52942
|
-
if (config.optimization.concatenateModules) return 'You should disable `config.optimization.concatenateModules`';
|
|
52943
|
-
if (false !== config.output.chunkFormat) return 'You should disable default chunkFormat by `config.output.chunkFormat = false`';
|
|
52944
|
-
}
|
|
52945
|
-
const EvalDevToolModulePlugin = base_create(BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation');
|
|
52946
|
-
const EvalSourceMapDevToolPlugin = base_create(BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
53111
|
+
base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EsmNodeTargetPlugin, ()=>void 0);
|
|
53112
|
+
const EvalDevToolModulePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation');
|
|
53113
|
+
const EvalSourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
52947
53114
|
var util_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
52948
53115
|
function isNil(value) {
|
|
52949
53116
|
return null == value;
|
|
@@ -53455,11 +53622,11 @@ Object.defineProperty(rspack_wasi_browser.NormalModule, 'getCompilationHooks', {
|
|
|
53455
53622
|
let hooks = compilationHooksMap.get(compilation);
|
|
53456
53623
|
if (void 0 === hooks) {
|
|
53457
53624
|
hooks = {
|
|
53458
|
-
loader: new SyncHook([
|
|
53625
|
+
loader: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
53459
53626
|
'loaderContext',
|
|
53460
53627
|
'module'
|
|
53461
53628
|
]),
|
|
53462
|
-
readResource: new HookMap(()=>new AsyncSeriesBailHook([
|
|
53629
|
+
readResource: new __rspack_external__rspack_lite_tapable_c6bdf810.HookMap(()=>new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
53463
53630
|
'loaderContext'
|
|
53464
53631
|
]))
|
|
53465
53632
|
};
|
|
@@ -55134,7 +55301,8 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
55134
55301
|
commonjsMagicComments: parser.commonjsMagicComments,
|
|
55135
55302
|
typeReexportsPresence: parser.typeReexportsPresence,
|
|
55136
55303
|
jsx: parser.jsx,
|
|
55137
|
-
deferImport: parser.deferImport
|
|
55304
|
+
deferImport: parser.deferImport,
|
|
55305
|
+
importMetaResolve: parser.importMetaResolve
|
|
55138
55306
|
};
|
|
55139
55307
|
}
|
|
55140
55308
|
function getRawAssetParserOptions(parser) {
|
|
@@ -55275,7 +55443,7 @@ class ExternalsPlugin extends RspackBuiltinPlugin {
|
|
|
55275
55443
|
type;
|
|
55276
55444
|
externals;
|
|
55277
55445
|
placeInInitial;
|
|
55278
|
-
name =
|
|
55446
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ExternalsPlugin;
|
|
55279
55447
|
#resolveRequestCache = new Map();
|
|
55280
55448
|
constructor(type, externals, placeInInitial){
|
|
55281
55449
|
super(), this.type = type, this.externals = externals, this.placeInInitial = placeInInitial;
|
|
@@ -55376,12 +55544,12 @@ function getRawExternalItemValue(value) {
|
|
|
55376
55544
|
]));
|
|
55377
55545
|
return value;
|
|
55378
55546
|
}
|
|
55379
|
-
const FetchCompileAsyncWasmPlugin = base_create(
|
|
55380
|
-
const FileUriPlugin = base_create(
|
|
55381
|
-
const FlagDependencyExportsPlugin = base_create(
|
|
55547
|
+
const FetchCompileAsyncWasmPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FetchCompileAsyncWasmPlugin, ()=>{}, 'thisCompilation');
|
|
55548
|
+
const FileUriPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FileUriPlugin, ()=>{}, 'compilation');
|
|
55549
|
+
const FlagDependencyExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyExportsPlugin, ()=>{}, 'compilation');
|
|
55382
55550
|
class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
55383
55551
|
global;
|
|
55384
|
-
name =
|
|
55552
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
55385
55553
|
affectedHooks = 'compilation';
|
|
55386
55554
|
constructor(global){
|
|
55387
55555
|
super(), this.global = global;
|
|
@@ -55391,13 +55559,13 @@ class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
|
55391
55559
|
}
|
|
55392
55560
|
}
|
|
55393
55561
|
class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
55394
|
-
name =
|
|
55562
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.HotModuleReplacementPlugin;
|
|
55395
55563
|
raw(compiler) {
|
|
55396
55564
|
if (void 0 === compiler.options.output.strictModuleErrorHandling) compiler.options.output.strictModuleErrorHandling = true;
|
|
55397
55565
|
return createBuiltinPlugin(this.name, void 0);
|
|
55398
55566
|
}
|
|
55399
55567
|
}
|
|
55400
|
-
const HttpExternalsRspackPlugin = base_create(
|
|
55568
|
+
const HttpExternalsRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HttpExternalsRspackPlugin, (css, webAsync)=>({
|
|
55401
55569
|
css,
|
|
55402
55570
|
webAsync
|
|
55403
55571
|
}));
|
|
@@ -55419,7 +55587,7 @@ const defaultHttpClientForBrowser = async (url, headers)=>{
|
|
|
55419
55587
|
};
|
|
55420
55588
|
class HttpUriPlugin extends RspackBuiltinPlugin {
|
|
55421
55589
|
options;
|
|
55422
|
-
name =
|
|
55590
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.HttpUriPlugin;
|
|
55423
55591
|
affectedHooks = 'compilation';
|
|
55424
55592
|
constructor(options){
|
|
55425
55593
|
super(), this.options = options;
|
|
@@ -55461,22 +55629,22 @@ const getPluginHooks = (compilation)=>{
|
|
|
55461
55629
|
let hooks = hooks_compilationHooksMap.get(compilation);
|
|
55462
55630
|
if (void 0 === hooks) {
|
|
55463
55631
|
hooks = {
|
|
55464
|
-
beforeAssetTagGeneration: new AsyncSeriesWaterfallHook([
|
|
55632
|
+
beforeAssetTagGeneration: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55465
55633
|
'data'
|
|
55466
55634
|
]),
|
|
55467
|
-
alterAssetTags: new AsyncSeriesWaterfallHook([
|
|
55635
|
+
alterAssetTags: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55468
55636
|
'data'
|
|
55469
55637
|
]),
|
|
55470
|
-
alterAssetTagGroups: new AsyncSeriesWaterfallHook([
|
|
55638
|
+
alterAssetTagGroups: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55471
55639
|
'data'
|
|
55472
55640
|
]),
|
|
55473
|
-
afterTemplateExecution: new AsyncSeriesWaterfallHook([
|
|
55641
|
+
afterTemplateExecution: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55474
55642
|
'data'
|
|
55475
55643
|
]),
|
|
55476
|
-
beforeEmit: new AsyncSeriesWaterfallHook([
|
|
55644
|
+
beforeEmit: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55477
55645
|
'data'
|
|
55478
55646
|
]),
|
|
55479
|
-
afterEmit: new AsyncSeriesWaterfallHook([
|
|
55647
|
+
afterEmit: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55480
55648
|
'data'
|
|
55481
55649
|
])
|
|
55482
55650
|
};
|
|
@@ -55490,7 +55658,7 @@ const cleanPluginHooks = (compilation)=>{
|
|
|
55490
55658
|
const fs_0 = __webpack_require__("./src/browser/fs.ts");
|
|
55491
55659
|
var plugin_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
55492
55660
|
let HTML_PLUGIN_UID = 0;
|
|
55493
|
-
const HtmlRspackPluginImpl = base_create(
|
|
55661
|
+
const HtmlRspackPluginImpl = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HtmlRspackPlugin, function(c = {}) {
|
|
55494
55662
|
const uid = HTML_PLUGIN_UID++;
|
|
55495
55663
|
const meta = {};
|
|
55496
55664
|
for(const key in c.meta){
|
|
@@ -55648,12 +55816,12 @@ HtmlRspackPlugin.createHtmlTagObject = (tagName, attributes, innerHTML)=>({
|
|
|
55648
55816
|
});
|
|
55649
55817
|
HtmlRspackPlugin.getCompilationHooks = getPluginHooks;
|
|
55650
55818
|
HtmlRspackPlugin.version = 5;
|
|
55651
|
-
const IgnorePlugin = base_create(
|
|
55652
|
-
const InferAsyncModulesPlugin = base_create(
|
|
55653
|
-
const InlineExportsPlugin = base_create(
|
|
55819
|
+
const IgnorePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.IgnorePlugin, (options)=>options);
|
|
55820
|
+
const InferAsyncModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InferAsyncModulesPlugin, ()=>{}, 'compilation');
|
|
55821
|
+
const InlineExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InlineExportsPlugin, ()=>{}, 'compilation');
|
|
55654
55822
|
const JavascriptModulesPlugin_compilationHooksMap = new WeakMap();
|
|
55655
55823
|
class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
55656
|
-
name =
|
|
55824
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.JavascriptModulesPlugin;
|
|
55657
55825
|
affectedHooks = 'compilation';
|
|
55658
55826
|
raw() {
|
|
55659
55827
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -55663,7 +55831,7 @@ class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
|
55663
55831
|
let hooks = JavascriptModulesPlugin_compilationHooksMap.get(compilation);
|
|
55664
55832
|
if (void 0 === hooks) {
|
|
55665
55833
|
hooks = {
|
|
55666
|
-
chunkHash: new SyncHook([
|
|
55834
|
+
chunkHash: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
55667
55835
|
'chunk',
|
|
55668
55836
|
'hash'
|
|
55669
55837
|
])
|
|
@@ -55673,9 +55841,9 @@ class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
|
55673
55841
|
return hooks;
|
|
55674
55842
|
}
|
|
55675
55843
|
}
|
|
55676
|
-
const JsLoaderRspackPlugin = base_create(
|
|
55677
|
-
const JsonModulesPlugin = base_create(
|
|
55678
|
-
const LibManifestPlugin = base_create(
|
|
55844
|
+
const JsLoaderRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.JsLoaderRspackPlugin, (compiler)=>runLoaders.bind(null, compiler), 'thisCompilation');
|
|
55845
|
+
const JsonModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.JsonModulesPlugin, ()=>{}, 'compilation');
|
|
55846
|
+
const LibManifestPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.LibManifestPlugin, (options)=>{
|
|
55679
55847
|
const { context, entryOnly, format, name, path, type } = options;
|
|
55680
55848
|
return {
|
|
55681
55849
|
context,
|
|
@@ -55686,7 +55854,7 @@ const LibManifestPlugin = base_create(BuiltinPluginName.LibManifestPlugin, (opti
|
|
|
55686
55854
|
type
|
|
55687
55855
|
};
|
|
55688
55856
|
});
|
|
55689
|
-
const LightningCssMinimizerRspackPlugin = base_create(
|
|
55857
|
+
const LightningCssMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.LightningCssMinimizerRspackPlugin, function(options) {
|
|
55690
55858
|
const { include, exclude, nonStandard, pseudoClasses, drafts } = options?.minimizerOptions ?? {};
|
|
55691
55859
|
let targets = [
|
|
55692
55860
|
'fully supports es6'
|
|
@@ -55719,13 +55887,13 @@ const LightningCssMinimizerRspackPlugin = base_create(BuiltinPluginName.Lightnin
|
|
|
55719
55887
|
}
|
|
55720
55888
|
};
|
|
55721
55889
|
});
|
|
55722
|
-
const LimitChunkCountPlugin = base_create(
|
|
55890
|
+
const LimitChunkCountPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.LimitChunkCountPlugin, (options)=>options);
|
|
55723
55891
|
const lazyCompilationMiddleware = ()=>{
|
|
55724
55892
|
throw new Error('lazy compilation middleware is not supported in browser');
|
|
55725
55893
|
};
|
|
55726
55894
|
class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
55727
55895
|
deterministic;
|
|
55728
|
-
name =
|
|
55896
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.MangleExportsPlugin;
|
|
55729
55897
|
affectedHooks = 'compilation';
|
|
55730
55898
|
constructor(deterministic){
|
|
55731
55899
|
super(), this.deterministic = deterministic;
|
|
@@ -55734,45 +55902,45 @@ class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
|
55734
55902
|
return createBuiltinPlugin(this.name, this.deterministic);
|
|
55735
55903
|
}
|
|
55736
55904
|
}
|
|
55737
|
-
const MergeDuplicateChunksPlugin = base_create(
|
|
55738
|
-
const ModuleChunkFormatPlugin = base_create(
|
|
55905
|
+
const MergeDuplicateChunksPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.MergeDuplicateChunksPlugin, ()=>{});
|
|
55906
|
+
const ModuleChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleChunkFormatPlugin, ()=>{});
|
|
55739
55907
|
class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
55740
|
-
name =
|
|
55908
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleConcatenationPlugin;
|
|
55741
55909
|
affectedHooks = 'compilation';
|
|
55742
55910
|
raw() {
|
|
55743
55911
|
return createBuiltinPlugin(this.name, void 0);
|
|
55744
55912
|
}
|
|
55745
55913
|
}
|
|
55746
|
-
const ModuleInfoHeaderPlugin = base_create(
|
|
55747
|
-
const NamedChunkIdsPlugin = base_create(
|
|
55748
|
-
const NamedModuleIdsPlugin = base_create(
|
|
55914
|
+
const ModuleInfoHeaderPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleInfoHeaderPlugin, (verbose)=>verbose, 'compilation');
|
|
55915
|
+
const NamedChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedChunkIdsPlugin, ()=>{}, 'compilation');
|
|
55916
|
+
const NamedModuleIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedModuleIdsPlugin, ()=>{}, 'compilation');
|
|
55749
55917
|
class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
55750
|
-
name =
|
|
55918
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
55751
55919
|
affectedHooks = 'compilation';
|
|
55752
55920
|
raw() {
|
|
55753
55921
|
return createBuiltinPlugin(this.name, void 0);
|
|
55754
55922
|
}
|
|
55755
55923
|
}
|
|
55756
55924
|
class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
55757
|
-
name =
|
|
55925
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
55758
55926
|
affectedHooks = 'compilation';
|
|
55759
55927
|
raw() {
|
|
55760
55928
|
return createBuiltinPlugin(this.name, void 0);
|
|
55761
55929
|
}
|
|
55762
55930
|
}
|
|
55763
|
-
const NodeTargetPlugin = base_create(
|
|
55764
|
-
const NoEmitOnErrorsPlugin = base_create(
|
|
55765
|
-
const NormalModuleReplacementPlugin = base_create(
|
|
55931
|
+
const NodeTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NodeTargetPlugin, ()=>void 0);
|
|
55932
|
+
const NoEmitOnErrorsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NoEmitOnErrorsPlugin, ()=>void 0);
|
|
55933
|
+
const NormalModuleReplacementPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NormalModuleReplacementPlugin, (resourceRegExp, newResource)=>({
|
|
55766
55934
|
resourceRegExp,
|
|
55767
55935
|
newResource: 'function' == typeof newResource ? (data)=>{
|
|
55768
55936
|
newResource(data);
|
|
55769
55937
|
return data;
|
|
55770
55938
|
} : newResource
|
|
55771
55939
|
}));
|
|
55772
|
-
const OccurrenceChunkIdsPlugin = base_create(
|
|
55940
|
+
const OccurrenceChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.OccurrenceChunkIdsPlugin, (options)=>({
|
|
55773
55941
|
...options
|
|
55774
55942
|
}), 'compilation');
|
|
55775
|
-
const ProgressPlugin = base_create(
|
|
55943
|
+
const ProgressPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ProgressPlugin, (progress = {})=>{
|
|
55776
55944
|
if ('function' == typeof progress) return {
|
|
55777
55945
|
handler: (percentage, msg, info)=>{
|
|
55778
55946
|
progress(percentage, msg, info);
|
|
@@ -55780,7 +55948,7 @@ const ProgressPlugin = base_create(BuiltinPluginName.ProgressPlugin, (progress =
|
|
|
55780
55948
|
};
|
|
55781
55949
|
return progress;
|
|
55782
55950
|
});
|
|
55783
|
-
const ProvidePlugin = base_create(
|
|
55951
|
+
const ProvidePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ProvidePlugin, (provide)=>{
|
|
55784
55952
|
const entries = Object.entries(provide).map(([key, value])=>{
|
|
55785
55953
|
if ('string' == typeof value) value = [
|
|
55786
55954
|
value
|
|
@@ -55792,9 +55960,9 @@ const ProvidePlugin = base_create(BuiltinPluginName.ProvidePlugin, (provide)=>{
|
|
|
55792
55960
|
});
|
|
55793
55961
|
return Object.fromEntries(entries);
|
|
55794
55962
|
}, 'compilation');
|
|
55795
|
-
const RealContentHashPlugin = base_create(
|
|
55796
|
-
const RemoveEmptyChunksPlugin = base_create(
|
|
55797
|
-
const RsdoctorPluginImpl = base_create(
|
|
55963
|
+
const RealContentHashPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RealContentHashPlugin, ()=>{}, 'compilation');
|
|
55964
|
+
const RemoveEmptyChunksPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RemoveEmptyChunksPlugin, ()=>{}, 'compilation');
|
|
55965
|
+
const RsdoctorPluginImpl = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RsdoctorPlugin, function(c = {
|
|
55798
55966
|
moduleGraphFeatures: true,
|
|
55799
55967
|
chunkGraphFeatures: true
|
|
55800
55968
|
}) {
|
|
@@ -55811,19 +55979,19 @@ RsdoctorPlugin.getCompilationHooks = (compilation)=>{
|
|
|
55811
55979
|
let hooks = RsdoctorPlugin_compilationHooksMap.get(compilation);
|
|
55812
55980
|
if (void 0 === hooks) {
|
|
55813
55981
|
hooks = {
|
|
55814
|
-
moduleGraph: new AsyncSeriesBailHook([
|
|
55982
|
+
moduleGraph: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55815
55983
|
'moduleGraph'
|
|
55816
55984
|
]),
|
|
55817
|
-
chunkGraph: new AsyncSeriesBailHook([
|
|
55985
|
+
chunkGraph: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55818
55986
|
'chunkGraph'
|
|
55819
55987
|
]),
|
|
55820
|
-
moduleIds: new AsyncSeriesBailHook([
|
|
55988
|
+
moduleIds: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55821
55989
|
'moduleIdsPatch'
|
|
55822
55990
|
]),
|
|
55823
|
-
moduleSources: new AsyncSeriesBailHook([
|
|
55991
|
+
moduleSources: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55824
55992
|
'moduleSourcesPatch'
|
|
55825
55993
|
]),
|
|
55826
|
-
assets: new AsyncSeriesBailHook([
|
|
55994
|
+
assets: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55827
55995
|
'assetPatch'
|
|
55828
55996
|
])
|
|
55829
55997
|
};
|
|
@@ -55868,9 +56036,9 @@ const createRsdoctorPluginHooksRegisters = (getCompiler, createTap)=>({
|
|
|
55868
56036
|
};
|
|
55869
56037
|
})
|
|
55870
56038
|
});
|
|
55871
|
-
const RslibPlugin = base_create(
|
|
55872
|
-
const RstestPlugin = base_create(
|
|
55873
|
-
const RuntimeChunkPlugin = base_create(
|
|
56039
|
+
const RslibPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RslibPlugin, (rslib)=>rslib);
|
|
56040
|
+
const RstestPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RstestPlugin, (rstest)=>rstest);
|
|
56041
|
+
const RuntimeChunkPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RuntimeChunkPlugin, (options)=>options, 'thisCompilation');
|
|
55874
56042
|
const RuntimePluginImpl = base_create(rspack_wasi_browser.BuiltinPluginName.RuntimePlugin, ()=>{}, 'compilation');
|
|
55875
56043
|
const RuntimePlugin = RuntimePluginImpl;
|
|
55876
56044
|
const RuntimePlugin_compilationHooksMap = new WeakMap();
|
|
@@ -55879,19 +56047,19 @@ RuntimePlugin.getCompilationHooks = (compilation)=>{
|
|
|
55879
56047
|
let hooks = RuntimePlugin_compilationHooksMap.get(compilation);
|
|
55880
56048
|
if (void 0 === hooks) {
|
|
55881
56049
|
hooks = {
|
|
55882
|
-
createScript: new SyncWaterfallHook([
|
|
56050
|
+
createScript: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
55883
56051
|
'code',
|
|
55884
56052
|
'chunk'
|
|
55885
56053
|
]),
|
|
55886
|
-
createLink: new SyncWaterfallHook([
|
|
56054
|
+
createLink: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
55887
56055
|
'code',
|
|
55888
56056
|
'chunk'
|
|
55889
56057
|
]),
|
|
55890
|
-
linkPreload: new SyncWaterfallHook([
|
|
56058
|
+
linkPreload: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
55891
56059
|
'code',
|
|
55892
56060
|
'chunk'
|
|
55893
56061
|
]),
|
|
55894
|
-
linkPrefetch: new SyncWaterfallHook([
|
|
56062
|
+
linkPrefetch: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
55895
56063
|
'code',
|
|
55896
56064
|
'chunk'
|
|
55897
56065
|
])
|
|
@@ -56038,20 +56206,20 @@ const rsc = {
|
|
|
56038
56206
|
ssr: 'server-side-rendering'
|
|
56039
56207
|
}
|
|
56040
56208
|
};
|
|
56041
|
-
const SideEffectsFlagPlugin = base_create(
|
|
56042
|
-
const SizeLimitsPlugin = base_create(
|
|
56209
|
+
const SideEffectsFlagPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SideEffectsFlagPlugin, ()=>{}, 'compilation');
|
|
56210
|
+
const SizeLimitsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SizeLimitsPlugin, (options)=>{
|
|
56043
56211
|
const hints = false === options.hints ? void 0 : options.hints;
|
|
56044
56212
|
return {
|
|
56045
56213
|
...options,
|
|
56046
56214
|
hints
|
|
56047
56215
|
};
|
|
56048
56216
|
});
|
|
56049
|
-
const SourceMapDevToolPlugin = base_create(
|
|
56217
|
+
const SourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
56050
56218
|
var SubresourceIntegrityPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
56051
56219
|
const SubresourceIntegrityPlugin_PLUGIN_NAME = 'SubresourceIntegrityPlugin';
|
|
56052
56220
|
const NATIVE_HTML_PLUGIN = 'HtmlRspackPlugin';
|
|
56053
56221
|
const HTTP_PROTOCOL_REGEX = /^https?:/;
|
|
56054
|
-
const NativeSubresourceIntegrityPlugin = base_create(
|
|
56222
|
+
const NativeSubresourceIntegrityPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SubresourceIntegrityPlugin, function(options) {
|
|
56055
56223
|
let htmlPlugin = 'Disabled';
|
|
56056
56224
|
if (options.htmlPlugin === NATIVE_HTML_PLUGIN) htmlPlugin = 'Native';
|
|
56057
56225
|
else if ('string' == typeof options.htmlPlugin) htmlPlugin = 'JavaScript';
|
|
@@ -56247,7 +56415,7 @@ function getRawExtractCommentsOptions(extractComments) {
|
|
|
56247
56415
|
return res;
|
|
56248
56416
|
}
|
|
56249
56417
|
}
|
|
56250
|
-
const SwcJsMinimizerRspackPlugin = base_create(
|
|
56418
|
+
const SwcJsMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SwcJsMinimizerRspackPlugin, function(options) {
|
|
56251
56419
|
let compress = options?.minimizerOptions?.compress ?? true;
|
|
56252
56420
|
const mangle = options?.minimizerOptions?.mangle ?? true;
|
|
56253
56421
|
const ecma = options?.minimizerOptions?.ecma ?? (this.target?.esVersion && this.target.esVersion > 2022 ? 2022 : this.target.esVersion) ?? 5;
|
|
@@ -56277,9 +56445,9 @@ const SwcJsMinimizerRspackPlugin = base_create(BuiltinPluginName.SwcJsMinimizerR
|
|
|
56277
56445
|
}
|
|
56278
56446
|
};
|
|
56279
56447
|
}, 'compilation');
|
|
56280
|
-
const URLPlugin = base_create(
|
|
56448
|
+
const URLPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.URLPlugin, ()=>{}, 'compilation');
|
|
56281
56449
|
class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
|
|
56282
|
-
name =
|
|
56450
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
56283
56451
|
raw(compiler) {
|
|
56284
56452
|
compiler.options.output.chunkLoading = "import-scripts";
|
|
56285
56453
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -56290,7 +56458,7 @@ class WorkerPlugin extends RspackBuiltinPlugin {
|
|
|
56290
56458
|
wasmLoading;
|
|
56291
56459
|
module;
|
|
56292
56460
|
workerPublicPath;
|
|
56293
|
-
name =
|
|
56461
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.WorkerPlugin;
|
|
56294
56462
|
affectedHooks = 'compilation';
|
|
56295
56463
|
constructor(chunkLoading, wasmLoading, module, workerPublicPath){
|
|
56296
56464
|
super(), this.chunkLoading = chunkLoading, this.wasmLoading = wasmLoading, this.module = module, this.workerPublicPath = workerPublicPath;
|
|
@@ -56305,10 +56473,10 @@ class ContextModuleFactory {
|
|
|
56305
56473
|
hooks;
|
|
56306
56474
|
constructor(){
|
|
56307
56475
|
this.hooks = {
|
|
56308
|
-
beforeResolve: new AsyncSeriesWaterfallHook([
|
|
56476
|
+
beforeResolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
56309
56477
|
'resolveData'
|
|
56310
56478
|
]),
|
|
56311
|
-
afterResolve: new AsyncSeriesWaterfallHook([
|
|
56479
|
+
afterResolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
56312
56480
|
'resolveData'
|
|
56313
56481
|
])
|
|
56314
56482
|
};
|
|
@@ -57748,6 +57916,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { deferImport, outp
|
|
|
57748
57916
|
D(parserOptions, 'typeReexportsPresence', 'no-tolerant');
|
|
57749
57917
|
D(parserOptions, 'jsx', false);
|
|
57750
57918
|
D(parserOptions, 'deferImport', deferImport);
|
|
57919
|
+
D(parserOptions, 'importMetaResolve', false);
|
|
57751
57920
|
};
|
|
57752
57921
|
const applyCssGeneratorOptionsDefaults = (generatorOptions, { targetProperties })=>{
|
|
57753
57922
|
D(generatorOptions, 'exportsOnly', !targetProperties || false === targetProperties.document);
|
|
@@ -58127,7 +58296,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
58127
58296
|
});
|
|
58128
58297
|
D(output, 'bundlerInfo', {});
|
|
58129
58298
|
if ('object' == typeof output.bundlerInfo) {
|
|
58130
|
-
D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
58299
|
+
D(output.bundlerInfo, 'version', "2.0.0-beta.9");
|
|
58131
58300
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
58132
58301
|
D(output.bundlerInfo, 'force', !output.library);
|
|
58133
58302
|
}
|
|
@@ -59625,22 +59794,22 @@ class NormalModuleFactory {
|
|
|
59625
59794
|
resolverFactory;
|
|
59626
59795
|
constructor(resolverFactory){
|
|
59627
59796
|
this.hooks = {
|
|
59628
|
-
resolveForScheme: new HookMap(()=>new AsyncSeriesBailHook([
|
|
59797
|
+
resolveForScheme: new __rspack_external__rspack_lite_tapable_c6bdf810.HookMap(()=>new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59629
59798
|
'resourceData'
|
|
59630
59799
|
])),
|
|
59631
|
-
beforeResolve: new AsyncSeriesBailHook([
|
|
59800
|
+
beforeResolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59632
59801
|
'resolveData'
|
|
59633
59802
|
]),
|
|
59634
|
-
factorize: new AsyncSeriesBailHook([
|
|
59803
|
+
factorize: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59635
59804
|
'resolveData'
|
|
59636
59805
|
]),
|
|
59637
|
-
resolve: new AsyncSeriesBailHook([
|
|
59806
|
+
resolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59638
59807
|
'resolveData'
|
|
59639
59808
|
]),
|
|
59640
|
-
afterResolve: new AsyncSeriesBailHook([
|
|
59809
|
+
afterResolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59641
59810
|
'resolveData'
|
|
59642
59811
|
]),
|
|
59643
|
-
createModule: new AsyncSeriesBailHook([
|
|
59812
|
+
createModule: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59644
59813
|
'createData',
|
|
59645
59814
|
'resolveData'
|
|
59646
59815
|
])
|
|
@@ -59784,7 +59953,7 @@ class MultiStats {
|
|
|
59784
59953
|
return obj;
|
|
59785
59954
|
});
|
|
59786
59955
|
if (childOptions.version) {
|
|
59787
|
-
obj.rspackVersion = "2.0.0-beta.
|
|
59956
|
+
obj.rspackVersion = "2.0.0-beta.9";
|
|
59788
59957
|
obj.version = "5.75.0";
|
|
59789
59958
|
}
|
|
59790
59959
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -59959,16 +60128,16 @@ class MultiCompiler {
|
|
|
59959
60128
|
return compiler;
|
|
59960
60129
|
});
|
|
59961
60130
|
this.hooks = {
|
|
59962
|
-
done: new SyncHook([
|
|
60131
|
+
done: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
59963
60132
|
'stats'
|
|
59964
60133
|
]),
|
|
59965
|
-
invalid: new MultiHook(normalizedCompilers.map((c)=>c.hooks.invalid)),
|
|
59966
|
-
run: new MultiHook(normalizedCompilers.map((c)=>c.hooks.run)),
|
|
59967
|
-
watchClose: new SyncHook([]),
|
|
59968
|
-
watchRun: new MultiHook(normalizedCompilers.map((c)=>c.hooks.watchRun)),
|
|
59969
|
-
beforeCompile: new MultiHook(normalizedCompilers.map((c)=>c.hooks.beforeCompile)),
|
|
59970
|
-
shutdown: new MultiHook(normalizedCompilers.map((c)=>c.hooks.shutdown)),
|
|
59971
|
-
infrastructureLog: new MultiHook(normalizedCompilers.map((c)=>c.hooks.infrastructureLog))
|
|
60134
|
+
invalid: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.invalid)),
|
|
60135
|
+
run: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.run)),
|
|
60136
|
+
watchClose: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
60137
|
+
watchRun: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.watchRun)),
|
|
60138
|
+
beforeCompile: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.beforeCompile)),
|
|
60139
|
+
shutdown: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.shutdown)),
|
|
60140
|
+
infrastructureLog: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.infrastructureLog))
|
|
59972
60141
|
};
|
|
59973
60142
|
this.compilers = normalizedCompilers;
|
|
59974
60143
|
this._options = {
|
|
@@ -60644,7 +60813,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
60644
60813
|
}
|
|
60645
60814
|
};
|
|
60646
60815
|
}
|
|
60647
|
-
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.
|
|
60816
|
+
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
60648
60817
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
60649
60818
|
class NodeEnvironmentPlugin {
|
|
60650
60819
|
options;
|
|
@@ -61470,7 +61639,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61470
61639
|
},
|
|
61471
61640
|
version: (object)=>{
|
|
61472
61641
|
object.version = "5.75.0";
|
|
61473
|
-
object.rspackVersion = "2.0.0-beta.
|
|
61642
|
+
object.rspackVersion = "2.0.0-beta.9";
|
|
61474
61643
|
},
|
|
61475
61644
|
env: (object, _compilation, _context, { _env })=>{
|
|
61476
61645
|
object.env = _env;
|
|
@@ -63055,17 +63224,20 @@ class RspackOptionsApply {
|
|
|
63055
63224
|
if (options.optimization.mangleExports) new MangleExportsPlugin('size' !== options.optimization.mangleExports).apply(compiler);
|
|
63056
63225
|
let enableLibSplitChunks = false;
|
|
63057
63226
|
if (options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) {
|
|
63058
|
-
|
|
63059
|
-
|
|
63060
|
-
if (options.output.library?.preserveModules &&
|
|
63061
|
-
|
|
63062
|
-
|
|
63063
|
-
|
|
63064
|
-
|
|
63065
|
-
|
|
63066
|
-
|
|
63067
|
-
|
|
63068
|
-
|
|
63227
|
+
const hasModernModule = options.output.enabledLibraryTypes.includes('modern-module');
|
|
63228
|
+
const hasNonModernModule = options.output.enabledLibraryTypes.some((t)=>'modern-module' !== t);
|
|
63229
|
+
if (options.output.library?.preserveModules && !hasModernModule) {
|
|
63230
|
+
const logger = compiler.getInfrastructureLogger('rspack.RspackOptionsApply');
|
|
63231
|
+
logger.warn('`preserveModules` only works for `modern-module` library type and will be ignored for other library types.');
|
|
63232
|
+
}
|
|
63233
|
+
if (hasModernModule && hasNonModernModule) {
|
|
63234
|
+
const logger = compiler.getInfrastructureLogger('rspack.RspackOptionsApply');
|
|
63235
|
+
logger.warn('`modern-module` is used together with other library types. ESM format has impact on chunkLoading and chunkFormat, which may not be compatible with other library types.');
|
|
63236
|
+
}
|
|
63237
|
+
for (const type of options.output.enabledLibraryTypes){
|
|
63238
|
+
if ('modern-module' === type) enableLibSplitChunks = true;
|
|
63239
|
+
new EnableLibraryPlugin(type).apply(compiler);
|
|
63240
|
+
}
|
|
63069
63241
|
}
|
|
63070
63242
|
if (!enableLibSplitChunks && options.optimization.splitChunks) new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler);
|
|
63071
63243
|
if (options.optimization.removeEmptyChunks) new RemoveEmptyChunksPlugin().apply(compiler);
|
|
@@ -64267,91 +64439,91 @@ class Compiler {
|
|
|
64267
64439
|
this.#moduleExecutionResultsMap = new Map();
|
|
64268
64440
|
this.#ruleSet = new RuleSetCompiler();
|
|
64269
64441
|
this.hooks = {
|
|
64270
|
-
initialize: new SyncHook([]),
|
|
64271
|
-
shouldEmit: new SyncBailHook([
|
|
64442
|
+
initialize: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
64443
|
+
shouldEmit: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
64272
64444
|
'compilation'
|
|
64273
64445
|
]),
|
|
64274
|
-
done: new AsyncSeriesHook([
|
|
64446
|
+
done: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64275
64447
|
'stats'
|
|
64276
64448
|
]),
|
|
64277
|
-
afterDone: new SyncHook([
|
|
64449
|
+
afterDone: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64278
64450
|
'stats'
|
|
64279
64451
|
]),
|
|
64280
|
-
beforeRun: new AsyncSeriesHook([
|
|
64452
|
+
beforeRun: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64281
64453
|
'compiler'
|
|
64282
64454
|
]),
|
|
64283
|
-
run: new AsyncSeriesHook([
|
|
64455
|
+
run: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64284
64456
|
'compiler'
|
|
64285
64457
|
]),
|
|
64286
|
-
emit: new AsyncSeriesHook([
|
|
64458
|
+
emit: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64287
64459
|
'compilation'
|
|
64288
64460
|
]),
|
|
64289
|
-
assetEmitted: new AsyncSeriesHook([
|
|
64461
|
+
assetEmitted: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64290
64462
|
'file',
|
|
64291
64463
|
'info'
|
|
64292
64464
|
]),
|
|
64293
|
-
afterEmit: new AsyncSeriesHook([
|
|
64465
|
+
afterEmit: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64294
64466
|
'compilation'
|
|
64295
64467
|
]),
|
|
64296
|
-
thisCompilation: new SyncHook([
|
|
64468
|
+
thisCompilation: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64297
64469
|
'compilation',
|
|
64298
64470
|
'params'
|
|
64299
64471
|
]),
|
|
64300
|
-
compilation: new SyncHook([
|
|
64472
|
+
compilation: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64301
64473
|
'compilation',
|
|
64302
64474
|
'params'
|
|
64303
64475
|
]),
|
|
64304
|
-
invalid: new SyncHook([
|
|
64476
|
+
invalid: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64305
64477
|
'filename',
|
|
64306
64478
|
'changeTime'
|
|
64307
64479
|
]),
|
|
64308
|
-
compile: new SyncHook([
|
|
64480
|
+
compile: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64309
64481
|
'params'
|
|
64310
64482
|
]),
|
|
64311
|
-
infrastructureLog: new SyncBailHook([
|
|
64483
|
+
infrastructureLog: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
64312
64484
|
'origin',
|
|
64313
64485
|
'type',
|
|
64314
64486
|
'args'
|
|
64315
64487
|
]),
|
|
64316
|
-
failed: new SyncHook([
|
|
64488
|
+
failed: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64317
64489
|
'error'
|
|
64318
64490
|
]),
|
|
64319
|
-
shutdown: new AsyncSeriesHook([]),
|
|
64320
|
-
normalModuleFactory: new SyncHook([
|
|
64491
|
+
shutdown: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([]),
|
|
64492
|
+
normalModuleFactory: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64321
64493
|
'normalModuleFactory'
|
|
64322
64494
|
]),
|
|
64323
|
-
contextModuleFactory: new SyncHook([
|
|
64495
|
+
contextModuleFactory: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64324
64496
|
'contextModuleFactory'
|
|
64325
64497
|
]),
|
|
64326
|
-
watchRun: new AsyncSeriesHook([
|
|
64498
|
+
watchRun: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64327
64499
|
'compiler'
|
|
64328
64500
|
]),
|
|
64329
|
-
watchClose: new SyncHook([]),
|
|
64330
|
-
environment: new SyncHook([]),
|
|
64331
|
-
afterEnvironment: new SyncHook([]),
|
|
64332
|
-
afterPlugins: new SyncHook([
|
|
64501
|
+
watchClose: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
64502
|
+
environment: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
64503
|
+
afterEnvironment: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
64504
|
+
afterPlugins: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64333
64505
|
'compiler'
|
|
64334
64506
|
]),
|
|
64335
|
-
afterResolvers: new SyncHook([
|
|
64507
|
+
afterResolvers: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64336
64508
|
'compiler'
|
|
64337
64509
|
]),
|
|
64338
|
-
make: new AsyncParallelHook([
|
|
64510
|
+
make: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncParallelHook([
|
|
64339
64511
|
'compilation'
|
|
64340
64512
|
]),
|
|
64341
|
-
beforeCompile: new AsyncSeriesHook([
|
|
64513
|
+
beforeCompile: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64342
64514
|
'params'
|
|
64343
64515
|
]),
|
|
64344
|
-
afterCompile: new AsyncSeriesHook([
|
|
64516
|
+
afterCompile: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64345
64517
|
'compilation'
|
|
64346
64518
|
]),
|
|
64347
|
-
finishMake: new AsyncSeriesHook([
|
|
64519
|
+
finishMake: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64348
64520
|
'compilation'
|
|
64349
64521
|
]),
|
|
64350
|
-
entryOption: new SyncBailHook([
|
|
64522
|
+
entryOption: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
64351
64523
|
'context',
|
|
64352
64524
|
'entry'
|
|
64353
64525
|
]),
|
|
64354
|
-
additionalPass: new AsyncSeriesHook([])
|
|
64526
|
+
additionalPass: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([])
|
|
64355
64527
|
};
|
|
64356
64528
|
const availableCompilerHooks = Object.keys(this.hooks);
|
|
64357
64529
|
this.hooks = new Proxy(this.hooks, {
|
|
@@ -64647,8 +64819,9 @@ class Compiler {
|
|
|
64647
64819
|
this.hooks.shutdown.callAsync((err)=>{
|
|
64648
64820
|
if (err) return callback(err);
|
|
64649
64821
|
this.cache.shutdown(()=>{
|
|
64650
|
-
this.#instance?.close();
|
|
64651
|
-
callback();
|
|
64822
|
+
const closePromise = this.#instance?.close();
|
|
64823
|
+
if (closePromise) closePromise.then(()=>callback(), callback);
|
|
64824
|
+
else callback();
|
|
64652
64825
|
});
|
|
64653
64826
|
});
|
|
64654
64827
|
}
|
|
@@ -64709,7 +64882,7 @@ class Compiler {
|
|
|
64709
64882
|
const rawOptions = getRawOptions(options, this);
|
|
64710
64883
|
rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
64711
64884
|
rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
64712
|
-
const instanceBinding = __webpack_require__("@rspack/binding?
|
|
64885
|
+
const instanceBinding = __webpack_require__("@rspack/binding?c40c");
|
|
64713
64886
|
this.#registers = this.#createHooksRegisters();
|
|
64714
64887
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
64715
64888
|
try {
|
|
@@ -64772,9 +64945,9 @@ class Compiler {
|
|
|
64772
64945
|
const hook = getHook();
|
|
64773
64946
|
if (!hook.isUsed()) return [];
|
|
64774
64947
|
const breakpoints = [
|
|
64775
|
-
minStage,
|
|
64948
|
+
__rspack_external__rspack_lite_tapable_c6bdf810.minStage,
|
|
64776
64949
|
...stages,
|
|
64777
|
-
maxStage
|
|
64950
|
+
__rspack_external__rspack_lite_tapable_c6bdf810.maxStage
|
|
64778
64951
|
];
|
|
64779
64952
|
const jsTaps = [];
|
|
64780
64953
|
for(let i = 0; i < breakpoints.length - 1; i++){
|
|
@@ -64787,7 +64960,7 @@ class Compiler {
|
|
|
64787
64960
|
const queried = hook.queryStageRange(stageRange);
|
|
64788
64961
|
if (queried.isUsed()) jsTaps.push({
|
|
64789
64962
|
function: createTap(queried),
|
|
64790
|
-
stage: safeStage(from + 1)
|
|
64963
|
+
stage: __rspack_external__rspack_lite_tapable_c6bdf810.safeStage(from + 1)
|
|
64791
64964
|
});
|
|
64792
64965
|
}
|
|
64793
64966
|
compiler.#decorateJsTaps(jsTaps);
|
|
@@ -64804,9 +64977,9 @@ class Compiler {
|
|
|
64804
64977
|
const map = getHookMap();
|
|
64805
64978
|
if (!map.isUsed()) return [];
|
|
64806
64979
|
const breakpoints = [
|
|
64807
|
-
minStage,
|
|
64980
|
+
__rspack_external__rspack_lite_tapable_c6bdf810.minStage,
|
|
64808
64981
|
...stages,
|
|
64809
|
-
maxStage
|
|
64982
|
+
__rspack_external__rspack_lite_tapable_c6bdf810.maxStage
|
|
64810
64983
|
];
|
|
64811
64984
|
const jsTaps = [];
|
|
64812
64985
|
for(let i = 0; i < breakpoints.length - 1; i++){
|
|
@@ -64819,7 +64992,7 @@ class Compiler {
|
|
|
64819
64992
|
const queried = map.queryStageRange(stageRange);
|
|
64820
64993
|
if (queried.isUsed()) jsTaps.push({
|
|
64821
64994
|
function: createTap(queried),
|
|
64822
|
-
stage: safeStage(from + 1)
|
|
64995
|
+
stage: __rspack_external__rspack_lite_tapable_c6bdf810.safeStage(from + 1)
|
|
64823
64996
|
});
|
|
64824
64997
|
}
|
|
64825
64998
|
compiler.#decorateJsTaps(jsTaps);
|
|
@@ -64937,7 +65110,7 @@ const matchObject = (obj, str)=>{
|
|
|
64937
65110
|
}
|
|
64938
65111
|
return true;
|
|
64939
65112
|
};
|
|
64940
|
-
const FlagAllModulesAsUsedPlugin = base_create(
|
|
65113
|
+
const FlagAllModulesAsUsedPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FlagAllModulesAsUsedPlugin, (explanation)=>({
|
|
64941
65114
|
explanation
|
|
64942
65115
|
}));
|
|
64943
65116
|
class DllPlugin {
|
|
@@ -65129,7 +65302,7 @@ function setSingleton(compiler) {
|
|
|
65129
65302
|
}
|
|
65130
65303
|
class ShareRuntimePlugin extends RspackBuiltinPlugin {
|
|
65131
65304
|
enhanced;
|
|
65132
|
-
name =
|
|
65305
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ShareRuntimePlugin;
|
|
65133
65306
|
constructor(enhanced = false){
|
|
65134
65307
|
super(), this.enhanced = enhanced;
|
|
65135
65308
|
}
|
|
@@ -65185,7 +65358,7 @@ function normalizeConsumeShareOptions(consumes, shareScope) {
|
|
|
65185
65358
|
}));
|
|
65186
65359
|
}
|
|
65187
65360
|
class ConsumeSharedPlugin extends RspackBuiltinPlugin {
|
|
65188
|
-
name =
|
|
65361
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ConsumeSharedPlugin;
|
|
65189
65362
|
_options;
|
|
65190
65363
|
constructor(options){
|
|
65191
65364
|
super();
|
|
@@ -65236,7 +65409,7 @@ function normalizeProvideShareOptions(options, shareScope, enhanced) {
|
|
|
65236
65409
|
});
|
|
65237
65410
|
}
|
|
65238
65411
|
class ProvideSharedPlugin extends RspackBuiltinPlugin {
|
|
65239
|
-
name =
|
|
65412
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ProvideSharedPlugin;
|
|
65240
65413
|
_provides;
|
|
65241
65414
|
_enhanced;
|
|
65242
65415
|
constructor(options){
|
|
@@ -65476,7 +65649,7 @@ function normalizeManifestOptions(mfConfig) {
|
|
|
65476
65649
|
};
|
|
65477
65650
|
}
|
|
65478
65651
|
class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
65479
|
-
name =
|
|
65652
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleFederationManifestPlugin;
|
|
65480
65653
|
rawOpts;
|
|
65481
65654
|
constructor(opts){
|
|
65482
65655
|
super();
|
|
@@ -65504,7 +65677,7 @@ class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
|
65504
65677
|
}
|
|
65505
65678
|
const SHARE_ENTRY_ASSET = 'collect-shared-entries.json';
|
|
65506
65679
|
class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
65507
|
-
name =
|
|
65680
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.CollectSharedEntryPlugin;
|
|
65508
65681
|
sharedOptions;
|
|
65509
65682
|
_collectedEntries;
|
|
65510
65683
|
constructor(options){
|
|
@@ -65551,7 +65724,7 @@ function assert(condition, msg) {
|
|
|
65551
65724
|
}
|
|
65552
65725
|
const HOT_UPDATE_SUFFIX = '.hot-update';
|
|
65553
65726
|
class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
65554
|
-
name =
|
|
65727
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedContainerPlugin;
|
|
65555
65728
|
filename = '';
|
|
65556
65729
|
_options;
|
|
65557
65730
|
_shareName;
|
|
@@ -65609,7 +65782,7 @@ class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
|
65609
65782
|
}
|
|
65610
65783
|
}
|
|
65611
65784
|
class SharedUsedExportsOptimizerPlugin extends RspackBuiltinPlugin {
|
|
65612
|
-
name =
|
|
65785
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedUsedExportsOptimizerPlugin;
|
|
65613
65786
|
sharedOptions;
|
|
65614
65787
|
injectTreeShakingUsedExports;
|
|
65615
65788
|
manifestOptions;
|
|
@@ -65934,7 +66107,7 @@ class TreeShakingSharedPlugin {
|
|
|
65934
66107
|
return this._independentSharePlugin?.buildAssets || {};
|
|
65935
66108
|
}
|
|
65936
66109
|
}
|
|
65937
|
-
const ModuleFederationRuntimePlugin = base_create(
|
|
66110
|
+
const ModuleFederationRuntimePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleFederationRuntimePlugin, (options = {})=>options);
|
|
65938
66111
|
class ModuleFederationPlugin {
|
|
65939
66112
|
_options;
|
|
65940
66113
|
_treeShakingSharedPlugin;
|
|
@@ -66117,7 +66290,7 @@ function getDefaultEntryRuntime(paths, options, compiler, treeShakingShareFallba
|
|
|
66117
66290
|
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${encodeURIComponent(content)}`;
|
|
66118
66291
|
}
|
|
66119
66292
|
class ContainerPlugin extends RspackBuiltinPlugin {
|
|
66120
|
-
name =
|
|
66293
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerPlugin;
|
|
66121
66294
|
_options;
|
|
66122
66295
|
constructor(options){
|
|
66123
66296
|
super();
|
|
@@ -66167,7 +66340,7 @@ class ContainerPlugin extends RspackBuiltinPlugin {
|
|
|
66167
66340
|
}
|
|
66168
66341
|
}
|
|
66169
66342
|
class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
66170
|
-
name =
|
|
66343
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerReferencePlugin;
|
|
66171
66344
|
_options;
|
|
66172
66345
|
constructor(options){
|
|
66173
66346
|
super();
|
|
@@ -66274,7 +66447,7 @@ function transformSync(source, options) {
|
|
|
66274
66447
|
const _options = JSON.stringify(options || {});
|
|
66275
66448
|
return rspack_wasi_browser.transformSync(source, _options);
|
|
66276
66449
|
}
|
|
66277
|
-
const exports_rspackVersion = "2.0.0-beta.
|
|
66450
|
+
const exports_rspackVersion = "2.0.0-beta.9";
|
|
66278
66451
|
const exports_version = "5.75.0";
|
|
66279
66452
|
const exports_WebpackError = Error;
|
|
66280
66453
|
const exports_config = {
|
|
@@ -66341,7 +66514,7 @@ const exports_experiments = {
|
|
|
66341
66514
|
cleanupGlobalTrace();
|
|
66342
66515
|
}
|
|
66343
66516
|
},
|
|
66344
|
-
RemoveDuplicateModulesPlugin:
|
|
66517
|
+
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin,
|
|
66345
66518
|
RsdoctorPlugin: RsdoctorPlugin,
|
|
66346
66519
|
RstestPlugin: RstestPlugin,
|
|
66347
66520
|
RslibPlugin: RslibPlugin,
|