@rspack-debug/browser 2.0.0-beta.7 → 2.0.0-beta.8
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/builtin-plugin/EsmNodeTargetPlugin.d.ts +9 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/config/types.d.ts +0 -2
- package/dist/index.js +435 -331
- package/dist/napi-binding.d.ts +14 -10
- package/dist/wasi-worker-browser.mjs +268 -159
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! LICENSE: index.js.LICENSE.txt */
|
|
2
2
|
import * as __rspack_external__rspack_wasi_browser_js_bd433424 from "./rspack.wasi-browser.js";
|
|
3
3
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
4
|
-
import rspack_wasi_browser, { AsyncDependenciesBlock, 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";
|
|
4
|
+
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";
|
|
5
5
|
import { AsyncParallelHook, AsyncSeriesBailHook, AsyncSeriesHook, AsyncSeriesWaterfallHook, HookMap, MultiHook, SyncBailHook, SyncHook, SyncWaterfallHook, maxStage, minStage, safeStage } from "@rspack/lite-tapable";
|
|
6
6
|
__webpack_require__.add({
|
|
7
7
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
@@ -14553,9 +14553,9 @@ __webpack_require__.add({
|
|
|
14553
14553
|
}
|
|
14554
14554
|
utils.intFromLE = intFromLE;
|
|
14555
14555
|
},
|
|
14556
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.20.
|
|
14556
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
14557
14557
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
14558
|
-
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.
|
|
14558
|
+
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/util/process-browser.js");
|
|
14559
14559
|
const dirname = (path)=>{
|
|
14560
14560
|
let idx = path.length - 1;
|
|
14561
14561
|
while(idx >= 0){
|
|
@@ -14849,7 +14849,7 @@ __webpack_require__.add({
|
|
|
14849
14849
|
}
|
|
14850
14850
|
};
|
|
14851
14851
|
},
|
|
14852
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.20.
|
|
14852
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/util/process-browser.js" (module) {
|
|
14853
14853
|
module.exports = {
|
|
14854
14854
|
versions: {},
|
|
14855
14855
|
nextTick (fn) {
|
|
@@ -35293,7 +35293,7 @@ __webpack_require__.add({
|
|
|
35293
35293
|
__webpack_require__.d(__webpack_exports__, {
|
|
35294
35294
|
Buffer: ()=>_napi_rs_wasm_runtime_fs__rspack_import_0.hp
|
|
35295
35295
|
});
|
|
35296
|
-
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.
|
|
35296
|
+
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
35297
|
},
|
|
35298
35298
|
"./src/browser/fs.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
35299
35299
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -35309,7 +35309,7 @@ __webpack_require__.add({
|
|
|
35309
35309
|
volume: ()=>volume,
|
|
35310
35310
|
watch: ()=>watch
|
|
35311
35311
|
});
|
|
35312
|
-
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.
|
|
35312
|
+
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");
|
|
35313
35313
|
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?91dc");
|
|
35314
35314
|
const fs = _rspack_binding__rspack_import_1.__fs;
|
|
35315
35315
|
const volume = _rspack_binding__rspack_import_1.__volume;
|
|
@@ -35337,7 +35337,7 @@ __webpack_require__.add({
|
|
|
35337
35337
|
return out;
|
|
35338
35338
|
};
|
|
35339
35339
|
},
|
|
35340
|
-
"../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.
|
|
35340
|
+
"../../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
35341
|
__webpack_require__.d(__webpack_exports__, {
|
|
35342
35342
|
hp: ()=>Buffer,
|
|
35343
35343
|
tO: ()=>memfs
|
|
@@ -36970,13 +36970,13 @@ __webpack_require__.add({
|
|
|
36970
36970
|
function requireBuffer$1() {
|
|
36971
36971
|
if (hasRequiredBuffer$1) return buffer$1;
|
|
36972
36972
|
hasRequiredBuffer$1 = 1;
|
|
36973
|
-
(function(exports) {
|
|
36974
|
-
Object.defineProperty(exports, "__esModule", {
|
|
36973
|
+
(function(exports$1) {
|
|
36974
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
36975
36975
|
value: true
|
|
36976
36976
|
});
|
|
36977
|
-
exports.Buffer = void 0;
|
|
36977
|
+
exports$1.Buffer = void 0;
|
|
36978
36978
|
var node_buffer_1 = require$$0$2;
|
|
36979
|
-
Object.defineProperty(exports, "Buffer", {
|
|
36979
|
+
Object.defineProperty(exports$1, "Buffer", {
|
|
36980
36980
|
enumerable: true,
|
|
36981
36981
|
get: function() {
|
|
36982
36982
|
return node_buffer_1.Buffer;
|
|
@@ -36989,13 +36989,13 @@ __webpack_require__.add({
|
|
|
36989
36989
|
function requireBuffer() {
|
|
36990
36990
|
if (hasRequiredBuffer) return buffer$2;
|
|
36991
36991
|
hasRequiredBuffer = 1;
|
|
36992
|
-
(function(exports) {
|
|
36993
|
-
Object.defineProperty(exports, "__esModule", {
|
|
36992
|
+
(function(exports$1) {
|
|
36993
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
36994
36994
|
value: true
|
|
36995
36995
|
});
|
|
36996
|
-
exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
|
|
36996
|
+
exports$1.bufferFrom = exports$1.bufferAllocUnsafe = exports$1.Buffer = void 0;
|
|
36997
36997
|
const buffer_1 = requireBuffer$1();
|
|
36998
|
-
Object.defineProperty(exports, "Buffer", {
|
|
36998
|
+
Object.defineProperty(exports$1, "Buffer", {
|
|
36999
36999
|
enumerable: true,
|
|
37000
37000
|
get: function() {
|
|
37001
37001
|
return buffer_1.Buffer;
|
|
@@ -37005,9 +37005,9 @@ __webpack_require__.add({
|
|
|
37005
37005
|
return new buffer_1.Buffer(arg0, ...args);
|
|
37006
37006
|
}
|
|
37007
37007
|
const bufferAllocUnsafe = buffer_1.Buffer.allocUnsafe || bufferV0P12Ponyfill;
|
|
37008
|
-
exports.bufferAllocUnsafe = bufferAllocUnsafe;
|
|
37008
|
+
exports$1.bufferAllocUnsafe = bufferAllocUnsafe;
|
|
37009
37009
|
const bufferFrom = buffer_1.Buffer.from || bufferV0P12Ponyfill;
|
|
37010
|
-
exports.bufferFrom = bufferFrom;
|
|
37010
|
+
exports$1.bufferFrom = bufferFrom;
|
|
37011
37011
|
})(buffer$2);
|
|
37012
37012
|
return buffer$2;
|
|
37013
37013
|
}
|
|
@@ -37096,13 +37096,13 @@ __webpack_require__.add({
|
|
|
37096
37096
|
function requireErrors$1() {
|
|
37097
37097
|
if (hasRequiredErrors$1) return errors$1;
|
|
37098
37098
|
hasRequiredErrors$1 = 1;
|
|
37099
|
-
(function(exports) {
|
|
37100
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37099
|
+
(function(exports$1) {
|
|
37100
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37101
37101
|
value: true
|
|
37102
37102
|
});
|
|
37103
|
-
exports.AssertionError = exports.RangeError = exports.TypeError = exports.Error = void 0;
|
|
37104
|
-
exports.message = message;
|
|
37105
|
-
exports.E = E;
|
|
37103
|
+
exports$1.AssertionError = exports$1.RangeError = exports$1.TypeError = exports$1.Error = void 0;
|
|
37104
|
+
exports$1.message = message;
|
|
37105
|
+
exports$1.E = E;
|
|
37106
37106
|
const util_1 = requireUtil$4();
|
|
37107
37107
|
const kCode = "u" < typeof Symbol ? '_kCode' : Symbol('code');
|
|
37108
37108
|
const messages = {};
|
|
@@ -37119,7 +37119,7 @@ __webpack_require__.add({
|
|
|
37119
37119
|
const g = "u" > typeof globalThis ? globalThis : commonjsGlobal;
|
|
37120
37120
|
class AssertionError extends g.Error {
|
|
37121
37121
|
constructor(options){
|
|
37122
|
-
if ('object' != typeof options || null === options) throw new exports.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
|
|
37122
|
+
if ('object' != typeof options || null === options) throw new exports$1.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'object');
|
|
37123
37123
|
if (options.message) super(options.message);
|
|
37124
37124
|
else super(`${(0, util_1.inspect)(options.actual).slice(0, 128)} ${options.operator} ${(0, util_1.inspect)(options.expected).slice(0, 128)}`);
|
|
37125
37125
|
this.generatedMessage = !options.message;
|
|
@@ -37128,14 +37128,14 @@ __webpack_require__.add({
|
|
|
37128
37128
|
this.actual = options.actual;
|
|
37129
37129
|
this.expected = options.expected;
|
|
37130
37130
|
this.operator = options.operator;
|
|
37131
|
-
exports.Error.captureStackTrace(this, options.stackStartFunction);
|
|
37131
|
+
exports$1.Error.captureStackTrace(this, options.stackStartFunction);
|
|
37132
37132
|
}
|
|
37133
37133
|
}
|
|
37134
|
-
exports.AssertionError = AssertionError;
|
|
37134
|
+
exports$1.AssertionError = AssertionError;
|
|
37135
37135
|
function message(key, args) {
|
|
37136
|
-
if ('string' != typeof key) throw new exports.Error('Error message key must be a string');
|
|
37136
|
+
if ('string' != typeof key) throw new exports$1.Error('Error message key must be a string');
|
|
37137
37137
|
const msg = messages[key];
|
|
37138
|
-
if (!msg) throw new exports.Error(`An invalid error message key was used: ${key}.`);
|
|
37138
|
+
if (!msg) throw new exports$1.Error(`An invalid error message key was used: ${key}.`);
|
|
37139
37139
|
let fmt;
|
|
37140
37140
|
if ('function' == typeof msg) fmt = msg;
|
|
37141
37141
|
else {
|
|
@@ -37148,9 +37148,9 @@ __webpack_require__.add({
|
|
|
37148
37148
|
function E(sym, val) {
|
|
37149
37149
|
messages[sym] = 'function' == typeof val ? val : String(val);
|
|
37150
37150
|
}
|
|
37151
|
-
exports.Error = makeNodeError(g.Error);
|
|
37152
|
-
exports.TypeError = makeNodeError(g.TypeError);
|
|
37153
|
-
exports.RangeError = makeNodeError(g.RangeError);
|
|
37151
|
+
exports$1.Error = makeNodeError(g.Error);
|
|
37152
|
+
exports$1.TypeError = makeNodeError(g.TypeError);
|
|
37153
|
+
exports$1.RangeError = makeNodeError(g.RangeError);
|
|
37154
37154
|
E('ERR_DIR_CLOSED', 'Directory handle was closed');
|
|
37155
37155
|
E('ERR_DIR_CONCURRENT_OPERATION', 'Cannot do synchronous work on directory handle with concurrent asynchronous operations');
|
|
37156
37156
|
E('ERR_INVALID_FILE_URL_HOST', 'File URL host must be "localhost" or empty on %s');
|
|
@@ -37165,21 +37165,21 @@ __webpack_require__.add({
|
|
|
37165
37165
|
function requireEncoding() {
|
|
37166
37166
|
if (hasRequiredEncoding) return encoding;
|
|
37167
37167
|
hasRequiredEncoding = 1;
|
|
37168
|
-
(function(exports) {
|
|
37169
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37168
|
+
(function(exports$1) {
|
|
37169
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37170
37170
|
value: true
|
|
37171
37171
|
});
|
|
37172
|
-
exports.ENCODING_UTF8 = void 0;
|
|
37173
|
-
exports.assertEncoding = assertEncoding;
|
|
37174
|
-
exports.strToEncoding = strToEncoding;
|
|
37172
|
+
exports$1.ENCODING_UTF8 = void 0;
|
|
37173
|
+
exports$1.assertEncoding = assertEncoding;
|
|
37174
|
+
exports$1.strToEncoding = strToEncoding;
|
|
37175
37175
|
const buffer_1 = requireBuffer();
|
|
37176
37176
|
const errors = requireErrors$1();
|
|
37177
|
-
exports.ENCODING_UTF8 = 'utf8';
|
|
37177
|
+
exports$1.ENCODING_UTF8 = 'utf8';
|
|
37178
37178
|
function assertEncoding(encoding) {
|
|
37179
37179
|
if (encoding && !buffer_1.Buffer.isEncoding(encoding)) throw new errors.TypeError('ERR_INVALID_OPT_VALUE_ENCODING', encoding);
|
|
37180
37180
|
}
|
|
37181
37181
|
function strToEncoding(str, encoding) {
|
|
37182
|
-
if (!encoding || encoding === exports.ENCODING_UTF8) return str;
|
|
37182
|
+
if (!encoding || encoding === exports$1.ENCODING_UTF8) return str;
|
|
37183
37183
|
if ('buffer' === encoding) return new buffer_1.Buffer(str);
|
|
37184
37184
|
return new buffer_1.Buffer(str).toString(encoding);
|
|
37185
37185
|
}
|
|
@@ -37713,61 +37713,61 @@ __webpack_require__.add({
|
|
|
37713
37713
|
function requirePath() {
|
|
37714
37714
|
if (hasRequiredPath) return path;
|
|
37715
37715
|
hasRequiredPath = 1;
|
|
37716
|
-
(function(exports) {
|
|
37717
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37716
|
+
(function(exports$1) {
|
|
37717
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
37718
37718
|
value: true
|
|
37719
37719
|
});
|
|
37720
|
-
exports.basename = exports.isAbsolute = exports.normalize = exports.dirname = exports.relative = exports.join = exports.posix = exports.sep = exports.resolve = void 0;
|
|
37720
|
+
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
37721
|
var node_path_1 = requirePathBrowserify();
|
|
37722
|
-
Object.defineProperty(exports, "resolve", {
|
|
37722
|
+
Object.defineProperty(exports$1, "resolve", {
|
|
37723
37723
|
enumerable: true,
|
|
37724
37724
|
get: function() {
|
|
37725
37725
|
return node_path_1.resolve;
|
|
37726
37726
|
}
|
|
37727
37727
|
});
|
|
37728
|
-
Object.defineProperty(exports, "sep", {
|
|
37728
|
+
Object.defineProperty(exports$1, "sep", {
|
|
37729
37729
|
enumerable: true,
|
|
37730
37730
|
get: function() {
|
|
37731
37731
|
return node_path_1.sep;
|
|
37732
37732
|
}
|
|
37733
37733
|
});
|
|
37734
|
-
Object.defineProperty(exports, "posix", {
|
|
37734
|
+
Object.defineProperty(exports$1, "posix", {
|
|
37735
37735
|
enumerable: true,
|
|
37736
37736
|
get: function() {
|
|
37737
37737
|
return node_path_1.posix;
|
|
37738
37738
|
}
|
|
37739
37739
|
});
|
|
37740
|
-
Object.defineProperty(exports, "join", {
|
|
37740
|
+
Object.defineProperty(exports$1, "join", {
|
|
37741
37741
|
enumerable: true,
|
|
37742
37742
|
get: function() {
|
|
37743
37743
|
return node_path_1.join;
|
|
37744
37744
|
}
|
|
37745
37745
|
});
|
|
37746
|
-
Object.defineProperty(exports, "relative", {
|
|
37746
|
+
Object.defineProperty(exports$1, "relative", {
|
|
37747
37747
|
enumerable: true,
|
|
37748
37748
|
get: function() {
|
|
37749
37749
|
return node_path_1.relative;
|
|
37750
37750
|
}
|
|
37751
37751
|
});
|
|
37752
|
-
Object.defineProperty(exports, "dirname", {
|
|
37752
|
+
Object.defineProperty(exports$1, "dirname", {
|
|
37753
37753
|
enumerable: true,
|
|
37754
37754
|
get: function() {
|
|
37755
37755
|
return node_path_1.dirname;
|
|
37756
37756
|
}
|
|
37757
37757
|
});
|
|
37758
|
-
Object.defineProperty(exports, "normalize", {
|
|
37758
|
+
Object.defineProperty(exports$1, "normalize", {
|
|
37759
37759
|
enumerable: true,
|
|
37760
37760
|
get: function() {
|
|
37761
37761
|
return node_path_1.normalize;
|
|
37762
37762
|
}
|
|
37763
37763
|
});
|
|
37764
|
-
Object.defineProperty(exports, "isAbsolute", {
|
|
37764
|
+
Object.defineProperty(exports$1, "isAbsolute", {
|
|
37765
37765
|
enumerable: true,
|
|
37766
37766
|
get: function() {
|
|
37767
37767
|
return node_path_1.isAbsolute;
|
|
37768
37768
|
}
|
|
37769
37769
|
});
|
|
37770
|
-
Object.defineProperty(exports, "basename", {
|
|
37770
|
+
Object.defineProperty(exports$1, "basename", {
|
|
37771
37771
|
enumerable: true,
|
|
37772
37772
|
get: function() {
|
|
37773
37773
|
return node_path_1.basename;
|
|
@@ -38447,6 +38447,7 @@ __webpack_require__.add({
|
|
|
38447
38447
|
const { S_IFMT, S_IFDIR, S_IFREG, S_IFLNK, S_IFCHR } = constants_1.constants;
|
|
38448
38448
|
const getuid = ()=>process_1.default.getuid?.() ?? 0;
|
|
38449
38449
|
const getgid = ()=>process_1.default.getgid?.() ?? 0;
|
|
38450
|
+
const EMPTY_BUFFER = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
38450
38451
|
let Node$1 = class {
|
|
38451
38452
|
constructor(ino, mode = 0o666){
|
|
38452
38453
|
this.changes = new fanout_1.FanOut();
|
|
@@ -38455,6 +38456,9 @@ __webpack_require__.add({
|
|
|
38455
38456
|
this._atime = new Date();
|
|
38456
38457
|
this._mtime = new Date();
|
|
38457
38458
|
this._ctime = new Date();
|
|
38459
|
+
this.buf = EMPTY_BUFFER;
|
|
38460
|
+
this.capacity = 0;
|
|
38461
|
+
this.size = 0;
|
|
38458
38462
|
this.rdev = 0;
|
|
38459
38463
|
this._nlink = 1;
|
|
38460
38464
|
this.mode = mode;
|
|
@@ -38512,20 +38516,26 @@ __webpack_require__.add({
|
|
|
38512
38516
|
return this.getBuffer().toString(encoding);
|
|
38513
38517
|
}
|
|
38514
38518
|
setString(str) {
|
|
38515
|
-
this.
|
|
38516
|
-
this.touch();
|
|
38519
|
+
this._setBuf((0, buffer_1.bufferFrom)(str, 'utf8'));
|
|
38517
38520
|
}
|
|
38518
38521
|
getBuffer() {
|
|
38519
38522
|
this.atime = new Date();
|
|
38520
38523
|
if (!this.buf) this.buf = (0, buffer_1.bufferAllocUnsafe)(0);
|
|
38521
|
-
return (0, buffer_1.bufferFrom)(this.buf);
|
|
38524
|
+
return (0, buffer_1.bufferFrom)(this.buf.subarray(0, this.size));
|
|
38522
38525
|
}
|
|
38523
38526
|
setBuffer(buf) {
|
|
38524
|
-
|
|
38527
|
+
const copy = (0, buffer_1.bufferFrom)(buf);
|
|
38528
|
+
this._setBuf(copy);
|
|
38529
|
+
}
|
|
38530
|
+
_setBuf(buf) {
|
|
38531
|
+
const size = buf.length;
|
|
38532
|
+
this.buf = buf;
|
|
38533
|
+
this.capacity = size;
|
|
38534
|
+
this.size = size;
|
|
38525
38535
|
this.touch();
|
|
38526
38536
|
}
|
|
38527
38537
|
getSize() {
|
|
38528
|
-
return this.
|
|
38538
|
+
return this.size;
|
|
38529
38539
|
}
|
|
38530
38540
|
setModeProperty(property) {
|
|
38531
38541
|
this.mode = property;
|
|
@@ -38547,38 +38557,56 @@ __webpack_require__.add({
|
|
|
38547
38557
|
this.symlink = symlink;
|
|
38548
38558
|
}
|
|
38549
38559
|
write(buf, off = 0, len = buf.length, pos = 0) {
|
|
38550
|
-
|
|
38551
|
-
if (
|
|
38552
|
-
|
|
38553
|
-
|
|
38560
|
+
const bufLength = buf.length;
|
|
38561
|
+
if (off + len > bufLength) len = bufLength - off;
|
|
38562
|
+
if (len <= 0) return 0;
|
|
38563
|
+
const requiredSize = pos + len;
|
|
38564
|
+
if (requiredSize > this.capacity) {
|
|
38565
|
+
let newCapacity = Math.max(2 * this.capacity, 64);
|
|
38566
|
+
while(newCapacity < requiredSize)newCapacity *= 2;
|
|
38567
|
+
const newBuf = (0, buffer_1.bufferAllocUnsafe)(newCapacity);
|
|
38568
|
+
if (this.size > 0) this.buf.copy(newBuf, 0, 0, this.size);
|
|
38554
38569
|
this.buf = newBuf;
|
|
38570
|
+
this.capacity = newCapacity;
|
|
38555
38571
|
}
|
|
38572
|
+
if (pos > this.size) this.buf.fill(0, this.size, pos);
|
|
38556
38573
|
buf.copy(this.buf, pos, off, off + len);
|
|
38574
|
+
if (requiredSize > this.size) this.size = requiredSize;
|
|
38557
38575
|
this.touch();
|
|
38558
38576
|
return len;
|
|
38559
38577
|
}
|
|
38560
38578
|
read(buf, off = 0, len = buf.byteLength, pos = 0) {
|
|
38561
38579
|
this.atime = new Date();
|
|
38562
|
-
if (
|
|
38563
|
-
if (pos >= this.buf.length) return 0;
|
|
38580
|
+
if (pos >= this.size) return 0;
|
|
38564
38581
|
let actualLen = len;
|
|
38565
38582
|
if (actualLen > buf.byteLength) actualLen = buf.byteLength;
|
|
38566
|
-
if (actualLen + pos > this.
|
|
38583
|
+
if (actualLen + pos > this.size) actualLen = this.size - pos;
|
|
38584
|
+
if (actualLen <= 0) return 0;
|
|
38567
38585
|
const buf2 = buf instanceof buffer_1.Buffer ? buf : buffer_1.Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
38568
38586
|
this.buf.copy(buf2, off, pos, pos + actualLen);
|
|
38569
38587
|
return actualLen;
|
|
38570
38588
|
}
|
|
38571
38589
|
truncate(len = 0) {
|
|
38572
|
-
if (len) {
|
|
38573
|
-
|
|
38574
|
-
|
|
38575
|
-
|
|
38576
|
-
|
|
38577
|
-
|
|
38578
|
-
|
|
38590
|
+
if (!len) {
|
|
38591
|
+
this.buf = EMPTY_BUFFER;
|
|
38592
|
+
this.capacity = 0;
|
|
38593
|
+
this.size = 0;
|
|
38594
|
+
this.touch();
|
|
38595
|
+
return;
|
|
38596
|
+
}
|
|
38597
|
+
if (len <= this.size) this.size = len;
|
|
38598
|
+
else {
|
|
38599
|
+
if (len > this.capacity) {
|
|
38600
|
+
let newCapacity = Math.max(2 * this.capacity, 64);
|
|
38601
|
+
while(newCapacity < len)newCapacity *= 2;
|
|
38602
|
+
const buf = (0, buffer_1.bufferAllocUnsafe)(newCapacity);
|
|
38603
|
+
if (this.size > 0) this.buf.copy(buf, 0, 0, this.size);
|
|
38604
|
+
buf.fill(0, this.size, len);
|
|
38579
38605
|
this.buf = buf;
|
|
38580
|
-
|
|
38581
|
-
|
|
38606
|
+
this.capacity = newCapacity;
|
|
38607
|
+
} else this.buf.fill(0, this.size, len);
|
|
38608
|
+
this.size = len;
|
|
38609
|
+
}
|
|
38582
38610
|
this.touch();
|
|
38583
38611
|
}
|
|
38584
38612
|
chmod(perm) {
|
|
@@ -38892,25 +38920,25 @@ __webpack_require__.add({
|
|
|
38892
38920
|
function requireUtil$3() {
|
|
38893
38921
|
if (hasRequiredUtil$3) return util$2;
|
|
38894
38922
|
hasRequiredUtil$3 = 1;
|
|
38895
|
-
(function(exports) {
|
|
38896
|
-
Object.defineProperty(exports, "__esModule", {
|
|
38923
|
+
(function(exports$1) {
|
|
38924
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
38897
38925
|
value: true
|
|
38898
38926
|
});
|
|
38899
|
-
exports.filenameToSteps = exports.resolve = exports.unixify = exports.isWin = void 0;
|
|
38900
|
-
exports.isFd = isFd;
|
|
38901
|
-
exports.validateFd = validateFd;
|
|
38902
|
-
exports.dataToBuffer = dataToBuffer;
|
|
38927
|
+
exports$1.filenameToSteps = exports$1.resolve = exports$1.unixify = exports$1.isWin = void 0;
|
|
38928
|
+
exports$1.isFd = isFd;
|
|
38929
|
+
exports$1.validateFd = validateFd;
|
|
38930
|
+
exports$1.dataToBuffer = dataToBuffer;
|
|
38903
38931
|
const path_1 = requirePath();
|
|
38904
38932
|
const buffer_1 = requireBuffer();
|
|
38905
38933
|
const process_1 = requireProcess();
|
|
38906
38934
|
const encoding_1 = requireEncoding();
|
|
38907
38935
|
const constants_1 = requireConstants();
|
|
38908
|
-
exports.isWin = 'win32' === process_1.default.platform;
|
|
38936
|
+
exports$1.isWin = 'win32' === process_1.default.platform;
|
|
38909
38937
|
const resolveCrossPlatform = path_1.resolve;
|
|
38910
38938
|
const pathSep = path_1.posix ? path_1.posix.sep : path_1.sep;
|
|
38911
38939
|
const isSeparator = (str, i)=>{
|
|
38912
38940
|
let char = str[i];
|
|
38913
|
-
return i > 0 && ('/' === char || exports.isWin && '\\' === char);
|
|
38941
|
+
return i > 0 && ('/' === char || exports$1.isWin && '\\' === char);
|
|
38914
38942
|
};
|
|
38915
38943
|
const removeTrailingSeparator = (str)=>{
|
|
38916
38944
|
let i = str.length - 1;
|
|
@@ -38925,18 +38953,18 @@ __webpack_require__.add({
|
|
|
38925
38953
|
return str;
|
|
38926
38954
|
};
|
|
38927
38955
|
const unixify = (filepath, stripTrailing = true)=>{
|
|
38928
|
-
if (exports.isWin) {
|
|
38956
|
+
if (exports$1.isWin) {
|
|
38929
38957
|
filepath = normalizePath(filepath, stripTrailing);
|
|
38930
38958
|
return filepath.replace(/^([a-zA-Z]+:|\.\/)/, '');
|
|
38931
38959
|
}
|
|
38932
38960
|
return filepath;
|
|
38933
38961
|
};
|
|
38934
|
-
exports.unixify = unixify;
|
|
38962
|
+
exports$1.unixify = unixify;
|
|
38935
38963
|
let resolve = (filename, base = process_1.default.cwd())=>resolveCrossPlatform(base, filename);
|
|
38936
|
-
exports.resolve = resolve;
|
|
38937
|
-
if (exports.isWin) {
|
|
38964
|
+
exports$1.resolve = resolve;
|
|
38965
|
+
if (exports$1.isWin) {
|
|
38938
38966
|
const _resolve = resolve;
|
|
38939
|
-
exports.resolve = resolve = (filename, base)=>(0, exports.unixify)(_resolve(filename, base));
|
|
38967
|
+
exports$1.resolve = resolve = (filename, base)=>(0, exports$1.unixify)(_resolve(filename, base));
|
|
38940
38968
|
}
|
|
38941
38969
|
const filenameToSteps = (filename, base)=>{
|
|
38942
38970
|
const fullPath = resolve(filename, base);
|
|
@@ -38944,7 +38972,7 @@ __webpack_require__.add({
|
|
|
38944
38972
|
if (!fullPathSansSlash) return [];
|
|
38945
38973
|
return fullPathSansSlash.split(pathSep);
|
|
38946
38974
|
};
|
|
38947
|
-
exports.filenameToSteps = filenameToSteps;
|
|
38975
|
+
exports$1.filenameToSteps = filenameToSteps;
|
|
38948
38976
|
function isFd(path) {
|
|
38949
38977
|
return path >>> 0 === path;
|
|
38950
38978
|
}
|
|
@@ -38969,9 +38997,9 @@ __webpack_require__.add({
|
|
|
38969
38997
|
function requirePunycode() {
|
|
38970
38998
|
if (hasRequiredPunycode) return punycode$1.exports;
|
|
38971
38999
|
hasRequiredPunycode = 1;
|
|
38972
|
-
(function(module, exports) {
|
|
39000
|
+
(function(module, exports$1) {
|
|
38973
39001
|
(function(root) {
|
|
38974
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
39002
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
38975
39003
|
var freeModule = module && !module.nodeType && module;
|
|
38976
39004
|
var freeGlobal = 'object' == typeof commonjsGlobal && commonjsGlobal;
|
|
38977
39005
|
if (freeGlobal.undefined === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) root = freeGlobal;
|
|
@@ -42421,37 +42449,37 @@ __webpack_require__.add({
|
|
|
42421
42449
|
function requireCore() {
|
|
42422
42450
|
if (hasRequiredCore) return core;
|
|
42423
42451
|
hasRequiredCore = 1;
|
|
42424
|
-
(function(exports) {
|
|
42425
|
-
Object.defineProperty(exports, "__esModule", {
|
|
42452
|
+
(function(exports$1) {
|
|
42453
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
42426
42454
|
value: true
|
|
42427
42455
|
});
|
|
42428
|
-
exports.Superblock = exports.File = exports.Link = exports.Node = void 0;
|
|
42456
|
+
exports$1.Superblock = exports$1.File = exports$1.Link = exports$1.Node = void 0;
|
|
42429
42457
|
const tslib_1 = require$$0$1;
|
|
42430
|
-
tslib_1.__exportStar(requireTypes(), exports);
|
|
42431
|
-
tslib_1.__exportStar(requireJson(), exports);
|
|
42458
|
+
tslib_1.__exportStar(requireTypes(), exports$1);
|
|
42459
|
+
tslib_1.__exportStar(requireJson(), exports$1);
|
|
42432
42460
|
var Node_1 = requireNode();
|
|
42433
|
-
Object.defineProperty(exports, "Node", {
|
|
42461
|
+
Object.defineProperty(exports$1, "Node", {
|
|
42434
42462
|
enumerable: true,
|
|
42435
42463
|
get: function() {
|
|
42436
42464
|
return Node_1.Node;
|
|
42437
42465
|
}
|
|
42438
42466
|
});
|
|
42439
42467
|
var Link_1 = requireLink();
|
|
42440
|
-
Object.defineProperty(exports, "Link", {
|
|
42468
|
+
Object.defineProperty(exports$1, "Link", {
|
|
42441
42469
|
enumerable: true,
|
|
42442
42470
|
get: function() {
|
|
42443
42471
|
return Link_1.Link;
|
|
42444
42472
|
}
|
|
42445
42473
|
});
|
|
42446
42474
|
var File_1 = requireFile();
|
|
42447
|
-
Object.defineProperty(exports, "File", {
|
|
42475
|
+
Object.defineProperty(exports$1, "File", {
|
|
42448
42476
|
enumerable: true,
|
|
42449
42477
|
get: function() {
|
|
42450
42478
|
return File_1.File;
|
|
42451
42479
|
}
|
|
42452
42480
|
});
|
|
42453
42481
|
var Superblock_1 = requireSuperblock();
|
|
42454
|
-
Object.defineProperty(exports, "Superblock", {
|
|
42482
|
+
Object.defineProperty(exports$1, "Superblock", {
|
|
42455
42483
|
enumerable: true,
|
|
42456
42484
|
get: function() {
|
|
42457
42485
|
return Superblock_1.Superblock;
|
|
@@ -44436,7 +44464,7 @@ __webpack_require__.add({
|
|
|
44436
44464
|
function requireSafeBuffer() {
|
|
44437
44465
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
44438
44466
|
hasRequiredSafeBuffer = 1;
|
|
44439
|
-
(function(module, exports) {
|
|
44467
|
+
(function(module, exports$1) {
|
|
44440
44468
|
var buffer = require$$0$2;
|
|
44441
44469
|
var Buffer = buffer.Buffer;
|
|
44442
44470
|
function copyProps(src, dst) {
|
|
@@ -44444,8 +44472,8 @@ __webpack_require__.add({
|
|
|
44444
44472
|
}
|
|
44445
44473
|
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer;
|
|
44446
44474
|
else {
|
|
44447
|
-
copyProps(buffer, exports);
|
|
44448
|
-
exports.Buffer = SafeBuffer;
|
|
44475
|
+
copyProps(buffer, exports$1);
|
|
44476
|
+
exports$1.Buffer = SafeBuffer;
|
|
44449
44477
|
}
|
|
44450
44478
|
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
44451
44479
|
return Buffer(arg, encodingOrOffset, length);
|
|
@@ -47566,19 +47594,19 @@ __webpack_require__.add({
|
|
|
47566
47594
|
function requireStream() {
|
|
47567
47595
|
if (hasRequiredStream) return stream$1;
|
|
47568
47596
|
hasRequiredStream = 1;
|
|
47569
|
-
(function(exports) {
|
|
47570
|
-
Object.defineProperty(exports, "__esModule", {
|
|
47597
|
+
(function(exports$1) {
|
|
47598
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
47571
47599
|
value: true
|
|
47572
47600
|
});
|
|
47573
|
-
exports.Writable = exports.Readable = void 0;
|
|
47601
|
+
exports$1.Writable = exports$1.Readable = void 0;
|
|
47574
47602
|
var node_stream_1 = requireBrowser();
|
|
47575
|
-
Object.defineProperty(exports, "Readable", {
|
|
47603
|
+
Object.defineProperty(exports$1, "Readable", {
|
|
47576
47604
|
enumerable: true,
|
|
47577
47605
|
get: function() {
|
|
47578
47606
|
return node_stream_1.Readable;
|
|
47579
47607
|
}
|
|
47580
47608
|
});
|
|
47581
|
-
Object.defineProperty(exports, "Writable", {
|
|
47609
|
+
Object.defineProperty(exports$1, "Writable", {
|
|
47582
47610
|
enumerable: true,
|
|
47583
47611
|
get: function() {
|
|
47584
47612
|
return node_stream_1.Writable;
|
|
@@ -47592,13 +47620,13 @@ __webpack_require__.add({
|
|
|
47592
47620
|
function requireEvents() {
|
|
47593
47621
|
if (hasRequiredEvents) return events;
|
|
47594
47622
|
hasRequiredEvents = 1;
|
|
47595
|
-
(function(exports) {
|
|
47596
|
-
Object.defineProperty(exports, "__esModule", {
|
|
47623
|
+
(function(exports$1) {
|
|
47624
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
47597
47625
|
value: true
|
|
47598
47626
|
});
|
|
47599
|
-
exports.EventEmitter = void 0;
|
|
47627
|
+
exports$1.EventEmitter = void 0;
|
|
47600
47628
|
var node_events_1 = requireEvents$1();
|
|
47601
|
-
Object.defineProperty(exports, "EventEmitter", {
|
|
47629
|
+
Object.defineProperty(exports$1, "EventEmitter", {
|
|
47602
47630
|
enumerable: true,
|
|
47603
47631
|
get: function() {
|
|
47604
47632
|
return node_events_1.EventEmitter;
|
|
@@ -48016,14 +48044,14 @@ __webpack_require__.add({
|
|
|
48016
48044
|
function requireLib$2() {
|
|
48017
48045
|
if (hasRequiredLib$2) return lib$1;
|
|
48018
48046
|
hasRequiredLib$2 = 1;
|
|
48019
|
-
(function(exports) {
|
|
48020
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48047
|
+
(function(exports$1) {
|
|
48048
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48021
48049
|
value: true
|
|
48022
48050
|
});
|
|
48023
48051
|
const tslib_1 = require$$0$1;
|
|
48024
|
-
tslib_1.__exportStar(requirePrintTree(), exports);
|
|
48025
|
-
tslib_1.__exportStar(requirePrintBinary(), exports);
|
|
48026
|
-
tslib_1.__exportStar(requirePrintJson(), exports);
|
|
48052
|
+
tslib_1.__exportStar(requirePrintTree(), exports$1);
|
|
48053
|
+
tslib_1.__exportStar(requirePrintBinary(), exports$1);
|
|
48054
|
+
tslib_1.__exportStar(requirePrintJson(), exports$1);
|
|
48027
48055
|
})(lib$1);
|
|
48028
48056
|
return lib$1;
|
|
48029
48057
|
}
|
|
@@ -48071,11 +48099,11 @@ __webpack_require__.add({
|
|
|
48071
48099
|
function requirePrint() {
|
|
48072
48100
|
if (hasRequiredPrint) return print;
|
|
48073
48101
|
hasRequiredPrint = 1;
|
|
48074
|
-
(function(exports) {
|
|
48075
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48102
|
+
(function(exports$1) {
|
|
48103
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48076
48104
|
value: true
|
|
48077
48105
|
});
|
|
48078
|
-
exports.toTreeSync = void 0;
|
|
48106
|
+
exports$1.toTreeSync = void 0;
|
|
48079
48107
|
const tree_dump_1 = requireLib$2();
|
|
48080
48108
|
const util_1 = requireUtil();
|
|
48081
48109
|
const toTreeSync = (fs, opts = {})=>{
|
|
@@ -48084,13 +48112,20 @@ __webpack_require__.add({
|
|
|
48084
48112
|
if (dir[dir.length - 1] !== separator) dir += separator;
|
|
48085
48113
|
const tab = opts.tab || '';
|
|
48086
48114
|
const depth = opts.depth ?? 10;
|
|
48115
|
+
const sort = opts.sort ?? true;
|
|
48087
48116
|
let subtree = ' (...)';
|
|
48088
48117
|
if (depth > 0) {
|
|
48089
48118
|
const list = fs.readdirSync(dir, {
|
|
48090
48119
|
withFileTypes: true
|
|
48091
48120
|
});
|
|
48121
|
+
if (sort) list.sort((a, b)=>{
|
|
48122
|
+
if (a.isDirectory() && b.isDirectory()) return a.name.toString().localeCompare(b.name.toString());
|
|
48123
|
+
if (a.isDirectory()) return -1;
|
|
48124
|
+
if (b.isDirectory()) return 1;
|
|
48125
|
+
return a.name.toString().localeCompare(b.name.toString());
|
|
48126
|
+
});
|
|
48092
48127
|
subtree = (0, tree_dump_1.printTree)(tab, list.map((entry)=>(tab)=>{
|
|
48093
|
-
if (entry.isDirectory()) return (0, exports.toTreeSync)(fs, {
|
|
48128
|
+
if (entry.isDirectory()) return (0, exports$1.toTreeSync)(fs, {
|
|
48094
48129
|
dir: dir + entry.name,
|
|
48095
48130
|
depth: depth - 1,
|
|
48096
48131
|
tab
|
|
@@ -48102,7 +48137,7 @@ __webpack_require__.add({
|
|
|
48102
48137
|
const base = (0, util_1.basename)(dir, separator) + separator;
|
|
48103
48138
|
return base + subtree;
|
|
48104
48139
|
};
|
|
48105
|
-
exports.toTreeSync = toTreeSync;
|
|
48140
|
+
exports$1.toTreeSync = toTreeSync;
|
|
48106
48141
|
})(print);
|
|
48107
48142
|
return print;
|
|
48108
48143
|
}
|
|
@@ -48111,14 +48146,14 @@ __webpack_require__.add({
|
|
|
48111
48146
|
function requireOptions() {
|
|
48112
48147
|
if (hasRequiredOptions) return options;
|
|
48113
48148
|
hasRequiredOptions = 1;
|
|
48114
|
-
(function(exports) {
|
|
48115
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48149
|
+
(function(exports$1) {
|
|
48150
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48116
48151
|
value: true
|
|
48117
48152
|
});
|
|
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;
|
|
48153
|
+
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;
|
|
48154
|
+
exports$1.getOptions = getOptions;
|
|
48155
|
+
exports$1.optsGenerator = optsGenerator;
|
|
48156
|
+
exports$1.optsAndCbGenerator = optsAndCbGenerator;
|
|
48122
48157
|
const constants_1 = requireConstants();
|
|
48123
48158
|
const encoding_1 = requireEncoding();
|
|
48124
48159
|
const util_1 = requireUtil$2();
|
|
@@ -48132,7 +48167,7 @@ __webpack_require__.add({
|
|
|
48132
48167
|
});
|
|
48133
48168
|
return Object.assign({}, mkdirDefaults, options);
|
|
48134
48169
|
};
|
|
48135
|
-
exports.getMkdirOptions = getMkdirOptions;
|
|
48170
|
+
exports$1.getMkdirOptions = getMkdirOptions;
|
|
48136
48171
|
const ERRSTR_OPTS = (tipeof)=>`Expected options to be either an object or a string, but got ${tipeof} instead`;
|
|
48137
48172
|
function getOptions(defaults, options) {
|
|
48138
48173
|
let opts;
|
|
@@ -48167,78 +48202,78 @@ __webpack_require__.add({
|
|
|
48167
48202
|
(0, util_1.validateCallback)(callback)
|
|
48168
48203
|
];
|
|
48169
48204
|
}
|
|
48170
|
-
exports.optsDefaults = {
|
|
48205
|
+
exports$1.optsDefaults = {
|
|
48171
48206
|
encoding: 'utf8'
|
|
48172
48207
|
};
|
|
48173
|
-
exports.getDefaultOpts = optsGenerator(exports.optsDefaults);
|
|
48174
|
-
exports.getDefaultOptsAndCb = optsAndCbGenerator(exports.getDefaultOpts);
|
|
48208
|
+
exports$1.getDefaultOpts = optsGenerator(exports$1.optsDefaults);
|
|
48209
|
+
exports$1.getDefaultOptsAndCb = optsAndCbGenerator(exports$1.getDefaultOpts);
|
|
48175
48210
|
const rmdirDefaults = {
|
|
48176
48211
|
recursive: false
|
|
48177
48212
|
};
|
|
48178
48213
|
const getRmdirOptions = (options)=>Object.assign({}, rmdirDefaults, options);
|
|
48179
|
-
exports.getRmdirOptions = getRmdirOptions;
|
|
48180
|
-
const getRmOpts = optsGenerator(exports.optsDefaults);
|
|
48181
|
-
exports.getRmOptsAndCb = optsAndCbGenerator(getRmOpts);
|
|
48214
|
+
exports$1.getRmdirOptions = getRmdirOptions;
|
|
48215
|
+
const getRmOpts = optsGenerator(exports$1.optsDefaults);
|
|
48216
|
+
exports$1.getRmOptsAndCb = optsAndCbGenerator(getRmOpts);
|
|
48182
48217
|
const readFileOptsDefaults = {
|
|
48183
48218
|
flag: 'r'
|
|
48184
48219
|
};
|
|
48185
|
-
exports.getReadFileOptions = optsGenerator(readFileOptsDefaults);
|
|
48220
|
+
exports$1.getReadFileOptions = optsGenerator(readFileOptsDefaults);
|
|
48186
48221
|
const readdirDefaults = {
|
|
48187
48222
|
encoding: 'utf8',
|
|
48188
48223
|
recursive: false,
|
|
48189
48224
|
withFileTypes: false
|
|
48190
48225
|
};
|
|
48191
|
-
exports.getReaddirOptions = optsGenerator(readdirDefaults);
|
|
48192
|
-
exports.getReaddirOptsAndCb = optsAndCbGenerator(exports.getReaddirOptions);
|
|
48226
|
+
exports$1.getReaddirOptions = optsGenerator(readdirDefaults);
|
|
48227
|
+
exports$1.getReaddirOptsAndCb = optsAndCbGenerator(exports$1.getReaddirOptions);
|
|
48193
48228
|
const opendirDefaults = {
|
|
48194
48229
|
encoding: 'utf8',
|
|
48195
48230
|
bufferSize: 32,
|
|
48196
48231
|
recursive: false
|
|
48197
48232
|
};
|
|
48198
|
-
exports.getOpendirOptions = optsGenerator(opendirDefaults);
|
|
48199
|
-
exports.getOpendirOptsAndCb = optsAndCbGenerator(exports.getOpendirOptions);
|
|
48233
|
+
exports$1.getOpendirOptions = optsGenerator(opendirDefaults);
|
|
48234
|
+
exports$1.getOpendirOptsAndCb = optsAndCbGenerator(exports$1.getOpendirOptions);
|
|
48200
48235
|
const appendFileDefaults = {
|
|
48201
48236
|
encoding: 'utf8',
|
|
48202
48237
|
mode: 438,
|
|
48203
48238
|
flag: constants_1.FLAGS[constants_1.FLAGS.a]
|
|
48204
48239
|
};
|
|
48205
|
-
exports.getAppendFileOpts = optsGenerator(appendFileDefaults);
|
|
48206
|
-
exports.getAppendFileOptsAndCb = optsAndCbGenerator(exports.getAppendFileOpts);
|
|
48240
|
+
exports$1.getAppendFileOpts = optsGenerator(appendFileDefaults);
|
|
48241
|
+
exports$1.getAppendFileOptsAndCb = optsAndCbGenerator(exports$1.getAppendFileOpts);
|
|
48207
48242
|
const statDefaults = {
|
|
48208
48243
|
bigint: false
|
|
48209
48244
|
};
|
|
48210
48245
|
const getStatOptions = (options = {})=>Object.assign({}, statDefaults, options);
|
|
48211
|
-
exports.getStatOptions = getStatOptions;
|
|
48246
|
+
exports$1.getStatOptions = getStatOptions;
|
|
48212
48247
|
const getStatOptsAndCb = (options, callback)=>'function' == typeof options ? [
|
|
48213
|
-
(0, exports.getStatOptions)(),
|
|
48248
|
+
(0, exports$1.getStatOptions)(),
|
|
48214
48249
|
options
|
|
48215
48250
|
] : [
|
|
48216
|
-
(0, exports.getStatOptions)(options),
|
|
48251
|
+
(0, exports$1.getStatOptions)(options),
|
|
48217
48252
|
(0, util_1.validateCallback)(callback)
|
|
48218
48253
|
];
|
|
48219
|
-
exports.getStatOptsAndCb = getStatOptsAndCb;
|
|
48254
|
+
exports$1.getStatOptsAndCb = getStatOptsAndCb;
|
|
48220
48255
|
const statfsDefaults = {
|
|
48221
48256
|
bigint: false
|
|
48222
48257
|
};
|
|
48223
48258
|
const getStatfsOptions = (options = {})=>Object.assign({}, statfsDefaults, options);
|
|
48224
|
-
exports.getStatfsOptions = getStatfsOptions;
|
|
48259
|
+
exports$1.getStatfsOptions = getStatfsOptions;
|
|
48225
48260
|
const getStatfsOptsAndCb = (options, callback)=>'function' == typeof options ? [
|
|
48226
|
-
(0, exports.getStatfsOptions)(),
|
|
48261
|
+
(0, exports$1.getStatfsOptions)(),
|
|
48227
48262
|
options
|
|
48228
48263
|
] : [
|
|
48229
|
-
(0, exports.getStatfsOptions)(options),
|
|
48264
|
+
(0, exports$1.getStatfsOptions)(options),
|
|
48230
48265
|
(0, util_1.validateCallback)(callback)
|
|
48231
48266
|
];
|
|
48232
|
-
exports.getStatfsOptsAndCb = getStatfsOptsAndCb;
|
|
48233
|
-
const realpathDefaults = exports.optsDefaults;
|
|
48234
|
-
exports.getRealpathOptions = optsGenerator(realpathDefaults);
|
|
48235
|
-
exports.getRealpathOptsAndCb = optsAndCbGenerator(exports.getRealpathOptions);
|
|
48236
|
-
exports.writeFileDefaults = {
|
|
48267
|
+
exports$1.getStatfsOptsAndCb = getStatfsOptsAndCb;
|
|
48268
|
+
const realpathDefaults = exports$1.optsDefaults;
|
|
48269
|
+
exports$1.getRealpathOptions = optsGenerator(realpathDefaults);
|
|
48270
|
+
exports$1.getRealpathOptsAndCb = optsAndCbGenerator(exports$1.getRealpathOptions);
|
|
48271
|
+
exports$1.writeFileDefaults = {
|
|
48237
48272
|
encoding: 'utf8',
|
|
48238
48273
|
mode: 438,
|
|
48239
48274
|
flag: constants_1.FLAGS[constants_1.FLAGS.w]
|
|
48240
48275
|
};
|
|
48241
|
-
exports.getWriteFileOptions = optsGenerator(exports.writeFileDefaults);
|
|
48276
|
+
exports$1.getWriteFileOptions = optsGenerator(exports$1.writeFileDefaults);
|
|
48242
48277
|
})(options);
|
|
48243
48278
|
return options;
|
|
48244
48279
|
}
|
|
@@ -48383,12 +48418,73 @@ __webpack_require__.add({
|
|
|
48383
48418
|
function requireLib$1() {
|
|
48384
48419
|
if (hasRequiredLib$1) return lib;
|
|
48385
48420
|
hasRequiredLib$1 = 1;
|
|
48386
|
-
(function(exports) {
|
|
48387
|
-
Object.defineProperty(exports, "__esModule", {
|
|
48421
|
+
(function(exports$1) {
|
|
48422
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
48388
48423
|
value: true
|
|
48389
48424
|
});
|
|
48390
|
-
exports.toMatcher = exports.toRegex = void 0;
|
|
48425
|
+
exports$1.toMatcher = exports$1.toRegex = void 0;
|
|
48391
48426
|
const escapeRe = (ch)=>/[.^$+{}()|\\]/.test(ch) ? `\\${ch}` : ch;
|
|
48427
|
+
const parseExtGlob = (pattern, startIdx, prefix, options)=>{
|
|
48428
|
+
let i = startIdx;
|
|
48429
|
+
const parts = [];
|
|
48430
|
+
let cur = '';
|
|
48431
|
+
let depth = 1;
|
|
48432
|
+
while(i < pattern.length && depth > 0){
|
|
48433
|
+
const ch = pattern[i];
|
|
48434
|
+
if ('(' === ch) {
|
|
48435
|
+
depth++;
|
|
48436
|
+
cur += ch;
|
|
48437
|
+
i++;
|
|
48438
|
+
} else if (')' === ch) {
|
|
48439
|
+
depth--;
|
|
48440
|
+
if (0 === depth) {
|
|
48441
|
+
parts.push(cur);
|
|
48442
|
+
i++;
|
|
48443
|
+
break;
|
|
48444
|
+
}
|
|
48445
|
+
cur += ch;
|
|
48446
|
+
i++;
|
|
48447
|
+
} else if ('|' === ch && 1 === depth) {
|
|
48448
|
+
parts.push(cur);
|
|
48449
|
+
cur = '';
|
|
48450
|
+
i++;
|
|
48451
|
+
} else {
|
|
48452
|
+
cur += ch;
|
|
48453
|
+
i++;
|
|
48454
|
+
}
|
|
48455
|
+
}
|
|
48456
|
+
if (0 !== depth) return;
|
|
48457
|
+
let alternatives = '';
|
|
48458
|
+
const length = parts.length;
|
|
48459
|
+
for(let j = 0; j < length; j++)alternatives += (alternatives ? '|' : '') + (0, exports$1.toRegex)(parts[j], options).source.replace(/^\^/, '').replace(/\$$/, '');
|
|
48460
|
+
switch(prefix){
|
|
48461
|
+
case '?':
|
|
48462
|
+
return [
|
|
48463
|
+
`(?:${alternatives})?`,
|
|
48464
|
+
i
|
|
48465
|
+
];
|
|
48466
|
+
case '*':
|
|
48467
|
+
return [
|
|
48468
|
+
`(?:${alternatives})*`,
|
|
48469
|
+
i
|
|
48470
|
+
];
|
|
48471
|
+
case '+':
|
|
48472
|
+
return [
|
|
48473
|
+
`(?:${alternatives})+`,
|
|
48474
|
+
i
|
|
48475
|
+
];
|
|
48476
|
+
case '@':
|
|
48477
|
+
return [
|
|
48478
|
+
`(?:${alternatives})`,
|
|
48479
|
+
i
|
|
48480
|
+
];
|
|
48481
|
+
case '!':
|
|
48482
|
+
return [
|
|
48483
|
+
`(?!${alternatives})[^/]*`,
|
|
48484
|
+
i
|
|
48485
|
+
];
|
|
48486
|
+
}
|
|
48487
|
+
};
|
|
48392
48488
|
const toRegex = (pattern, options)=>{
|
|
48393
48489
|
let regexStr = '';
|
|
48394
48490
|
let i = 0;
|
|
@@ -48415,11 +48511,22 @@ __webpack_require__.add({
|
|
|
48415
48511
|
i++;
|
|
48416
48512
|
}
|
|
48417
48513
|
if (!closed) return '\\{' + escapeRe(cur);
|
|
48418
|
-
const alt = parts.map((p)=>(0, exports.toRegex)(p, options).source.replace(/^\^/, '').replace(/\$$/, '')).join('|');
|
|
48514
|
+
const alt = parts.map((p)=>(0, exports$1.toRegex)(p, options).source.replace(/^\^/, '').replace(/\$$/, '')).join('|');
|
|
48419
48515
|
return `(?:${alt})`;
|
|
48420
48516
|
};
|
|
48517
|
+
const extglob = !!options?.extglob;
|
|
48421
48518
|
while(i < pattern.length){
|
|
48422
48519
|
const char = pattern[i];
|
|
48520
|
+
if (extglob && '(' === pattern[i + 1]) {
|
|
48521
|
+
if ('?' === char || '*' === char || '+' === char || '@' === char || '!' === char) {
|
|
48522
|
+
const result = parseExtGlob(pattern, i + 2, char, options);
|
|
48523
|
+
if (result) {
|
|
48524
|
+
regexStr += result[0];
|
|
48525
|
+
i = result[1];
|
|
48526
|
+
continue;
|
|
48527
|
+
}
|
|
48528
|
+
}
|
|
48529
|
+
}
|
|
48423
48530
|
switch(char){
|
|
48424
48531
|
case '*':
|
|
48425
48532
|
if ('*' === pattern[i + 1]) {
|
|
@@ -48495,7 +48602,7 @@ __webpack_require__.add({
|
|
|
48495
48602
|
const flags = options?.nocase ? 'i' : '';
|
|
48496
48603
|
return new RegExp('^' + regexStr + '$', flags);
|
|
48497
48604
|
};
|
|
48498
|
-
exports.toRegex = toRegex;
|
|
48605
|
+
exports$1.toRegex = toRegex;
|
|
48499
48606
|
const isRegExp = /^\/(.{1,4096})\/([gimsuy]{0,6})$/;
|
|
48500
48607
|
const toMatcher = (pattern, options)=>{
|
|
48501
48608
|
const regexes = [];
|
|
@@ -48507,11 +48614,11 @@ __webpack_require__.add({
|
|
|
48507
48614
|
if (match) {
|
|
48508
48615
|
const [, expr, flags] = match;
|
|
48509
48616
|
regexes.push(new RegExp(expr, flags));
|
|
48510
|
-
} else regexes.push((0, exports.toRegex)(pat, options));
|
|
48617
|
+
} else regexes.push((0, exports$1.toRegex)(pat, options));
|
|
48511
48618
|
} else regexes.push(pat);
|
|
48512
48619
|
return regexes.length ? new Function('p', 'return ' + regexes.map((r)=>r + '.test(p)').join('||')) : ()=>false;
|
|
48513
48620
|
};
|
|
48514
|
-
exports.toMatcher = toMatcher;
|
|
48621
|
+
exports$1.toMatcher = toMatcher;
|
|
48515
48622
|
})(lib);
|
|
48516
48623
|
return lib;
|
|
48517
48624
|
}
|
|
@@ -50087,6 +50194,7 @@ __webpack_require__.add({
|
|
|
50087
50194
|
'fsyncSync',
|
|
50088
50195
|
'ftruncateSync',
|
|
50089
50196
|
'futimesSync',
|
|
50197
|
+
'globSync',
|
|
50090
50198
|
'lchmodSync',
|
|
50091
50199
|
'lchownSync',
|
|
50092
50200
|
'linkSync',
|
|
@@ -50143,6 +50251,7 @@ __webpack_require__.add({
|
|
|
50143
50251
|
'fsync',
|
|
50144
50252
|
'ftruncate',
|
|
50145
50253
|
'futimes',
|
|
50254
|
+
'glob',
|
|
50146
50255
|
'lchmod',
|
|
50147
50256
|
'lchown',
|
|
50148
50257
|
'link',
|
|
@@ -50181,16 +50290,16 @@ __webpack_require__.add({
|
|
|
50181
50290
|
function requireLib() {
|
|
50182
50291
|
if (hasRequiredLib) return lib$3.exports;
|
|
50183
50292
|
hasRequiredLib = 1;
|
|
50184
|
-
(function(module, exports) {
|
|
50185
|
-
Object.defineProperty(exports, "__esModule", {
|
|
50293
|
+
(function(module, exports$1) {
|
|
50294
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
50186
50295
|
value: true
|
|
50187
50296
|
});
|
|
50188
|
-
exports.memfs = exports.fs = exports.vol = exports.Volume = void 0;
|
|
50189
|
-
exports.createFsFromVolume = createFsFromVolume;
|
|
50297
|
+
exports$1.memfs = exports$1.fs = exports$1.vol = exports$1.Volume = void 0;
|
|
50298
|
+
exports$1.createFsFromVolume = createFsFromVolume;
|
|
50190
50299
|
const Stats_1 = requireStats();
|
|
50191
50300
|
const Dirent_1 = requireDirent();
|
|
50192
50301
|
const volume_1 = requireVolume();
|
|
50193
|
-
Object.defineProperty(exports, "Volume", {
|
|
50302
|
+
Object.defineProperty(exports$1, "Volume", {
|
|
50194
50303
|
enumerable: true,
|
|
50195
50304
|
get: function() {
|
|
50196
50305
|
return volume_1.Volume;
|
|
@@ -50200,7 +50309,7 @@ __webpack_require__.add({
|
|
|
50200
50309
|
const fsSynchronousApiList_1 = requireFsSynchronousApiList();
|
|
50201
50310
|
const fsCallbackApiList_1 = requireFsCallbackApiList();
|
|
50202
50311
|
const { F_OK, R_OK, W_OK, X_OK } = constants_1.constants;
|
|
50203
|
-
exports.vol = new volume_1.Volume();
|
|
50312
|
+
exports$1.vol = new volume_1.Volume();
|
|
50204
50313
|
function createFsFromVolume(vol) {
|
|
50205
50314
|
const fs = {
|
|
50206
50315
|
F_OK,
|
|
@@ -50230,7 +50339,7 @@ __webpack_require__.add({
|
|
|
50230
50339
|
fs.__vol = vol;
|
|
50231
50340
|
return fs;
|
|
50232
50341
|
}
|
|
50233
|
-
exports.fs = createFsFromVolume(exports.vol);
|
|
50342
|
+
exports$1.fs = createFsFromVolume(exports$1.vol);
|
|
50234
50343
|
const memfs = (json = {}, cwd = '/')=>{
|
|
50235
50344
|
const vol = volume_1.Volume.fromNestedJSON(json, cwd);
|
|
50236
50345
|
const fs = createFsFromVolume(vol);
|
|
@@ -50239,10 +50348,10 @@ __webpack_require__.add({
|
|
|
50239
50348
|
vol
|
|
50240
50349
|
};
|
|
50241
50350
|
};
|
|
50242
|
-
exports.memfs = memfs;
|
|
50351
|
+
exports$1.memfs = memfs;
|
|
50243
50352
|
module.exports = {
|
|
50244
50353
|
...module.exports,
|
|
50245
|
-
...exports.fs
|
|
50354
|
+
...exports$1.fs
|
|
50246
50355
|
};
|
|
50247
50356
|
module.exports.semantic = true;
|
|
50248
50357
|
})(lib$3, lib$3.exports);
|
|
@@ -50398,7 +50507,7 @@ const cutOffMessage = (stack, name, message)=>{
|
|
|
50398
50507
|
};
|
|
50399
50508
|
const util_util = __webpack_require__("../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js");
|
|
50400
50509
|
var util_util_default = /*#__PURE__*/ __webpack_require__.n(util_util);
|
|
50401
|
-
class
|
|
50510
|
+
class WebpackError_WebpackError extends Error {
|
|
50402
50511
|
loc;
|
|
50403
50512
|
file;
|
|
50404
50513
|
chunk;
|
|
@@ -50406,14 +50515,14 @@ class WebpackError extends Error {
|
|
|
50406
50515
|
details;
|
|
50407
50516
|
hideStack;
|
|
50408
50517
|
}
|
|
50409
|
-
Object.defineProperty(
|
|
50518
|
+
Object.defineProperty(WebpackError_WebpackError.prototype, util_util.inspect.custom, {
|
|
50410
50519
|
value: function() {
|
|
50411
50520
|
return this.stack + (this.details ? `\n${this.details}` : '');
|
|
50412
50521
|
},
|
|
50413
50522
|
enumerable: false,
|
|
50414
50523
|
configurable: true
|
|
50415
50524
|
});
|
|
50416
|
-
const lib_WebpackError =
|
|
50525
|
+
const lib_WebpackError = WebpackError_WebpackError;
|
|
50417
50526
|
var Logger_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
50418
50527
|
const LogType = Object.freeze({
|
|
50419
50528
|
error: 'error',
|
|
@@ -52370,6 +52479,16 @@ class Entries {
|
|
|
52370
52479
|
delete(key) {
|
|
52371
52480
|
return this.#data.delete(key);
|
|
52372
52481
|
}
|
|
52482
|
+
getOrInsert(key, defaultValue) {
|
|
52483
|
+
if (this.has(key)) return this.get(key);
|
|
52484
|
+
this.set(key, defaultValue);
|
|
52485
|
+
return this.get(key);
|
|
52486
|
+
}
|
|
52487
|
+
getOrInsertComputed(key, callback) {
|
|
52488
|
+
if (this.has(key)) return this.get(key);
|
|
52489
|
+
this.set(key, callback(key));
|
|
52490
|
+
return this.get(key);
|
|
52491
|
+
}
|
|
52373
52492
|
get(key) {
|
|
52374
52493
|
const binding = this.#data.get(key);
|
|
52375
52494
|
return binding ? EntryData.__from_binding(binding) : void 0;
|
|
@@ -52430,11 +52549,11 @@ function createNativePlugin(name, resolve, affectedHooks) {
|
|
|
52430
52549
|
if (INTERNAL_PLUGIN_NAMES.includes(name)) throw new Error(`Cannot register native plugin with name '${name}', it conflicts with internal plugin names.`);
|
|
52431
52550
|
return base_create(name, resolve, affectedHooks);
|
|
52432
52551
|
}
|
|
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(
|
|
52552
|
+
const APIPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.APIPlugin, ()=>{});
|
|
52553
|
+
const ArrayPushCallbackChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ArrayPushCallbackChunkFormatPlugin, ()=>{});
|
|
52554
|
+
const AssetModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.AssetModulesPlugin, ()=>{}, 'compilation');
|
|
52555
|
+
const AsyncWebAssemblyModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.AsyncWebAssemblyModulesPlugin, ()=>{}, 'compilation');
|
|
52556
|
+
const BannerPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.BannerPlugin, (args)=>{
|
|
52438
52557
|
if ('string' == typeof args || 'function' == typeof args) return {
|
|
52439
52558
|
banner: args
|
|
52440
52559
|
};
|
|
@@ -52449,15 +52568,15 @@ const BannerPlugin = base_create(BuiltinPluginName.BannerPlugin, (args)=>{
|
|
|
52449
52568
|
exclude: args.exclude
|
|
52450
52569
|
};
|
|
52451
52570
|
});
|
|
52452
|
-
const BundlerInfoRspackPlugin = base_create(
|
|
52571
|
+
const BundlerInfoRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.BundlerInfoRspackPlugin, (options)=>({
|
|
52453
52572
|
version: options.version || 'unknown',
|
|
52454
52573
|
bundler: options.bundler || 'rspack',
|
|
52455
52574
|
force: options.force ?? true
|
|
52456
52575
|
}));
|
|
52457
|
-
const CaseSensitivePlugin = base_create(
|
|
52458
|
-
const ChunkPrefetchPreloadPlugin = base_create(
|
|
52576
|
+
const CaseSensitivePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CaseSensitivePlugin, ()=>{}, 'compilation');
|
|
52577
|
+
const ChunkPrefetchPreloadPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
|
|
52459
52578
|
class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
52460
|
-
name =
|
|
52579
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.CircularDependencyRspackPlugin;
|
|
52461
52580
|
_options;
|
|
52462
52581
|
constructor(options){
|
|
52463
52582
|
super();
|
|
@@ -52489,8 +52608,8 @@ class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
|
52489
52608
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
52490
52609
|
}
|
|
52491
52610
|
}
|
|
52492
|
-
const CommonJsChunkFormatPlugin = base_create(
|
|
52493
|
-
const ContextReplacementPlugin = base_create(
|
|
52611
|
+
const CommonJsChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CommonJsChunkFormatPlugin, ()=>{});
|
|
52612
|
+
const ContextReplacementPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ContextReplacementPlugin, (resourceRegExp, newContentResource, newContentRecursive, newContentRegExp)=>{
|
|
52494
52613
|
const rawOptions = {
|
|
52495
52614
|
resourceRegExp
|
|
52496
52615
|
};
|
|
@@ -52515,7 +52634,7 @@ const ContextReplacementPlugin = base_create(BuiltinPluginName.ContextReplacemen
|
|
|
52515
52634
|
}
|
|
52516
52635
|
return rawOptions;
|
|
52517
52636
|
});
|
|
52518
|
-
const CopyRspackPlugin = base_create(
|
|
52637
|
+
const CopyRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CopyRspackPlugin, (copy)=>{
|
|
52519
52638
|
const ret = {
|
|
52520
52639
|
patterns: []
|
|
52521
52640
|
};
|
|
@@ -52551,7 +52670,7 @@ const CssChunkingPlugin = base_create(rspack_wasi_browser.BuiltinPluginName.CssC
|
|
|
52551
52670
|
}
|
|
52552
52671
|
return options;
|
|
52553
52672
|
});
|
|
52554
|
-
const CssModulesPlugin = base_create(
|
|
52673
|
+
const CssModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CssModulesPlugin, ()=>{}, 'compilation');
|
|
52555
52674
|
const path_browserify = __webpack_require__("../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js");
|
|
52556
52675
|
var path_browserify_default = /*#__PURE__*/ __webpack_require__.n(path_browserify);
|
|
52557
52676
|
const utils_PLUGIN_NAME = 'css-extract-rspack-plugin';
|
|
@@ -52572,7 +52691,7 @@ class CssExtractRspackPlugin {
|
|
|
52572
52691
|
}
|
|
52573
52692
|
if (compiler.options.output.pathinfo && void 0 === this.options.pathinfo) this.options.pathinfo = true;
|
|
52574
52693
|
compiler.__internal__registerBuiltinPlugin({
|
|
52575
|
-
name:
|
|
52694
|
+
name: external_rspack_wasi_browser_js_BuiltinPluginName.CssExtractRspackPlugin,
|
|
52576
52695
|
options: this.normalizeOptions(this.options)
|
|
52577
52696
|
});
|
|
52578
52697
|
}
|
|
@@ -52608,8 +52727,8 @@ class CssExtractRspackPlugin {
|
|
|
52608
52727
|
return normalzedOptions;
|
|
52609
52728
|
}
|
|
52610
52729
|
}
|
|
52611
|
-
const DataUriPlugin = base_create(
|
|
52612
|
-
const DefinePlugin = base_create(
|
|
52730
|
+
const DataUriPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DataUriPlugin, ()=>{}, 'compilation');
|
|
52731
|
+
const DefinePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DefinePlugin, function(define1) {
|
|
52613
52732
|
const supportsBigIntLiteral = this.options.output.environment?.bigIntLiteral ?? false;
|
|
52614
52733
|
return normalizeValue(define1, supportsBigIntLiteral);
|
|
52615
52734
|
}, 'compilation');
|
|
@@ -52637,25 +52756,25 @@ const normalizeValue = (define1, supportsBigIntLiteral)=>{
|
|
|
52637
52756
|
return normalizeObject(define1);
|
|
52638
52757
|
};
|
|
52639
52758
|
class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
52640
|
-
name =
|
|
52759
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
52641
52760
|
affectedHooks = 'compilation';
|
|
52642
52761
|
raw() {
|
|
52643
52762
|
return createBuiltinPlugin(this.name, void 0);
|
|
52644
52763
|
}
|
|
52645
52764
|
}
|
|
52646
52765
|
class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
52647
|
-
name =
|
|
52766
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
52648
52767
|
affectedHooks = 'compilation';
|
|
52649
52768
|
raw() {
|
|
52650
52769
|
return createBuiltinPlugin(this.name, void 0);
|
|
52651
52770
|
}
|
|
52652
52771
|
}
|
|
52653
|
-
const DllEntryPlugin = base_create(
|
|
52772
|
+
const DllEntryPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DllEntryPlugin, (context, entries, options)=>({
|
|
52654
52773
|
context,
|
|
52655
52774
|
entries,
|
|
52656
52775
|
name: options.name
|
|
52657
52776
|
}));
|
|
52658
|
-
const DllReferenceAgencyPlugin = base_create(
|
|
52777
|
+
const DllReferenceAgencyPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DllReferenceAgencyPlugin, (options)=>options);
|
|
52659
52778
|
class EntryOptionPlugin {
|
|
52660
52779
|
apply(compiler) {
|
|
52661
52780
|
compiler.hooks.entryOption.tap('EntryOptionPlugin', (context, entry)=>{
|
|
@@ -52689,7 +52808,7 @@ class EntryOptionPlugin {
|
|
|
52689
52808
|
}
|
|
52690
52809
|
}
|
|
52691
52810
|
const lib_EntryOptionPlugin = EntryOptionPlugin;
|
|
52692
|
-
const OriginEntryPlugin = base_create(
|
|
52811
|
+
const OriginEntryPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EntryPlugin, (context, entry, options = '')=>{
|
|
52693
52812
|
const entryOptions = 'string' == typeof options ? {
|
|
52694
52813
|
name: options
|
|
52695
52814
|
} : options;
|
|
@@ -52719,7 +52838,7 @@ function getRawEntryOptions(entry) {
|
|
|
52719
52838
|
class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
52720
52839
|
context;
|
|
52721
52840
|
entry;
|
|
52722
|
-
name =
|
|
52841
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.DynamicEntryPlugin;
|
|
52723
52842
|
affectedHooks = 'make';
|
|
52724
52843
|
constructor(context, entry){
|
|
52725
52844
|
super(), this.context = context, this.entry = entry;
|
|
@@ -52741,8 +52860,8 @@ class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
|
52741
52860
|
return createBuiltinPlugin(this.name, raw);
|
|
52742
52861
|
}
|
|
52743
52862
|
}
|
|
52744
|
-
const ElectronTargetPlugin = base_create(
|
|
52745
|
-
const EnableChunkLoadingPluginInner = base_create(
|
|
52863
|
+
const ElectronTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ElectronTargetPlugin, (context)=>context ?? 'none');
|
|
52864
|
+
const EnableChunkLoadingPluginInner = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EnableChunkLoadingPlugin, (type)=>type);
|
|
52746
52865
|
const enabledTypes = new WeakMap();
|
|
52747
52866
|
const getEnabledTypes = (compiler)=>{
|
|
52748
52867
|
let set = enabledTypes.get(compiler);
|
|
@@ -52783,38 +52902,6 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
52783
52902
|
}
|
|
52784
52903
|
}
|
|
52785
52904
|
}
|
|
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
52905
|
class JsSplitChunkSizes {
|
|
52819
52906
|
static __to_binding(sizes) {
|
|
52820
52907
|
if ('number' == typeof sizes) return sizes;
|
|
@@ -52829,18 +52916,18 @@ class JsSplitChunkSizes {
|
|
|
52829
52916
|
}
|
|
52830
52917
|
class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
52831
52918
|
options;
|
|
52832
|
-
name =
|
|
52919
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.SplitChunksPlugin;
|
|
52833
52920
|
affectedHooks = 'thisCompilation';
|
|
52834
52921
|
constructor(options){
|
|
52835
52922
|
super(), this.options = options;
|
|
52836
52923
|
}
|
|
52837
52924
|
raw(compiler) {
|
|
52838
|
-
const rawOptions =
|
|
52925
|
+
const rawOptions = SplitChunksPlugin_toRawSplitChunksOptions(this.options, compiler);
|
|
52839
52926
|
if (void 0 === rawOptions) throw new Error('rawOptions should not be undefined');
|
|
52840
52927
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
52841
52928
|
}
|
|
52842
52929
|
}
|
|
52843
|
-
function
|
|
52930
|
+
function SplitChunksPlugin_toRawSplitChunksOptions(sc, compiler) {
|
|
52844
52931
|
if (!sc) return;
|
|
52845
52932
|
function getName(name) {
|
|
52846
52933
|
if ('function' == typeof name) return (ctx)=>{
|
|
@@ -52899,6 +52986,42 @@ function toRawSplitChunksOptions(sc, compiler) {
|
|
|
52899
52986
|
...passThrough
|
|
52900
52987
|
};
|
|
52901
52988
|
}
|
|
52989
|
+
const EnableLibraryPlugin_enabledTypes = new WeakMap();
|
|
52990
|
+
const EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
52991
|
+
let set = EnableLibraryPlugin_enabledTypes.get(compiler);
|
|
52992
|
+
if (void 0 === set) {
|
|
52993
|
+
set = new Set();
|
|
52994
|
+
EnableLibraryPlugin_enabledTypes.set(compiler, set);
|
|
52995
|
+
}
|
|
52996
|
+
return set;
|
|
52997
|
+
};
|
|
52998
|
+
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
52999
|
+
type;
|
|
53000
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.EnableLibraryPlugin;
|
|
53001
|
+
constructor(type){
|
|
53002
|
+
super(), this.type = type;
|
|
53003
|
+
}
|
|
53004
|
+
static setEnabled(compiler, type) {
|
|
53005
|
+
EnableLibraryPlugin_getEnabledTypes(compiler).add(type);
|
|
53006
|
+
}
|
|
53007
|
+
static checkEnabled(compiler, type) {
|
|
53008
|
+
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(', ')}`);
|
|
53009
|
+
}
|
|
53010
|
+
raw(compiler) {
|
|
53011
|
+
const type = this.type;
|
|
53012
|
+
const enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
|
|
53013
|
+
if (enabled.has(type)) return;
|
|
53014
|
+
enabled.add(type);
|
|
53015
|
+
return createBuiltinPlugin(this.name, {
|
|
53016
|
+
libraryType: type,
|
|
53017
|
+
preserveModules: compiler.options.output.library?.preserveModules,
|
|
53018
|
+
splitChunks: SplitChunksPlugin_toRawSplitChunksOptions(compiler.options.optimization.splitChunks ?? false, compiler)
|
|
53019
|
+
});
|
|
53020
|
+
}
|
|
53021
|
+
}
|
|
53022
|
+
const EnableWasmLoadingPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type);
|
|
53023
|
+
const EnsureChunkConditionsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{});
|
|
53024
|
+
const RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
52902
53025
|
function applyLimits(options) {
|
|
52903
53026
|
options.optimization.concatenateModules = false;
|
|
52904
53027
|
options.optimization.removeEmptyChunks = false;
|
|
@@ -52918,32 +53041,9 @@ function applyLimits(options) {
|
|
|
52918
53041
|
splitChunks.cacheGroups.defaultVendors = false;
|
|
52919
53042
|
}
|
|
52920
53043
|
}
|
|
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');
|
|
53044
|
+
base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EsmNodeTargetPlugin, ()=>void 0);
|
|
53045
|
+
const EvalDevToolModulePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation');
|
|
53046
|
+
const EvalSourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
52947
53047
|
var util_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
52948
53048
|
function isNil(value) {
|
|
52949
53049
|
return null == value;
|
|
@@ -55275,7 +55375,7 @@ class ExternalsPlugin extends RspackBuiltinPlugin {
|
|
|
55275
55375
|
type;
|
|
55276
55376
|
externals;
|
|
55277
55377
|
placeInInitial;
|
|
55278
|
-
name =
|
|
55378
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ExternalsPlugin;
|
|
55279
55379
|
#resolveRequestCache = new Map();
|
|
55280
55380
|
constructor(type, externals, placeInInitial){
|
|
55281
55381
|
super(), this.type = type, this.externals = externals, this.placeInInitial = placeInInitial;
|
|
@@ -55376,12 +55476,12 @@ function getRawExternalItemValue(value) {
|
|
|
55376
55476
|
]));
|
|
55377
55477
|
return value;
|
|
55378
55478
|
}
|
|
55379
|
-
const FetchCompileAsyncWasmPlugin = base_create(
|
|
55380
|
-
const FileUriPlugin = base_create(
|
|
55381
|
-
const FlagDependencyExportsPlugin = base_create(
|
|
55479
|
+
const FetchCompileAsyncWasmPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FetchCompileAsyncWasmPlugin, ()=>{}, 'thisCompilation');
|
|
55480
|
+
const FileUriPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FileUriPlugin, ()=>{}, 'compilation');
|
|
55481
|
+
const FlagDependencyExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyExportsPlugin, ()=>{}, 'compilation');
|
|
55382
55482
|
class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
55383
55483
|
global;
|
|
55384
|
-
name =
|
|
55484
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
55385
55485
|
affectedHooks = 'compilation';
|
|
55386
55486
|
constructor(global){
|
|
55387
55487
|
super(), this.global = global;
|
|
@@ -55391,13 +55491,13 @@ class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
|
55391
55491
|
}
|
|
55392
55492
|
}
|
|
55393
55493
|
class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
55394
|
-
name =
|
|
55494
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.HotModuleReplacementPlugin;
|
|
55395
55495
|
raw(compiler) {
|
|
55396
55496
|
if (void 0 === compiler.options.output.strictModuleErrorHandling) compiler.options.output.strictModuleErrorHandling = true;
|
|
55397
55497
|
return createBuiltinPlugin(this.name, void 0);
|
|
55398
55498
|
}
|
|
55399
55499
|
}
|
|
55400
|
-
const HttpExternalsRspackPlugin = base_create(
|
|
55500
|
+
const HttpExternalsRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HttpExternalsRspackPlugin, (css, webAsync)=>({
|
|
55401
55501
|
css,
|
|
55402
55502
|
webAsync
|
|
55403
55503
|
}));
|
|
@@ -55419,7 +55519,7 @@ const defaultHttpClientForBrowser = async (url, headers)=>{
|
|
|
55419
55519
|
};
|
|
55420
55520
|
class HttpUriPlugin extends RspackBuiltinPlugin {
|
|
55421
55521
|
options;
|
|
55422
|
-
name =
|
|
55522
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.HttpUriPlugin;
|
|
55423
55523
|
affectedHooks = 'compilation';
|
|
55424
55524
|
constructor(options){
|
|
55425
55525
|
super(), this.options = options;
|
|
@@ -55490,7 +55590,7 @@ const cleanPluginHooks = (compilation)=>{
|
|
|
55490
55590
|
const fs_0 = __webpack_require__("./src/browser/fs.ts");
|
|
55491
55591
|
var plugin_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
55492
55592
|
let HTML_PLUGIN_UID = 0;
|
|
55493
|
-
const HtmlRspackPluginImpl = base_create(
|
|
55593
|
+
const HtmlRspackPluginImpl = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HtmlRspackPlugin, function(c = {}) {
|
|
55494
55594
|
const uid = HTML_PLUGIN_UID++;
|
|
55495
55595
|
const meta = {};
|
|
55496
55596
|
for(const key in c.meta){
|
|
@@ -55648,12 +55748,12 @@ HtmlRspackPlugin.createHtmlTagObject = (tagName, attributes, innerHTML)=>({
|
|
|
55648
55748
|
});
|
|
55649
55749
|
HtmlRspackPlugin.getCompilationHooks = getPluginHooks;
|
|
55650
55750
|
HtmlRspackPlugin.version = 5;
|
|
55651
|
-
const IgnorePlugin = base_create(
|
|
55652
|
-
const InferAsyncModulesPlugin = base_create(
|
|
55653
|
-
const InlineExportsPlugin = base_create(
|
|
55751
|
+
const IgnorePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.IgnorePlugin, (options)=>options);
|
|
55752
|
+
const InferAsyncModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InferAsyncModulesPlugin, ()=>{}, 'compilation');
|
|
55753
|
+
const InlineExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InlineExportsPlugin, ()=>{}, 'compilation');
|
|
55654
55754
|
const JavascriptModulesPlugin_compilationHooksMap = new WeakMap();
|
|
55655
55755
|
class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
55656
|
-
name =
|
|
55756
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.JavascriptModulesPlugin;
|
|
55657
55757
|
affectedHooks = 'compilation';
|
|
55658
55758
|
raw() {
|
|
55659
55759
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -55673,9 +55773,9 @@ class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
|
55673
55773
|
return hooks;
|
|
55674
55774
|
}
|
|
55675
55775
|
}
|
|
55676
|
-
const JsLoaderRspackPlugin = base_create(
|
|
55677
|
-
const JsonModulesPlugin = base_create(
|
|
55678
|
-
const LibManifestPlugin = base_create(
|
|
55776
|
+
const JsLoaderRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.JsLoaderRspackPlugin, (compiler)=>runLoaders.bind(null, compiler), 'thisCompilation');
|
|
55777
|
+
const JsonModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.JsonModulesPlugin, ()=>{}, 'compilation');
|
|
55778
|
+
const LibManifestPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.LibManifestPlugin, (options)=>{
|
|
55679
55779
|
const { context, entryOnly, format, name, path, type } = options;
|
|
55680
55780
|
return {
|
|
55681
55781
|
context,
|
|
@@ -55686,7 +55786,7 @@ const LibManifestPlugin = base_create(BuiltinPluginName.LibManifestPlugin, (opti
|
|
|
55686
55786
|
type
|
|
55687
55787
|
};
|
|
55688
55788
|
});
|
|
55689
|
-
const LightningCssMinimizerRspackPlugin = base_create(
|
|
55789
|
+
const LightningCssMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.LightningCssMinimizerRspackPlugin, function(options) {
|
|
55690
55790
|
const { include, exclude, nonStandard, pseudoClasses, drafts } = options?.minimizerOptions ?? {};
|
|
55691
55791
|
let targets = [
|
|
55692
55792
|
'fully supports es6'
|
|
@@ -55719,13 +55819,13 @@ const LightningCssMinimizerRspackPlugin = base_create(BuiltinPluginName.Lightnin
|
|
|
55719
55819
|
}
|
|
55720
55820
|
};
|
|
55721
55821
|
});
|
|
55722
|
-
const LimitChunkCountPlugin = base_create(
|
|
55822
|
+
const LimitChunkCountPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.LimitChunkCountPlugin, (options)=>options);
|
|
55723
55823
|
const lazyCompilationMiddleware = ()=>{
|
|
55724
55824
|
throw new Error('lazy compilation middleware is not supported in browser');
|
|
55725
55825
|
};
|
|
55726
55826
|
class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
55727
55827
|
deterministic;
|
|
55728
|
-
name =
|
|
55828
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.MangleExportsPlugin;
|
|
55729
55829
|
affectedHooks = 'compilation';
|
|
55730
55830
|
constructor(deterministic){
|
|
55731
55831
|
super(), this.deterministic = deterministic;
|
|
@@ -55734,45 +55834,45 @@ class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
|
55734
55834
|
return createBuiltinPlugin(this.name, this.deterministic);
|
|
55735
55835
|
}
|
|
55736
55836
|
}
|
|
55737
|
-
const MergeDuplicateChunksPlugin = base_create(
|
|
55738
|
-
const ModuleChunkFormatPlugin = base_create(
|
|
55837
|
+
const MergeDuplicateChunksPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.MergeDuplicateChunksPlugin, ()=>{});
|
|
55838
|
+
const ModuleChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleChunkFormatPlugin, ()=>{});
|
|
55739
55839
|
class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
55740
|
-
name =
|
|
55840
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleConcatenationPlugin;
|
|
55741
55841
|
affectedHooks = 'compilation';
|
|
55742
55842
|
raw() {
|
|
55743
55843
|
return createBuiltinPlugin(this.name, void 0);
|
|
55744
55844
|
}
|
|
55745
55845
|
}
|
|
55746
|
-
const ModuleInfoHeaderPlugin = base_create(
|
|
55747
|
-
const NamedChunkIdsPlugin = base_create(
|
|
55748
|
-
const NamedModuleIdsPlugin = base_create(
|
|
55846
|
+
const ModuleInfoHeaderPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleInfoHeaderPlugin, (verbose)=>verbose, 'compilation');
|
|
55847
|
+
const NamedChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedChunkIdsPlugin, ()=>{}, 'compilation');
|
|
55848
|
+
const NamedModuleIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedModuleIdsPlugin, ()=>{}, 'compilation');
|
|
55749
55849
|
class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
55750
|
-
name =
|
|
55850
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
55751
55851
|
affectedHooks = 'compilation';
|
|
55752
55852
|
raw() {
|
|
55753
55853
|
return createBuiltinPlugin(this.name, void 0);
|
|
55754
55854
|
}
|
|
55755
55855
|
}
|
|
55756
55856
|
class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
55757
|
-
name =
|
|
55857
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
55758
55858
|
affectedHooks = 'compilation';
|
|
55759
55859
|
raw() {
|
|
55760
55860
|
return createBuiltinPlugin(this.name, void 0);
|
|
55761
55861
|
}
|
|
55762
55862
|
}
|
|
55763
|
-
const NodeTargetPlugin = base_create(
|
|
55764
|
-
const NoEmitOnErrorsPlugin = base_create(
|
|
55765
|
-
const NormalModuleReplacementPlugin = base_create(
|
|
55863
|
+
const NodeTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NodeTargetPlugin, ()=>void 0);
|
|
55864
|
+
const NoEmitOnErrorsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NoEmitOnErrorsPlugin, ()=>void 0);
|
|
55865
|
+
const NormalModuleReplacementPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NormalModuleReplacementPlugin, (resourceRegExp, newResource)=>({
|
|
55766
55866
|
resourceRegExp,
|
|
55767
55867
|
newResource: 'function' == typeof newResource ? (data)=>{
|
|
55768
55868
|
newResource(data);
|
|
55769
55869
|
return data;
|
|
55770
55870
|
} : newResource
|
|
55771
55871
|
}));
|
|
55772
|
-
const OccurrenceChunkIdsPlugin = base_create(
|
|
55872
|
+
const OccurrenceChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.OccurrenceChunkIdsPlugin, (options)=>({
|
|
55773
55873
|
...options
|
|
55774
55874
|
}), 'compilation');
|
|
55775
|
-
const ProgressPlugin = base_create(
|
|
55875
|
+
const ProgressPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ProgressPlugin, (progress = {})=>{
|
|
55776
55876
|
if ('function' == typeof progress) return {
|
|
55777
55877
|
handler: (percentage, msg, info)=>{
|
|
55778
55878
|
progress(percentage, msg, info);
|
|
@@ -55780,7 +55880,7 @@ const ProgressPlugin = base_create(BuiltinPluginName.ProgressPlugin, (progress =
|
|
|
55780
55880
|
};
|
|
55781
55881
|
return progress;
|
|
55782
55882
|
});
|
|
55783
|
-
const ProvidePlugin = base_create(
|
|
55883
|
+
const ProvidePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ProvidePlugin, (provide)=>{
|
|
55784
55884
|
const entries = Object.entries(provide).map(([key, value])=>{
|
|
55785
55885
|
if ('string' == typeof value) value = [
|
|
55786
55886
|
value
|
|
@@ -55792,9 +55892,9 @@ const ProvidePlugin = base_create(BuiltinPluginName.ProvidePlugin, (provide)=>{
|
|
|
55792
55892
|
});
|
|
55793
55893
|
return Object.fromEntries(entries);
|
|
55794
55894
|
}, 'compilation');
|
|
55795
|
-
const RealContentHashPlugin = base_create(
|
|
55796
|
-
const RemoveEmptyChunksPlugin = base_create(
|
|
55797
|
-
const RsdoctorPluginImpl = base_create(
|
|
55895
|
+
const RealContentHashPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RealContentHashPlugin, ()=>{}, 'compilation');
|
|
55896
|
+
const RemoveEmptyChunksPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RemoveEmptyChunksPlugin, ()=>{}, 'compilation');
|
|
55897
|
+
const RsdoctorPluginImpl = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RsdoctorPlugin, function(c = {
|
|
55798
55898
|
moduleGraphFeatures: true,
|
|
55799
55899
|
chunkGraphFeatures: true
|
|
55800
55900
|
}) {
|
|
@@ -55868,9 +55968,9 @@ const createRsdoctorPluginHooksRegisters = (getCompiler, createTap)=>({
|
|
|
55868
55968
|
};
|
|
55869
55969
|
})
|
|
55870
55970
|
});
|
|
55871
|
-
const RslibPlugin = base_create(
|
|
55872
|
-
const RstestPlugin = base_create(
|
|
55873
|
-
const RuntimeChunkPlugin = base_create(
|
|
55971
|
+
const RslibPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RslibPlugin, (rslib)=>rslib);
|
|
55972
|
+
const RstestPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RstestPlugin, (rstest)=>rstest);
|
|
55973
|
+
const RuntimeChunkPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.RuntimeChunkPlugin, (options)=>options, 'thisCompilation');
|
|
55874
55974
|
const RuntimePluginImpl = base_create(rspack_wasi_browser.BuiltinPluginName.RuntimePlugin, ()=>{}, 'compilation');
|
|
55875
55975
|
const RuntimePlugin = RuntimePluginImpl;
|
|
55876
55976
|
const RuntimePlugin_compilationHooksMap = new WeakMap();
|
|
@@ -56038,20 +56138,20 @@ const rsc = {
|
|
|
56038
56138
|
ssr: 'server-side-rendering'
|
|
56039
56139
|
}
|
|
56040
56140
|
};
|
|
56041
|
-
const SideEffectsFlagPlugin = base_create(
|
|
56042
|
-
const SizeLimitsPlugin = base_create(
|
|
56141
|
+
const SideEffectsFlagPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SideEffectsFlagPlugin, ()=>{}, 'compilation');
|
|
56142
|
+
const SizeLimitsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SizeLimitsPlugin, (options)=>{
|
|
56043
56143
|
const hints = false === options.hints ? void 0 : options.hints;
|
|
56044
56144
|
return {
|
|
56045
56145
|
...options,
|
|
56046
56146
|
hints
|
|
56047
56147
|
};
|
|
56048
56148
|
});
|
|
56049
|
-
const SourceMapDevToolPlugin = base_create(
|
|
56149
|
+
const SourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
56050
56150
|
var SubresourceIntegrityPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
56051
56151
|
const SubresourceIntegrityPlugin_PLUGIN_NAME = 'SubresourceIntegrityPlugin';
|
|
56052
56152
|
const NATIVE_HTML_PLUGIN = 'HtmlRspackPlugin';
|
|
56053
56153
|
const HTTP_PROTOCOL_REGEX = /^https?:/;
|
|
56054
|
-
const NativeSubresourceIntegrityPlugin = base_create(
|
|
56154
|
+
const NativeSubresourceIntegrityPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SubresourceIntegrityPlugin, function(options) {
|
|
56055
56155
|
let htmlPlugin = 'Disabled';
|
|
56056
56156
|
if (options.htmlPlugin === NATIVE_HTML_PLUGIN) htmlPlugin = 'Native';
|
|
56057
56157
|
else if ('string' == typeof options.htmlPlugin) htmlPlugin = 'JavaScript';
|
|
@@ -56247,7 +56347,7 @@ function getRawExtractCommentsOptions(extractComments) {
|
|
|
56247
56347
|
return res;
|
|
56248
56348
|
}
|
|
56249
56349
|
}
|
|
56250
|
-
const SwcJsMinimizerRspackPlugin = base_create(
|
|
56350
|
+
const SwcJsMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SwcJsMinimizerRspackPlugin, function(options) {
|
|
56251
56351
|
let compress = options?.minimizerOptions?.compress ?? true;
|
|
56252
56352
|
const mangle = options?.minimizerOptions?.mangle ?? true;
|
|
56253
56353
|
const ecma = options?.minimizerOptions?.ecma ?? (this.target?.esVersion && this.target.esVersion > 2022 ? 2022 : this.target.esVersion) ?? 5;
|
|
@@ -56277,9 +56377,9 @@ const SwcJsMinimizerRspackPlugin = base_create(BuiltinPluginName.SwcJsMinimizerR
|
|
|
56277
56377
|
}
|
|
56278
56378
|
};
|
|
56279
56379
|
}, 'compilation');
|
|
56280
|
-
const URLPlugin = base_create(
|
|
56380
|
+
const URLPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.URLPlugin, ()=>{}, 'compilation');
|
|
56281
56381
|
class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
|
|
56282
|
-
name =
|
|
56382
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
56283
56383
|
raw(compiler) {
|
|
56284
56384
|
compiler.options.output.chunkLoading = "import-scripts";
|
|
56285
56385
|
return createBuiltinPlugin(this.name, void 0);
|
|
@@ -56290,7 +56390,7 @@ class WorkerPlugin extends RspackBuiltinPlugin {
|
|
|
56290
56390
|
wasmLoading;
|
|
56291
56391
|
module;
|
|
56292
56392
|
workerPublicPath;
|
|
56293
|
-
name =
|
|
56393
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.WorkerPlugin;
|
|
56294
56394
|
affectedHooks = 'compilation';
|
|
56295
56395
|
constructor(chunkLoading, wasmLoading, module, workerPublicPath){
|
|
56296
56396
|
super(), this.chunkLoading = chunkLoading, this.wasmLoading = wasmLoading, this.module = module, this.workerPublicPath = workerPublicPath;
|
|
@@ -58127,7 +58227,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
58127
58227
|
});
|
|
58128
58228
|
D(output, 'bundlerInfo', {});
|
|
58129
58229
|
if ('object' == typeof output.bundlerInfo) {
|
|
58130
|
-
D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
58230
|
+
D(output.bundlerInfo, 'version', "2.0.0-beta.8");
|
|
58131
58231
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
58132
58232
|
D(output.bundlerInfo, 'force', !output.library);
|
|
58133
58233
|
}
|
|
@@ -59784,7 +59884,7 @@ class MultiStats {
|
|
|
59784
59884
|
return obj;
|
|
59785
59885
|
});
|
|
59786
59886
|
if (childOptions.version) {
|
|
59787
|
-
obj.rspackVersion = "2.0.0-beta.
|
|
59887
|
+
obj.rspackVersion = "2.0.0-beta.8";
|
|
59788
59888
|
obj.version = "5.75.0";
|
|
59789
59889
|
}
|
|
59790
59890
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -60644,7 +60744,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
60644
60744
|
}
|
|
60645
60745
|
};
|
|
60646
60746
|
}
|
|
60647
|
-
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.
|
|
60747
|
+
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.20.1/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
60648
60748
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
60649
60749
|
class NodeEnvironmentPlugin {
|
|
60650
60750
|
options;
|
|
@@ -61470,7 +61570,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61470
61570
|
},
|
|
61471
61571
|
version: (object)=>{
|
|
61472
61572
|
object.version = "5.75.0";
|
|
61473
|
-
object.rspackVersion = "2.0.0-beta.
|
|
61573
|
+
object.rspackVersion = "2.0.0-beta.8";
|
|
61474
61574
|
},
|
|
61475
61575
|
env: (object, _compilation, _context, { _env })=>{
|
|
61476
61576
|
object.env = _env;
|
|
@@ -63055,17 +63155,20 @@ class RspackOptionsApply {
|
|
|
63055
63155
|
if (options.optimization.mangleExports) new MangleExportsPlugin('size' !== options.optimization.mangleExports).apply(compiler);
|
|
63056
63156
|
let enableLibSplitChunks = false;
|
|
63057
63157
|
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
|
-
|
|
63158
|
+
const hasModernModule = options.output.enabledLibraryTypes.includes('modern-module');
|
|
63159
|
+
const hasNonModernModule = options.output.enabledLibraryTypes.some((t)=>'modern-module' !== t);
|
|
63160
|
+
if (options.output.library?.preserveModules && !hasModernModule) {
|
|
63161
|
+
const logger = compiler.getInfrastructureLogger('rspack.RspackOptionsApply');
|
|
63162
|
+
logger.warn('`preserveModules` only works for `modern-module` library type and will be ignored for other library types.');
|
|
63163
|
+
}
|
|
63164
|
+
if (hasModernModule && hasNonModernModule) {
|
|
63165
|
+
const logger = compiler.getInfrastructureLogger('rspack.RspackOptionsApply');
|
|
63166
|
+
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.');
|
|
63167
|
+
}
|
|
63168
|
+
for (const type of options.output.enabledLibraryTypes){
|
|
63169
|
+
if ('modern-module' === type) enableLibSplitChunks = true;
|
|
63170
|
+
new EnableLibraryPlugin(type).apply(compiler);
|
|
63171
|
+
}
|
|
63069
63172
|
}
|
|
63070
63173
|
if (!enableLibSplitChunks && options.optimization.splitChunks) new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler);
|
|
63071
63174
|
if (options.optimization.removeEmptyChunks) new RemoveEmptyChunksPlugin().apply(compiler);
|
|
@@ -64647,8 +64750,9 @@ class Compiler {
|
|
|
64647
64750
|
this.hooks.shutdown.callAsync((err)=>{
|
|
64648
64751
|
if (err) return callback(err);
|
|
64649
64752
|
this.cache.shutdown(()=>{
|
|
64650
|
-
this.#instance?.close();
|
|
64651
|
-
callback();
|
|
64753
|
+
const closePromise = this.#instance?.close();
|
|
64754
|
+
if (closePromise) closePromise.then(()=>callback(), callback);
|
|
64755
|
+
else callback();
|
|
64652
64756
|
});
|
|
64653
64757
|
});
|
|
64654
64758
|
}
|
|
@@ -64937,7 +65041,7 @@ const matchObject = (obj, str)=>{
|
|
|
64937
65041
|
}
|
|
64938
65042
|
return true;
|
|
64939
65043
|
};
|
|
64940
|
-
const FlagAllModulesAsUsedPlugin = base_create(
|
|
65044
|
+
const FlagAllModulesAsUsedPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FlagAllModulesAsUsedPlugin, (explanation)=>({
|
|
64941
65045
|
explanation
|
|
64942
65046
|
}));
|
|
64943
65047
|
class DllPlugin {
|
|
@@ -65129,7 +65233,7 @@ function setSingleton(compiler) {
|
|
|
65129
65233
|
}
|
|
65130
65234
|
class ShareRuntimePlugin extends RspackBuiltinPlugin {
|
|
65131
65235
|
enhanced;
|
|
65132
|
-
name =
|
|
65236
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ShareRuntimePlugin;
|
|
65133
65237
|
constructor(enhanced = false){
|
|
65134
65238
|
super(), this.enhanced = enhanced;
|
|
65135
65239
|
}
|
|
@@ -65185,7 +65289,7 @@ function normalizeConsumeShareOptions(consumes, shareScope) {
|
|
|
65185
65289
|
}));
|
|
65186
65290
|
}
|
|
65187
65291
|
class ConsumeSharedPlugin extends RspackBuiltinPlugin {
|
|
65188
|
-
name =
|
|
65292
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ConsumeSharedPlugin;
|
|
65189
65293
|
_options;
|
|
65190
65294
|
constructor(options){
|
|
65191
65295
|
super();
|
|
@@ -65236,7 +65340,7 @@ function normalizeProvideShareOptions(options, shareScope, enhanced) {
|
|
|
65236
65340
|
});
|
|
65237
65341
|
}
|
|
65238
65342
|
class ProvideSharedPlugin extends RspackBuiltinPlugin {
|
|
65239
|
-
name =
|
|
65343
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ProvideSharedPlugin;
|
|
65240
65344
|
_provides;
|
|
65241
65345
|
_enhanced;
|
|
65242
65346
|
constructor(options){
|
|
@@ -65476,7 +65580,7 @@ function normalizeManifestOptions(mfConfig) {
|
|
|
65476
65580
|
};
|
|
65477
65581
|
}
|
|
65478
65582
|
class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
65479
|
-
name =
|
|
65583
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleFederationManifestPlugin;
|
|
65480
65584
|
rawOpts;
|
|
65481
65585
|
constructor(opts){
|
|
65482
65586
|
super();
|
|
@@ -65504,7 +65608,7 @@ class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
|
65504
65608
|
}
|
|
65505
65609
|
const SHARE_ENTRY_ASSET = 'collect-shared-entries.json';
|
|
65506
65610
|
class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
65507
|
-
name =
|
|
65611
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.CollectSharedEntryPlugin;
|
|
65508
65612
|
sharedOptions;
|
|
65509
65613
|
_collectedEntries;
|
|
65510
65614
|
constructor(options){
|
|
@@ -65551,7 +65655,7 @@ function assert(condition, msg) {
|
|
|
65551
65655
|
}
|
|
65552
65656
|
const HOT_UPDATE_SUFFIX = '.hot-update';
|
|
65553
65657
|
class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
65554
|
-
name =
|
|
65658
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedContainerPlugin;
|
|
65555
65659
|
filename = '';
|
|
65556
65660
|
_options;
|
|
65557
65661
|
_shareName;
|
|
@@ -65609,7 +65713,7 @@ class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
|
65609
65713
|
}
|
|
65610
65714
|
}
|
|
65611
65715
|
class SharedUsedExportsOptimizerPlugin extends RspackBuiltinPlugin {
|
|
65612
|
-
name =
|
|
65716
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedUsedExportsOptimizerPlugin;
|
|
65613
65717
|
sharedOptions;
|
|
65614
65718
|
injectTreeShakingUsedExports;
|
|
65615
65719
|
manifestOptions;
|
|
@@ -65934,7 +66038,7 @@ class TreeShakingSharedPlugin {
|
|
|
65934
66038
|
return this._independentSharePlugin?.buildAssets || {};
|
|
65935
66039
|
}
|
|
65936
66040
|
}
|
|
65937
|
-
const ModuleFederationRuntimePlugin = base_create(
|
|
66041
|
+
const ModuleFederationRuntimePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleFederationRuntimePlugin, (options = {})=>options);
|
|
65938
66042
|
class ModuleFederationPlugin {
|
|
65939
66043
|
_options;
|
|
65940
66044
|
_treeShakingSharedPlugin;
|
|
@@ -66117,7 +66221,7 @@ function getDefaultEntryRuntime(paths, options, compiler, treeShakingShareFallba
|
|
|
66117
66221
|
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${encodeURIComponent(content)}`;
|
|
66118
66222
|
}
|
|
66119
66223
|
class ContainerPlugin extends RspackBuiltinPlugin {
|
|
66120
|
-
name =
|
|
66224
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerPlugin;
|
|
66121
66225
|
_options;
|
|
66122
66226
|
constructor(options){
|
|
66123
66227
|
super();
|
|
@@ -66167,7 +66271,7 @@ class ContainerPlugin extends RspackBuiltinPlugin {
|
|
|
66167
66271
|
}
|
|
66168
66272
|
}
|
|
66169
66273
|
class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
66170
|
-
name =
|
|
66274
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerReferencePlugin;
|
|
66171
66275
|
_options;
|
|
66172
66276
|
constructor(options){
|
|
66173
66277
|
super();
|
|
@@ -66274,7 +66378,7 @@ function transformSync(source, options) {
|
|
|
66274
66378
|
const _options = JSON.stringify(options || {});
|
|
66275
66379
|
return rspack_wasi_browser.transformSync(source, _options);
|
|
66276
66380
|
}
|
|
66277
|
-
const exports_rspackVersion = "2.0.0-beta.
|
|
66381
|
+
const exports_rspackVersion = "2.0.0-beta.8";
|
|
66278
66382
|
const exports_version = "5.75.0";
|
|
66279
66383
|
const exports_WebpackError = Error;
|
|
66280
66384
|
const exports_config = {
|
|
@@ -66341,7 +66445,7 @@ const exports_experiments = {
|
|
|
66341
66445
|
cleanupGlobalTrace();
|
|
66342
66446
|
}
|
|
66343
66447
|
},
|
|
66344
|
-
RemoveDuplicateModulesPlugin:
|
|
66448
|
+
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin_RemoveDuplicateModulesPlugin,
|
|
66345
66449
|
RsdoctorPlugin: RsdoctorPlugin,
|
|
66346
66450
|
RstestPlugin: RstestPlugin,
|
|
66347
66451
|
RslibPlugin: RslibPlugin,
|