@rspack-debug/browser 2.0.2 → 2.0.4
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 +1 -1
- package/dist/MultiCompiler.d.ts +1 -1
- package/dist/RuntimeGlobals.d.ts +1 -1
- package/dist/builtin-plugin/CircularModulesInfoPlugin.d.ts +7 -0
- package/dist/builtin-plugin/CssHttpExternalsRspackPlugin.d.ts +9 -0
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +2 -0
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +7 -0
- package/dist/builtin-plugin/rsc/index.d.ts +3 -3
- package/dist/config/target.d.ts +1 -1
- package/dist/config/types.d.ts +33 -29
- package/dist/exports.d.ts +1 -1
- package/dist/index.js +149 -96
- package/dist/lib/CacheFacade.d.ts +1 -1
- package/dist/napi-binding.d.ts +25 -21
- package/dist/runtime/cssExtractHmr.d.ts +2 -2
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +2 -2
- package/dist/sharing/ProvideSharedPlugin.d.ts +4 -4
- package/dist/sharing/SharePlugin.d.ts +4 -4
- package/dist/util/comparators.d.ts +1 -1
- package/dist/util/createHash.d.ts +1 -1
- package/dist/util/identifier.d.ts +35 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14616,9 +14616,9 @@ __webpack_require__.add({
|
|
|
14616
14616
|
}
|
|
14617
14617
|
utils.intFromLE = intFromLE;
|
|
14618
14618
|
},
|
|
14619
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.21.
|
|
14619
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.21.3/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
14620
14620
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
14621
|
-
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.21.
|
|
14621
|
+
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.21.3/node_modules/enhanced-resolve/lib/util/process-browser.js");
|
|
14622
14622
|
const dirname = (path)=>{
|
|
14623
14623
|
let idx = path.length - 1;
|
|
14624
14624
|
while(idx >= 0){
|
|
@@ -14913,7 +14913,7 @@ __webpack_require__.add({
|
|
|
14913
14913
|
}
|
|
14914
14914
|
};
|
|
14915
14915
|
},
|
|
14916
|
-
"../../node_modules/.pnpm/enhanced-resolve@5.21.
|
|
14916
|
+
"../../node_modules/.pnpm/enhanced-resolve@5.21.3/node_modules/enhanced-resolve/lib/util/process-browser.js" (module) {
|
|
14917
14917
|
module.exports = {
|
|
14918
14918
|
versions: {},
|
|
14919
14919
|
nextTick (fn) {
|
|
@@ -15756,7 +15756,7 @@ __webpack_require__.add({
|
|
|
15756
15756
|
]
|
|
15757
15757
|
};
|
|
15758
15758
|
var bind = __webpack_require__("../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js");
|
|
15759
|
-
var hasOwn = __webpack_require__("../../node_modules/.pnpm/hasown@2.0.
|
|
15759
|
+
var hasOwn = __webpack_require__("../../node_modules/.pnpm/hasown@2.0.3/node_modules/hasown/index.js");
|
|
15760
15760
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
15761
15761
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
15762
15762
|
var $replace = bind.call($call, String.prototype.replace);
|
|
@@ -18248,7 +18248,7 @@ __webpack_require__.add({
|
|
|
18248
18248
|
}
|
|
18249
18249
|
exports.shr64_lo = shr64_lo;
|
|
18250
18250
|
},
|
|
18251
|
-
"../../node_modules/.pnpm/hasown@2.0.
|
|
18251
|
+
"../../node_modules/.pnpm/hasown@2.0.3/node_modules/hasown/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18252
18252
|
var call = Function.prototype.call;
|
|
18253
18253
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
18254
18254
|
var bind = __webpack_require__("../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js");
|
|
@@ -18546,7 +18546,7 @@ __webpack_require__.add({
|
|
|
18546
18546
|
"../../node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18547
18547
|
var callBound = __webpack_require__("../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js");
|
|
18548
18548
|
var hasToStringTag = __webpack_require__("../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js")();
|
|
18549
|
-
var hasOwn = __webpack_require__("../../node_modules/.pnpm/hasown@2.0.
|
|
18549
|
+
var hasOwn = __webpack_require__("../../node_modules/.pnpm/hasown@2.0.3/node_modules/hasown/index.js");
|
|
18550
18550
|
var gOPD = __webpack_require__("../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js");
|
|
18551
18551
|
var fn;
|
|
18552
18552
|
if (hasToStringTag) {
|
|
@@ -35339,14 +35339,14 @@ __webpack_require__.add({
|
|
|
35339
35339
|
watch: ()=>watch
|
|
35340
35340
|
});
|
|
35341
35341
|
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.4_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35342
|
-
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?
|
|
35342
|
+
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?c724");
|
|
35343
35343
|
const fs = _rspack_binding__rspack_import_1.__fs;
|
|
35344
35344
|
const volume = _rspack_binding__rspack_import_1.__volume;
|
|
35345
35345
|
const memfs = _napi_rs_wasm_runtime_fs__rspack_import_0.tO;
|
|
35346
35346
|
const { readFileSync, readdirSync, lstat, existsSync, readdir, watch } = fs;
|
|
35347
35347
|
const __rspack_default_export = fs;
|
|
35348
35348
|
},
|
|
35349
|
-
"@rspack/binding?
|
|
35349
|
+
"@rspack/binding?c724" (module) {
|
|
35350
35350
|
module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
|
|
35351
35351
|
},
|
|
35352
35352
|
"?7763" () {},
|
|
@@ -56121,7 +56121,7 @@ function canInherentFromParent(affectedHooks) {
|
|
|
56121
56121
|
if (void 0 === affectedHooks) return false;
|
|
56122
56122
|
return !HOOKS_CAN_NOT_INHERENT_FROM_PARENT.includes(affectedHooks);
|
|
56123
56123
|
}
|
|
56124
|
-
class
|
|
56124
|
+
class base_RspackBuiltinPlugin {
|
|
56125
56125
|
affectedHooks;
|
|
56126
56126
|
apply(compiler) {
|
|
56127
56127
|
const raw = this.raw(compiler);
|
|
@@ -56131,14 +56131,14 @@ class RspackBuiltinPlugin {
|
|
|
56131
56131
|
}
|
|
56132
56132
|
}
|
|
56133
56133
|
}
|
|
56134
|
-
function
|
|
56134
|
+
function base_createBuiltinPlugin(name, options) {
|
|
56135
56135
|
return {
|
|
56136
56136
|
name: name,
|
|
56137
56137
|
options: options ?? false
|
|
56138
56138
|
};
|
|
56139
56139
|
}
|
|
56140
56140
|
function base_create(name, resolve, affectedHooks) {
|
|
56141
|
-
class Plugin extends
|
|
56141
|
+
class Plugin extends base_RspackBuiltinPlugin {
|
|
56142
56142
|
name = name;
|
|
56143
56143
|
_args;
|
|
56144
56144
|
affectedHooks = affectedHooks;
|
|
@@ -56147,7 +56147,7 @@ function base_create(name, resolve, affectedHooks) {
|
|
|
56147
56147
|
this._args = args;
|
|
56148
56148
|
}
|
|
56149
56149
|
raw(compiler) {
|
|
56150
|
-
return
|
|
56150
|
+
return base_createBuiltinPlugin(name, resolve.apply(compiler, this._args));
|
|
56151
56151
|
}
|
|
56152
56152
|
}
|
|
56153
56153
|
Object.defineProperty(Plugin, 'name', {
|
|
@@ -56186,7 +56186,13 @@ const BundlerInfoRspackPlugin = base_create(external_rspack_wasi_browser_js_Buil
|
|
|
56186
56186
|
}));
|
|
56187
56187
|
const CaseSensitivePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CaseSensitivePlugin, ()=>{}, 'compilation');
|
|
56188
56188
|
const ChunkPrefetchPreloadPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
|
|
56189
|
-
class
|
|
56189
|
+
class CircularModulesInfoPlugin extends null {
|
|
56190
|
+
name = BuiltinPluginName.CircularModulesInfoPlugin;
|
|
56191
|
+
raw(_compiler) {
|
|
56192
|
+
return createBuiltinPlugin(this.name, void 0);
|
|
56193
|
+
}
|
|
56194
|
+
}
|
|
56195
|
+
class CircularDependencyRspackPlugin extends base_RspackBuiltinPlugin {
|
|
56190
56196
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.CircularDependencyRspackPlugin;
|
|
56191
56197
|
_options;
|
|
56192
56198
|
constructor(options){
|
|
@@ -56216,7 +56222,7 @@ class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
|
56216
56222
|
this._options.onEnd(compilation);
|
|
56217
56223
|
} : void 0
|
|
56218
56224
|
};
|
|
56219
|
-
return
|
|
56225
|
+
return base_createBuiltinPlugin(this.name, rawOptions);
|
|
56220
56226
|
}
|
|
56221
56227
|
}
|
|
56222
56228
|
const CommonJsChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CommonJsChunkFormatPlugin, ()=>{});
|
|
@@ -56281,6 +56287,7 @@ const CssChunkingPlugin = base_create(rspack_wasi_browser.BuiltinPluginName.CssC
|
|
|
56281
56287
|
}
|
|
56282
56288
|
return options;
|
|
56283
56289
|
});
|
|
56290
|
+
const CssHttpExternalsRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CssHttpExternalsRspackPlugin, ()=>void 0);
|
|
56284
56291
|
const CssModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CssModulesPlugin, ()=>{}, 'compilation');
|
|
56285
56292
|
const path_browserify = __webpack_require__("../../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js");
|
|
56286
56293
|
var path_browserify_default = /*#__PURE__*/ __webpack_require__.n(path_browserify);
|
|
@@ -56366,18 +56373,18 @@ const normalizeValue = (define1, supportsBigIntLiteral)=>{
|
|
|
56366
56373
|
};
|
|
56367
56374
|
return normalizeObject(define1);
|
|
56368
56375
|
};
|
|
56369
|
-
class DeterministicChunkIdsPlugin extends
|
|
56376
|
+
class DeterministicChunkIdsPlugin extends base_RspackBuiltinPlugin {
|
|
56370
56377
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
56371
56378
|
affectedHooks = 'compilation';
|
|
56372
56379
|
raw() {
|
|
56373
|
-
return
|
|
56380
|
+
return base_createBuiltinPlugin(this.name, void 0);
|
|
56374
56381
|
}
|
|
56375
56382
|
}
|
|
56376
|
-
class DeterministicModuleIdsPlugin extends
|
|
56383
|
+
class DeterministicModuleIdsPlugin extends base_RspackBuiltinPlugin {
|
|
56377
56384
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
56378
56385
|
affectedHooks = 'compilation';
|
|
56379
56386
|
raw() {
|
|
56380
|
-
return
|
|
56387
|
+
return base_createBuiltinPlugin(this.name, void 0);
|
|
56381
56388
|
}
|
|
56382
56389
|
}
|
|
56383
56390
|
const DllEntryPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DllEntryPlugin, (context, entries, options)=>({
|
|
@@ -56446,7 +56453,7 @@ function getRawEntryOptions(entry) {
|
|
|
56446
56453
|
dependOn: entry.dependOn
|
|
56447
56454
|
};
|
|
56448
56455
|
}
|
|
56449
|
-
class DynamicEntryPlugin extends
|
|
56456
|
+
class DynamicEntryPlugin extends base_RspackBuiltinPlugin {
|
|
56450
56457
|
context;
|
|
56451
56458
|
entry;
|
|
56452
56459
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.DynamicEntryPlugin;
|
|
@@ -56468,7 +56475,7 @@ class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
|
56468
56475
|
});
|
|
56469
56476
|
}
|
|
56470
56477
|
};
|
|
56471
|
-
return
|
|
56478
|
+
return base_createBuiltinPlugin(this.name, raw);
|
|
56472
56479
|
}
|
|
56473
56480
|
}
|
|
56474
56481
|
const ElectronTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ElectronTargetPlugin, (context)=>context ?? 'none');
|
|
@@ -56525,7 +56532,7 @@ class JsSplitChunkSizes {
|
|
|
56525
56532
|
return sizes;
|
|
56526
56533
|
}
|
|
56527
56534
|
}
|
|
56528
|
-
class SplitChunksPlugin extends
|
|
56535
|
+
class SplitChunksPlugin extends base_RspackBuiltinPlugin {
|
|
56529
56536
|
options;
|
|
56530
56537
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.SplitChunksPlugin;
|
|
56531
56538
|
affectedHooks = 'thisCompilation';
|
|
@@ -56535,7 +56542,7 @@ class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
|
56535
56542
|
raw(compiler) {
|
|
56536
56543
|
const rawOptions = SplitChunksPlugin_toRawSplitChunksOptions(this.options, compiler);
|
|
56537
56544
|
if (void 0 === rawOptions) throw new Error('rawOptions should not be undefined');
|
|
56538
|
-
return
|
|
56545
|
+
return base_createBuiltinPlugin(this.name, rawOptions);
|
|
56539
56546
|
}
|
|
56540
56547
|
}
|
|
56541
56548
|
function SplitChunksPlugin_toRawSplitChunksOptions(sc, compiler) {
|
|
@@ -56608,7 +56615,7 @@ const EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
|
56608
56615
|
}
|
|
56609
56616
|
return set;
|
|
56610
56617
|
};
|
|
56611
|
-
class EnableLibraryPlugin extends
|
|
56618
|
+
class EnableLibraryPlugin extends base_RspackBuiltinPlugin {
|
|
56612
56619
|
type;
|
|
56613
56620
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.EnableLibraryPlugin;
|
|
56614
56621
|
constructor(type){
|
|
@@ -56625,7 +56632,7 @@ class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
|
56625
56632
|
const enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
|
|
56626
56633
|
if (enabled.has(type)) return;
|
|
56627
56634
|
enabled.add(type);
|
|
56628
|
-
return
|
|
56635
|
+
return base_createBuiltinPlugin(this.name, {
|
|
56629
56636
|
libraryType: type,
|
|
56630
56637
|
preserveModules: compiler.options.output.library?.preserveModules,
|
|
56631
56638
|
splitChunks: SplitChunksPlugin_toRawSplitChunksOptions(compiler.options.optimization.splitChunks ?? false, compiler)
|
|
@@ -58804,6 +58811,10 @@ function getRawParserOptions(parser, type) {
|
|
|
58804
58811
|
type: 'css/auto',
|
|
58805
58812
|
cssAuto: getRawCssParserOptions(parser)
|
|
58806
58813
|
};
|
|
58814
|
+
if ('css/global' === type) return {
|
|
58815
|
+
type: 'css/global',
|
|
58816
|
+
cssGlobal: getRawCssParserOptions(parser)
|
|
58817
|
+
};
|
|
58807
58818
|
if ('css/module' === type) return {
|
|
58808
58819
|
type: 'css/module',
|
|
58809
58820
|
cssModule: getRawCssParserOptions(parser)
|
|
@@ -58896,6 +58907,10 @@ function getRawGeneratorOptions(generator, type) {
|
|
|
58896
58907
|
type: 'css/auto',
|
|
58897
58908
|
cssAuto: getRawCssAutoOrModuleGeneratorOptions(generator)
|
|
58898
58909
|
};
|
|
58910
|
+
if ('css/global' === type) return {
|
|
58911
|
+
type: 'css/global',
|
|
58912
|
+
cssGlobal: getRawCssAutoOrModuleGeneratorOptions(generator)
|
|
58913
|
+
};
|
|
58899
58914
|
if ('css/module' === type) return {
|
|
58900
58915
|
type: 'css/module',
|
|
58901
58916
|
cssModule: getRawCssAutoOrModuleGeneratorOptions(generator)
|
|
@@ -58956,6 +58971,10 @@ function getRawCssGeneratorOptions(options) {
|
|
|
58956
58971
|
function getRawCssAutoOrModuleGeneratorOptions(options) {
|
|
58957
58972
|
return {
|
|
58958
58973
|
localIdentName: options.localIdentName,
|
|
58974
|
+
localIdentHashDigest: options.localIdentHashDigest,
|
|
58975
|
+
localIdentHashDigestLength: options.localIdentHashDigestLength,
|
|
58976
|
+
localIdentHashFunction: options.localIdentHashFunction,
|
|
58977
|
+
localIdentHashSalt: options.localIdentHashSalt,
|
|
58959
58978
|
exportsConvention: options.exportsConvention,
|
|
58960
58979
|
exportsOnly: options.exportsOnly,
|
|
58961
58980
|
esModule: options.esModule
|
|
@@ -58982,7 +59001,7 @@ function getRawStats(stats) {
|
|
|
58982
59001
|
colors
|
|
58983
59002
|
};
|
|
58984
59003
|
}
|
|
58985
|
-
class ExternalsPlugin extends
|
|
59004
|
+
class ExternalsPlugin extends base_RspackBuiltinPlugin {
|
|
58986
59005
|
type;
|
|
58987
59006
|
externals;
|
|
58988
59007
|
placeInInitial;
|
|
@@ -59001,7 +59020,7 @@ class ExternalsPlugin extends RspackBuiltinPlugin {
|
|
|
59001
59020
|
]).filter(Boolean).map((item)=>this.#getRawExternalItem(item)),
|
|
59002
59021
|
placeInInitial: this.placeInInitial ?? false
|
|
59003
59022
|
};
|
|
59004
|
-
return
|
|
59023
|
+
return base_createBuiltinPlugin(this.name, raw);
|
|
59005
59024
|
}
|
|
59006
59025
|
#processResolveResult = (text)=>{
|
|
59007
59026
|
if (!text) return;
|
|
@@ -59090,7 +59109,7 @@ function getRawExternalItemValue(value) {
|
|
|
59090
59109
|
const FetchCompileAsyncWasmPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FetchCompileAsyncWasmPlugin, ()=>{}, 'thisCompilation');
|
|
59091
59110
|
const FileUriPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FileUriPlugin, ()=>{}, 'compilation');
|
|
59092
59111
|
const FlagDependencyExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyExportsPlugin, ()=>{}, 'compilation');
|
|
59093
|
-
class FlagDependencyUsagePlugin extends
|
|
59112
|
+
class FlagDependencyUsagePlugin extends base_RspackBuiltinPlugin {
|
|
59094
59113
|
global;
|
|
59095
59114
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
59096
59115
|
affectedHooks = 'compilation';
|
|
@@ -59098,21 +59117,20 @@ class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
|
59098
59117
|
super(), this.global = global;
|
|
59099
59118
|
}
|
|
59100
59119
|
raw() {
|
|
59101
|
-
return
|
|
59120
|
+
return base_createBuiltinPlugin(this.name, this.global);
|
|
59102
59121
|
}
|
|
59103
59122
|
}
|
|
59104
59123
|
const HashedModuleIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HashedModuleIdsPlugin, (options)=>({
|
|
59105
59124
|
...options
|
|
59106
59125
|
}), 'compilation');
|
|
59107
|
-
class HotModuleReplacementPlugin extends
|
|
59126
|
+
class HotModuleReplacementPlugin extends base_RspackBuiltinPlugin {
|
|
59108
59127
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.HotModuleReplacementPlugin;
|
|
59109
59128
|
raw(compiler) {
|
|
59110
59129
|
if (void 0 === compiler.options.output.strictModuleErrorHandling) compiler.options.output.strictModuleErrorHandling = true;
|
|
59111
|
-
return
|
|
59130
|
+
return base_createBuiltinPlugin(this.name, void 0);
|
|
59112
59131
|
}
|
|
59113
59132
|
}
|
|
59114
|
-
const HttpExternalsRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HttpExternalsRspackPlugin, (
|
|
59115
|
-
css,
|
|
59133
|
+
const HttpExternalsRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HttpExternalsRspackPlugin, (webAsync)=>({
|
|
59116
59134
|
webAsync
|
|
59117
59135
|
}));
|
|
59118
59136
|
var HttpUriPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
@@ -59131,7 +59149,7 @@ const defaultHttpClientForBrowser = async (url, headers)=>{
|
|
|
59131
59149
|
body: HttpUriPlugin_Buffer.from(await res.arrayBuffer())
|
|
59132
59150
|
};
|
|
59133
59151
|
};
|
|
59134
|
-
class HttpUriPlugin extends
|
|
59152
|
+
class HttpUriPlugin extends base_RspackBuiltinPlugin {
|
|
59135
59153
|
options;
|
|
59136
59154
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.HttpUriPlugin;
|
|
59137
59155
|
affectedHooks = 'compilation';
|
|
@@ -59150,7 +59168,7 @@ class HttpUriPlugin extends RspackBuiltinPlugin {
|
|
|
59150
59168
|
upgrade: options.upgrade ?? false,
|
|
59151
59169
|
httpClient: options.httpClient ?? defaultHttpClient
|
|
59152
59170
|
};
|
|
59153
|
-
return
|
|
59171
|
+
return base_createBuiltinPlugin(this.name, raw);
|
|
59154
59172
|
}
|
|
59155
59173
|
}
|
|
59156
59174
|
const compilationOptionsMap = new WeakMap();
|
|
@@ -59366,11 +59384,11 @@ const IgnorePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginNa
|
|
|
59366
59384
|
const InferAsyncModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InferAsyncModulesPlugin, ()=>{}, 'compilation');
|
|
59367
59385
|
const InlineExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InlineExportsPlugin, ()=>{}, 'compilation');
|
|
59368
59386
|
const JavascriptModulesPlugin_compilationHooksMap = new WeakMap();
|
|
59369
|
-
class JavascriptModulesPlugin extends
|
|
59387
|
+
class JavascriptModulesPlugin extends base_RspackBuiltinPlugin {
|
|
59370
59388
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.JavascriptModulesPlugin;
|
|
59371
59389
|
affectedHooks = 'compilation';
|
|
59372
59390
|
raw() {
|
|
59373
|
-
return
|
|
59391
|
+
return base_createBuiltinPlugin(this.name, void 0);
|
|
59374
59392
|
}
|
|
59375
59393
|
static getCompilationHooks(compilation) {
|
|
59376
59394
|
checkCompilation(compilation);
|
|
@@ -59437,7 +59455,7 @@ const LimitChunkCountPlugin = base_create(external_rspack_wasi_browser_js_Builti
|
|
|
59437
59455
|
const lazyCompilationMiddleware = ()=>{
|
|
59438
59456
|
throw new Error('lazy compilation middleware is not supported in browser');
|
|
59439
59457
|
};
|
|
59440
|
-
class MangleExportsPlugin extends
|
|
59458
|
+
class MangleExportsPlugin extends base_RspackBuiltinPlugin {
|
|
59441
59459
|
deterministic;
|
|
59442
59460
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.MangleExportsPlugin;
|
|
59443
59461
|
affectedHooks = 'compilation';
|
|
@@ -59445,33 +59463,33 @@ class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
|
59445
59463
|
super(), this.deterministic = deterministic;
|
|
59446
59464
|
}
|
|
59447
59465
|
raw() {
|
|
59448
|
-
return
|
|
59466
|
+
return base_createBuiltinPlugin(this.name, this.deterministic);
|
|
59449
59467
|
}
|
|
59450
59468
|
}
|
|
59451
59469
|
const MergeDuplicateChunksPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.MergeDuplicateChunksPlugin, ()=>{});
|
|
59452
59470
|
const ModuleChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleChunkFormatPlugin, ()=>{});
|
|
59453
|
-
class ModuleConcatenationPlugin extends
|
|
59471
|
+
class ModuleConcatenationPlugin extends base_RspackBuiltinPlugin {
|
|
59454
59472
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleConcatenationPlugin;
|
|
59455
59473
|
affectedHooks = 'compilation';
|
|
59456
59474
|
raw() {
|
|
59457
|
-
return
|
|
59475
|
+
return base_createBuiltinPlugin(this.name, void 0);
|
|
59458
59476
|
}
|
|
59459
59477
|
}
|
|
59460
59478
|
const ModuleInfoHeaderPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleInfoHeaderPlugin, (verbose)=>verbose, 'compilation');
|
|
59461
59479
|
const NamedChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedChunkIdsPlugin, ()=>{}, 'compilation');
|
|
59462
59480
|
const NamedModuleIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedModuleIdsPlugin, ()=>{}, 'compilation');
|
|
59463
|
-
class NaturalChunkIdsPlugin extends
|
|
59481
|
+
class NaturalChunkIdsPlugin extends base_RspackBuiltinPlugin {
|
|
59464
59482
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
59465
59483
|
affectedHooks = 'compilation';
|
|
59466
59484
|
raw() {
|
|
59467
|
-
return
|
|
59485
|
+
return base_createBuiltinPlugin(this.name, void 0);
|
|
59468
59486
|
}
|
|
59469
59487
|
}
|
|
59470
|
-
class NaturalModuleIdsPlugin extends
|
|
59488
|
+
class NaturalModuleIdsPlugin extends base_RspackBuiltinPlugin {
|
|
59471
59489
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
59472
59490
|
affectedHooks = 'compilation';
|
|
59473
59491
|
raw() {
|
|
59474
|
-
return
|
|
59492
|
+
return base_createBuiltinPlugin(this.name, void 0);
|
|
59475
59493
|
}
|
|
59476
59494
|
}
|
|
59477
59495
|
const NodeTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NodeTargetPlugin, ()=>void 0);
|
|
@@ -59693,7 +59711,7 @@ class Coordinator {
|
|
|
59693
59711
|
});
|
|
59694
59712
|
}
|
|
59695
59713
|
}
|
|
59696
|
-
class RscClientPlugin extends
|
|
59714
|
+
class RscClientPlugin extends base_RspackBuiltinPlugin {
|
|
59697
59715
|
name = 'RscClientPlugin';
|
|
59698
59716
|
#options;
|
|
59699
59717
|
constructor(options){
|
|
@@ -59702,12 +59720,12 @@ class RscClientPlugin extends RspackBuiltinPlugin {
|
|
|
59702
59720
|
}
|
|
59703
59721
|
raw(compiler) {
|
|
59704
59722
|
this.#options.coordinator.applyClientCompiler(compiler);
|
|
59705
|
-
return
|
|
59723
|
+
return base_createBuiltinPlugin(this.name, {
|
|
59706
59724
|
coordinator: this.#options.coordinator[GET_OR_INIT_BINDING]()
|
|
59707
59725
|
});
|
|
59708
59726
|
}
|
|
59709
59727
|
}
|
|
59710
|
-
class RscServerPlugin extends
|
|
59728
|
+
class RscServerPlugin extends base_RspackBuiltinPlugin {
|
|
59711
59729
|
name = 'RscServerPlugin';
|
|
59712
59730
|
#options;
|
|
59713
59731
|
constructor(options){
|
|
@@ -59719,8 +59737,9 @@ class RscServerPlugin extends RspackBuiltinPlugin {
|
|
|
59719
59737
|
const { coordinator, onServerComponentChanges } = this.#options;
|
|
59720
59738
|
let onManifest;
|
|
59721
59739
|
if (this.#options.onManifest) onManifest = (json)=>Promise.resolve(this.#options.onManifest(JSON.parse(json)));
|
|
59722
|
-
return
|
|
59740
|
+
return base_createBuiltinPlugin(this.name, {
|
|
59723
59741
|
coordinator: coordinator[GET_OR_INIT_BINDING](),
|
|
59742
|
+
cssLink: this.#options.cssLink,
|
|
59724
59743
|
onServerComponentChanges,
|
|
59725
59744
|
onManifest
|
|
59726
59745
|
});
|
|
@@ -59752,7 +59771,7 @@ const rsc = {
|
|
|
59752
59771
|
ssr: 'server-side-rendering'
|
|
59753
59772
|
}
|
|
59754
59773
|
};
|
|
59755
|
-
class SideEffectsFlagPlugin extends
|
|
59774
|
+
class SideEffectsFlagPlugin extends base_RspackBuiltinPlugin {
|
|
59756
59775
|
analyzeSideEffectsFree;
|
|
59757
59776
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.SideEffectsFlagPlugin;
|
|
59758
59777
|
affectedHooks = 'compilation';
|
|
@@ -59760,7 +59779,7 @@ class SideEffectsFlagPlugin extends RspackBuiltinPlugin {
|
|
|
59760
59779
|
super(), this.analyzeSideEffectsFree = analyzeSideEffectsFree;
|
|
59761
59780
|
}
|
|
59762
59781
|
raw() {
|
|
59763
|
-
return
|
|
59782
|
+
return base_createBuiltinPlugin(this.name, this.analyzeSideEffectsFree);
|
|
59764
59783
|
}
|
|
59765
59784
|
}
|
|
59766
59785
|
const SizeLimitsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SizeLimitsPlugin, (options)=>{
|
|
@@ -60002,7 +60021,7 @@ const SwcJsMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_B
|
|
|
60002
60021
|
};
|
|
60003
60022
|
}, 'compilation');
|
|
60004
60023
|
const URLPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.URLPlugin, ()=>{}, 'compilation');
|
|
60005
|
-
class WorkerPlugin extends
|
|
60024
|
+
class WorkerPlugin extends base_RspackBuiltinPlugin {
|
|
60006
60025
|
chunkLoading;
|
|
60007
60026
|
wasmLoading;
|
|
60008
60027
|
module;
|
|
@@ -60015,7 +60034,7 @@ class WorkerPlugin extends RspackBuiltinPlugin {
|
|
|
60015
60034
|
raw(compiler) {
|
|
60016
60035
|
if (this.chunkLoading) new EnableChunkLoadingPlugin(this.chunkLoading).apply(compiler);
|
|
60017
60036
|
if (this.wasmLoading) new EnableWasmLoadingPlugin(this.wasmLoading).apply(compiler);
|
|
60018
|
-
return
|
|
60037
|
+
return base_createBuiltinPlugin(this.name, void 0);
|
|
60019
60038
|
}
|
|
60020
60039
|
}
|
|
60021
60040
|
class ContextModuleFactory {
|
|
@@ -61247,7 +61266,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
61247
61266
|
],
|
|
61248
61267
|
[
|
|
61249
61268
|
'esX',
|
|
61250
|
-
'
|
|
61269
|
+
'ECMAScript in this version. Examples: es2020, es5.',
|
|
61251
61270
|
/^es(\d+)$/,
|
|
61252
61271
|
(version)=>{
|
|
61253
61272
|
let v = +version;
|
|
@@ -61352,26 +61371,33 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
61352
61371
|
applySnapshotDefaults(options.snapshot, {
|
|
61353
61372
|
production
|
|
61354
61373
|
});
|
|
61374
|
+
applyOutputDefaults(options, {
|
|
61375
|
+
context: options.context,
|
|
61376
|
+
targetProperties,
|
|
61377
|
+
isAffectedByBrowserslist: void 0 === target || 'string' == typeof target && target.startsWith('browserslist') || Array.isArray(target) && target.some((target)=>target.startsWith('browserslist')),
|
|
61378
|
+
entry: options.entry
|
|
61379
|
+
});
|
|
61355
61380
|
applyModuleDefaults(options.module, {
|
|
61356
61381
|
asyncWebAssembly: options.experiments.asyncWebAssembly,
|
|
61357
61382
|
targetProperties,
|
|
61358
61383
|
mode: options.mode,
|
|
61359
61384
|
uniqueName: options.output.uniqueName,
|
|
61360
61385
|
deferImport: options.experiments.deferImport,
|
|
61361
|
-
outputModule: options.output.module
|
|
61362
|
-
|
|
61363
|
-
|
|
61364
|
-
context: options.context,
|
|
61365
|
-
targetProperties,
|
|
61366
|
-
isAffectedByBrowserslist: void 0 === target || 'string' == typeof target && target.startsWith('browserslist') || Array.isArray(target) && target.some((target)=>target.startsWith('browserslist')),
|
|
61367
|
-
entry: options.entry
|
|
61386
|
+
outputModule: options.output.module,
|
|
61387
|
+
hashFunction: options.output.hashFunction,
|
|
61388
|
+
hashSalt: options.output.hashSalt
|
|
61368
61389
|
});
|
|
61369
61390
|
applyExternalsPresetsDefaults(options.externalsPresets, {
|
|
61370
61391
|
targetProperties,
|
|
61371
61392
|
buildHttp: Boolean(options.experiments.buildHttp),
|
|
61372
61393
|
outputModule: options.output.module
|
|
61373
61394
|
});
|
|
61374
|
-
F(options, 'externalsType', ()=>
|
|
61395
|
+
F(options, 'externalsType', ()=>{
|
|
61396
|
+
if (options.output.library?.type) {
|
|
61397
|
+
if ('modern-module' !== options.output.library.type) return options.output.library.type;
|
|
61398
|
+
}
|
|
61399
|
+
return options.output.module ? 'module-import' : 'var';
|
|
61400
|
+
});
|
|
61375
61401
|
applyNodeDefaults(options.node, {
|
|
61376
61402
|
targetProperties,
|
|
61377
61403
|
outputModule: options.output.module
|
|
@@ -61474,10 +61500,20 @@ const applyCssGeneratorOptionsDefaults = (generatorOptions, { targetProperties }
|
|
|
61474
61500
|
D(generatorOptions, 'exportsOnly', !targetProperties || false === targetProperties.document);
|
|
61475
61501
|
D(generatorOptions, 'esModule', true);
|
|
61476
61502
|
};
|
|
61503
|
+
const applyCssModuleGeneratorOptionsDefaults = (generatorOptions, { hashFunction, hashSalt, localIdentName, targetProperties })=>{
|
|
61504
|
+
D(generatorOptions, 'exportsOnly', !targetProperties || false === targetProperties.document);
|
|
61505
|
+
D(generatorOptions, 'esModule', true);
|
|
61506
|
+
D(generatorOptions, 'exportsConvention', 'as-is');
|
|
61507
|
+
D(generatorOptions, 'localIdentName', localIdentName);
|
|
61508
|
+
D(generatorOptions, 'localIdentHashSalt', hashSalt);
|
|
61509
|
+
D(generatorOptions, 'localIdentHashFunction', hashFunction);
|
|
61510
|
+
D(generatorOptions, 'localIdentHashDigest', 'base64url');
|
|
61511
|
+
D(generatorOptions, 'localIdentHashDigestLength', 6);
|
|
61512
|
+
};
|
|
61477
61513
|
const applyJsonGeneratorOptionsDefaults = (generatorOptions)=>{
|
|
61478
61514
|
D(generatorOptions, 'JSONParse', true);
|
|
61479
61515
|
};
|
|
61480
|
-
const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode, uniqueName, deferImport, outputModule })=>{
|
|
61516
|
+
const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode, uniqueName, deferImport, outputModule, hashFunction, hashSalt })=>{
|
|
61481
61517
|
assertNotNill(module.parser);
|
|
61482
61518
|
assertNotNill(module.generator);
|
|
61483
61519
|
F(module.parser, "asset", ()=>({}));
|
|
@@ -61504,6 +61540,10 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
61504
61540
|
assertNotNill(module.parser['css/auto']);
|
|
61505
61541
|
D(module.parser['css/auto'], 'namedExports', true);
|
|
61506
61542
|
D(module.parser['css/auto'], 'url', true);
|
|
61543
|
+
F(module.parser, 'css/global', ()=>({}));
|
|
61544
|
+
assertNotNill(module.parser['css/global']);
|
|
61545
|
+
D(module.parser['css/global'], 'namedExports', true);
|
|
61546
|
+
D(module.parser['css/global'], 'url', true);
|
|
61507
61547
|
F(module.parser, 'css/module', ()=>({}));
|
|
61508
61548
|
assertNotNill(module.parser['css/module']);
|
|
61509
61549
|
D(module.parser['css/module'], 'namedExports', true);
|
|
@@ -61515,19 +61555,29 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
61515
61555
|
});
|
|
61516
61556
|
F(module.generator, 'css/auto', ()=>({}));
|
|
61517
61557
|
assertNotNill(module.generator['css/auto']);
|
|
61518
|
-
|
|
61558
|
+
const localIdentName = 'development' === mode ? uniqueName && uniqueName.length > 0 ? '[uniqueName]-[id]-[local]' : '[id]-[local]' : '[fullhash]';
|
|
61559
|
+
applyCssModuleGeneratorOptionsDefaults(module.generator['css/auto'], {
|
|
61560
|
+
hashFunction,
|
|
61561
|
+
hashSalt,
|
|
61562
|
+
localIdentName,
|
|
61519
61563
|
targetProperties
|
|
61520
61564
|
});
|
|
61521
|
-
D(module.generator['css/auto'], 'exportsConvention', 'as-is');
|
|
61522
|
-
const localIdentName = 'development' === mode ? uniqueName && uniqueName.length > 0 ? '[uniqueName]-[id]-[local]' : '[id]-[local]' : '[fullhash]';
|
|
61523
|
-
D(module.generator['css/auto'], 'localIdentName', localIdentName);
|
|
61524
61565
|
F(module.generator, 'css/module', ()=>({}));
|
|
61525
61566
|
assertNotNill(module.generator['css/module']);
|
|
61526
|
-
|
|
61567
|
+
applyCssModuleGeneratorOptionsDefaults(module.generator['css/module'], {
|
|
61568
|
+
hashFunction,
|
|
61569
|
+
hashSalt,
|
|
61570
|
+
localIdentName,
|
|
61571
|
+
targetProperties
|
|
61572
|
+
});
|
|
61573
|
+
F(module.generator, 'css/global', ()=>({}));
|
|
61574
|
+
assertNotNill(module.generator['css/global']);
|
|
61575
|
+
applyCssModuleGeneratorOptionsDefaults(module.generator['css/global'], {
|
|
61576
|
+
hashFunction,
|
|
61577
|
+
hashSalt,
|
|
61578
|
+
localIdentName,
|
|
61527
61579
|
targetProperties
|
|
61528
61580
|
});
|
|
61529
|
-
D(module.generator['css/module'], 'exportsConvention', 'as-is');
|
|
61530
|
-
D(module.generator['css/module'], 'localIdentName', localIdentName);
|
|
61531
61581
|
A(module, 'defaultRules', ()=>{
|
|
61532
61582
|
const esm = {
|
|
61533
61583
|
type: "javascript/esm",
|
|
@@ -61852,7 +61902,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
61852
61902
|
});
|
|
61853
61903
|
D(output, 'bundlerInfo', {});
|
|
61854
61904
|
if ('object' == typeof output.bundlerInfo) {
|
|
61855
|
-
D(output.bundlerInfo, 'version', "2.0.
|
|
61905
|
+
D(output.bundlerInfo, 'version', "2.0.4");
|
|
61856
61906
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
61857
61907
|
D(output.bundlerInfo, 'force', false);
|
|
61858
61908
|
}
|
|
@@ -63510,7 +63560,7 @@ class MultiStats {
|
|
|
63510
63560
|
return obj;
|
|
63511
63561
|
});
|
|
63512
63562
|
if (childOptions.version) {
|
|
63513
|
-
obj.rspackVersion = "2.0.
|
|
63563
|
+
obj.rspackVersion = "2.0.4";
|
|
63514
63564
|
obj.version = "5.75.0";
|
|
63515
63565
|
}
|
|
63516
63566
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -64387,7 +64437,7 @@ function nodeConsole({ colors, appendOnly, stream }) {
|
|
|
64387
64437
|
}
|
|
64388
64438
|
};
|
|
64389
64439
|
}
|
|
64390
|
-
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.21.
|
|
64440
|
+
const CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.21.3/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
64391
64441
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
64392
64442
|
class NodeEnvironmentPlugin {
|
|
64393
64443
|
options;
|
|
@@ -65216,7 +65266,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
65216
65266
|
},
|
|
65217
65267
|
version: (object)=>{
|
|
65218
65268
|
object.version = "5.75.0";
|
|
65219
|
-
object.rspackVersion = "2.0.
|
|
65269
|
+
object.rspackVersion = "2.0.4";
|
|
65220
65270
|
},
|
|
65221
65271
|
env: (object, _compilation, _context, { _env })=>{
|
|
65222
65272
|
object.env = _env;
|
|
@@ -66722,13 +66772,16 @@ class RspackOptionsApply {
|
|
|
66722
66772
|
if (!options.externalsType) throw new Error('options.externalsType should have a value after `applyRspackOptionsDefaults`');
|
|
66723
66773
|
new ExternalsPlugin(options.externalsType, options.externals, false).apply(compiler);
|
|
66724
66774
|
}
|
|
66725
|
-
if (options.externalsPresets.node)
|
|
66775
|
+
if (options.externalsPresets.node) {
|
|
66776
|
+
new NodeTargetPlugin().apply(compiler);
|
|
66777
|
+
new CssHttpExternalsRspackPlugin().apply(compiler);
|
|
66778
|
+
}
|
|
66726
66779
|
if (options.externalsPresets.electronMain) new ElectronTargetPlugin('main').apply(compiler);
|
|
66727
66780
|
if (options.externalsPresets.electronPreload) new ElectronTargetPlugin('preload').apply(compiler);
|
|
66728
66781
|
if (options.externalsPresets.electronRenderer) new ElectronTargetPlugin('renderer').apply(compiler);
|
|
66729
66782
|
if (options.externalsPresets.electron && !options.externalsPresets.electronMain && !options.externalsPresets.electronPreload && !options.externalsPresets.electronRenderer) new ElectronTargetPlugin().apply(compiler);
|
|
66730
66783
|
if (options.externalsPresets.nwjs) new ExternalsPlugin('node-commonjs', 'nw.gui', false).apply(compiler);
|
|
66731
|
-
if (options.externalsPresets.web || options.externalsPresets.webAsync
|
|
66784
|
+
if (options.externalsPresets.web || options.externalsPresets.webAsync) new HttpExternalsRspackPlugin(!!options.externalsPresets.webAsync).apply(compiler);
|
|
66732
66785
|
new ChunkPrefetchPreloadPlugin().apply(compiler);
|
|
66733
66786
|
if (options.output.pathinfo) new ModuleInfoHeaderPlugin('verbose' === options.output.pathinfo).apply(compiler);
|
|
66734
66787
|
if ('string' == typeof options.output.chunkFormat) switch(options.output.chunkFormat){
|
|
@@ -68455,7 +68508,7 @@ class Compiler {
|
|
|
68455
68508
|
const rawOptions = getRawOptions(options, this);
|
|
68456
68509
|
rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
68457
68510
|
rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
68458
|
-
const instanceBinding = __webpack_require__("@rspack/binding?
|
|
68511
|
+
const instanceBinding = __webpack_require__("@rspack/binding?c724");
|
|
68459
68512
|
this.#registers = this.#createHooksRegisters();
|
|
68460
68513
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
68461
68514
|
try {
|
|
@@ -68898,7 +68951,7 @@ function isSingleton(compiler) {
|
|
|
68898
68951
|
function setSingleton(compiler) {
|
|
68899
68952
|
compilerSet.add(compiler);
|
|
68900
68953
|
}
|
|
68901
|
-
class ShareRuntimePlugin extends
|
|
68954
|
+
class ShareRuntimePlugin extends base_RspackBuiltinPlugin {
|
|
68902
68955
|
enhanced;
|
|
68903
68956
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ShareRuntimePlugin;
|
|
68904
68957
|
constructor(enhanced = false){
|
|
@@ -68907,7 +68960,7 @@ class ShareRuntimePlugin extends RspackBuiltinPlugin {
|
|
|
68907
68960
|
raw(compiler) {
|
|
68908
68961
|
if (isSingleton(compiler)) return;
|
|
68909
68962
|
setSingleton(compiler);
|
|
68910
|
-
return
|
|
68963
|
+
return base_createBuiltinPlugin(this.name, this.enhanced);
|
|
68911
68964
|
}
|
|
68912
68965
|
}
|
|
68913
68966
|
const VERSION_PATTERN_REGEXP = /^([\d^=v<>~]|[*xX]$)/;
|
|
@@ -68955,7 +69008,7 @@ function normalizeConsumeShareOptions(consumes, shareScope) {
|
|
|
68955
69008
|
treeShakingMode: item.treeShakingMode
|
|
68956
69009
|
}));
|
|
68957
69010
|
}
|
|
68958
|
-
class ConsumeSharedPlugin extends
|
|
69011
|
+
class ConsumeSharedPlugin extends base_RspackBuiltinPlugin {
|
|
68959
69012
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ConsumeSharedPlugin;
|
|
68960
69013
|
_options;
|
|
68961
69014
|
constructor(options){
|
|
@@ -68974,7 +69027,7 @@ class ConsumeSharedPlugin extends RspackBuiltinPlugin {
|
|
|
68974
69027
|
})),
|
|
68975
69028
|
enhanced: this._options.enhanced
|
|
68976
69029
|
};
|
|
68977
|
-
return
|
|
69030
|
+
return base_createBuiltinPlugin(this.name, rawOptions);
|
|
68978
69031
|
}
|
|
68979
69032
|
}
|
|
68980
69033
|
function normalizeProvideShareOptions(options, shareScope, enhanced) {
|
|
@@ -69006,7 +69059,7 @@ function normalizeProvideShareOptions(options, shareScope, enhanced) {
|
|
|
69006
69059
|
return raw;
|
|
69007
69060
|
});
|
|
69008
69061
|
}
|
|
69009
|
-
class ProvideSharedPlugin extends
|
|
69062
|
+
class ProvideSharedPlugin extends base_RspackBuiltinPlugin {
|
|
69010
69063
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ProvideSharedPlugin;
|
|
69011
69064
|
_provides;
|
|
69012
69065
|
_enhanced;
|
|
@@ -69021,7 +69074,7 @@ class ProvideSharedPlugin extends RspackBuiltinPlugin {
|
|
|
69021
69074
|
key,
|
|
69022
69075
|
...v
|
|
69023
69076
|
}));
|
|
69024
|
-
return
|
|
69077
|
+
return base_createBuiltinPlugin(this.name, rawOptions);
|
|
69025
69078
|
}
|
|
69026
69079
|
}
|
|
69027
69080
|
function validateShareScope(shareScope, enhanced, pluginName) {
|
|
@@ -69246,7 +69299,7 @@ function normalizeManifestOptions(mfConfig) {
|
|
|
69246
69299
|
name: containerName
|
|
69247
69300
|
};
|
|
69248
69301
|
}
|
|
69249
|
-
class ModuleFederationManifestPlugin extends
|
|
69302
|
+
class ModuleFederationManifestPlugin extends base_RspackBuiltinPlugin {
|
|
69250
69303
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleFederationManifestPlugin;
|
|
69251
69304
|
rawOpts;
|
|
69252
69305
|
constructor(opts){
|
|
@@ -69270,11 +69323,11 @@ class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
|
69270
69323
|
shared,
|
|
69271
69324
|
buildInfo: getBuildInfo('development' === compiler.options.mode, compiler, this.rawOpts)
|
|
69272
69325
|
};
|
|
69273
|
-
return
|
|
69326
|
+
return base_createBuiltinPlugin(this.name, rawOptions);
|
|
69274
69327
|
}
|
|
69275
69328
|
}
|
|
69276
69329
|
const SHARE_ENTRY_ASSET = 'collect-shared-entries.json';
|
|
69277
|
-
class CollectSharedEntryPlugin extends
|
|
69330
|
+
class CollectSharedEntryPlugin extends base_RspackBuiltinPlugin {
|
|
69278
69331
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.CollectSharedEntryPlugin;
|
|
69279
69332
|
sharedOptions;
|
|
69280
69333
|
_collectedEntries;
|
|
@@ -69314,14 +69367,14 @@ class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
|
69314
69367
|
})),
|
|
69315
69368
|
filename: this.getFilename()
|
|
69316
69369
|
};
|
|
69317
|
-
return
|
|
69370
|
+
return base_createBuiltinPlugin(this.name, rawOptions);
|
|
69318
69371
|
}
|
|
69319
69372
|
}
|
|
69320
69373
|
function assert(condition, msg) {
|
|
69321
69374
|
if (!condition) throw new Error(msg);
|
|
69322
69375
|
}
|
|
69323
69376
|
const HOT_UPDATE_SUFFIX = '.hot-update';
|
|
69324
|
-
class SharedContainerPlugin extends
|
|
69377
|
+
class SharedContainerPlugin extends base_RspackBuiltinPlugin {
|
|
69325
69378
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedContainerPlugin;
|
|
69326
69379
|
filename = '';
|
|
69327
69380
|
_options;
|
|
@@ -69358,7 +69411,7 @@ class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
|
69358
69411
|
raw(compiler) {
|
|
69359
69412
|
const { library } = this._options;
|
|
69360
69413
|
if (!compiler.options.output.enabledLibraryTypes.includes(library.type)) compiler.options.output.enabledLibraryTypes.push(library.type);
|
|
69361
|
-
return
|
|
69414
|
+
return base_createBuiltinPlugin(this.name, this._options);
|
|
69362
69415
|
}
|
|
69363
69416
|
apply(compiler) {
|
|
69364
69417
|
super.apply(compiler);
|
|
@@ -69379,7 +69432,7 @@ class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
|
69379
69432
|
});
|
|
69380
69433
|
}
|
|
69381
69434
|
}
|
|
69382
|
-
class SharedUsedExportsOptimizerPlugin extends
|
|
69435
|
+
class SharedUsedExportsOptimizerPlugin extends base_RspackBuiltinPlugin {
|
|
69383
69436
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedUsedExportsOptimizerPlugin;
|
|
69384
69437
|
sharedOptions;
|
|
69385
69438
|
injectTreeShakingUsedExports;
|
|
@@ -69406,7 +69459,7 @@ class SharedUsedExportsOptimizerPlugin extends RspackBuiltinPlugin {
|
|
|
69406
69459
|
}
|
|
69407
69460
|
raw() {
|
|
69408
69461
|
if (!this.sharedOptions.length) return;
|
|
69409
|
-
return
|
|
69462
|
+
return base_createBuiltinPlugin(this.name, this.buildOptions());
|
|
69410
69463
|
}
|
|
69411
69464
|
}
|
|
69412
69465
|
const VIRTUAL_ENTRY = './virtual-entry.js';
|
|
@@ -69887,7 +69940,7 @@ function getDefaultEntryRuntime(paths, options, compiler, treeShakingShareFallba
|
|
|
69887
69940
|
].join(';');
|
|
69888
69941
|
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${encodeURIComponent(content)}`;
|
|
69889
69942
|
}
|
|
69890
|
-
class ContainerPlugin extends
|
|
69943
|
+
class ContainerPlugin extends base_RspackBuiltinPlugin {
|
|
69891
69944
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerPlugin;
|
|
69892
69945
|
_options;
|
|
69893
69946
|
constructor(options){
|
|
@@ -69934,10 +69987,10 @@ class ContainerPlugin extends RspackBuiltinPlugin {
|
|
|
69934
69987
|
})),
|
|
69935
69988
|
enhanced
|
|
69936
69989
|
};
|
|
69937
|
-
return
|
|
69990
|
+
return base_createBuiltinPlugin(this.name, rawOptions);
|
|
69938
69991
|
}
|
|
69939
69992
|
}
|
|
69940
|
-
class ContainerReferencePlugin extends
|
|
69993
|
+
class ContainerReferencePlugin extends base_RspackBuiltinPlugin {
|
|
69941
69994
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerReferencePlugin;
|
|
69942
69995
|
_options;
|
|
69943
69996
|
constructor(options){
|
|
@@ -69971,7 +70024,7 @@ class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
|
69971
70024
|
for (const external of config.external){
|
|
69972
70025
|
if (external.startsWith('internal ')) continue;
|
|
69973
70026
|
const request = `webpack/container/reference/${key}${i ? `/fallback-${i}` : ''}`;
|
|
69974
|
-
if (('module' === remoteType || 'module-import' === remoteType) && external.startsWith('.')) importExternals[request] = external;
|
|
70027
|
+
if (('module' === remoteType || 'module-import' === remoteType || 'modern-module' === remoteType) && external.startsWith('.')) importExternals[request] = external;
|
|
69975
70028
|
else remoteExternals[request] = external;
|
|
69976
70029
|
i++;
|
|
69977
70030
|
}
|
|
@@ -69987,7 +70040,7 @@ class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
|
69987
70040
|
})),
|
|
69988
70041
|
enhanced: this._options.enhanced
|
|
69989
70042
|
};
|
|
69990
|
-
return
|
|
70043
|
+
return base_createBuiltinPlugin(this.name, rawOptions);
|
|
69991
70044
|
}
|
|
69992
70045
|
}
|
|
69993
70046
|
class ModuleFederationPluginV1 {
|
|
@@ -70045,7 +70098,7 @@ function transformSync(source, options) {
|
|
|
70045
70098
|
const _options = JSON.stringify(options || {});
|
|
70046
70099
|
return rspack_wasi_browser.transformSync(source, _options);
|
|
70047
70100
|
}
|
|
70048
|
-
const exports_rspackVersion = "2.0.
|
|
70101
|
+
const exports_rspackVersion = "2.0.4";
|
|
70049
70102
|
const exports_version = "5.75.0";
|
|
70050
70103
|
const exports_WebpackError = Error;
|
|
70051
70104
|
const exports_config = {
|