@rspack-canary/browser 1.5.9-canary-39ce7fc0-20251009174151 → 1.5.9-canary-bddc650e-20251012024608
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/browser/{BrowserRequire.d.ts → BrowserRequirePlugin.d.ts} +10 -4
- package/dist/browser/index.d.ts +1 -1
- package/dist/container/ModuleFederationPlugin.d.ts +1 -1
- package/dist/index.mjs +45 -194
- package/dist/napi-binding.d.ts +5 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/package.json +2 -2
|
@@ -12,12 +12,18 @@ interface BrowserRequirePluginOptions {
|
|
|
12
12
|
/**
|
|
13
13
|
* This function defines how to execute CommonJS code.
|
|
14
14
|
*/
|
|
15
|
-
execute
|
|
15
|
+
execute?: (code: string, runtime: CommonJsRuntime) => void;
|
|
16
|
+
/**
|
|
17
|
+
* This option provides a direct mapping from the module specifier to the module content, similar to the mechanism of a virtual module.
|
|
18
|
+
* If this option is not provided or the mapping result is undefined, it will fallback to resolving from memfs and run `execute`.
|
|
19
|
+
*/
|
|
20
|
+
modules?: Record<string, unknown> | ((id: string) => unknown);
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
23
|
* This plugin inject browser-compatible `require` function to the `Compiler`.
|
|
19
|
-
* 1.
|
|
20
|
-
* 2.
|
|
24
|
+
* 1. This plugin makes it possible to use custom loaders in browser by providing a virtual module mechanism.
|
|
25
|
+
* 2. This plugin resolves the JavaScript in the memfs with Node.js resolution algorithm rather than in the host filesystem.
|
|
26
|
+
* 3. This plugin transform ESM to CommonJS which will be executed with a user-defined `execute` function.
|
|
21
27
|
*/
|
|
22
28
|
export declare class BrowserRequirePlugin {
|
|
23
29
|
private options;
|
|
@@ -25,7 +31,7 @@ export declare class BrowserRequirePlugin {
|
|
|
25
31
|
* This is an unsafe way to execute code in the browser using `new Function`.
|
|
26
32
|
* It is your responsibility to ensure that your application is not vulnerable to attacks due to this function.
|
|
27
33
|
*/
|
|
28
|
-
static unsafeExecute: (code: string, runtime: CommonJsRuntime) => void;
|
|
34
|
+
static unsafeExecute: ((code: string, runtime: CommonJsRuntime) => void) | undefined;
|
|
29
35
|
constructor(options: BrowserRequirePluginOptions);
|
|
30
36
|
apply(compiler: Compiler): void;
|
|
31
37
|
}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "../index";
|
|
2
2
|
export { BrowserHttpImportEsmPlugin } from "./BrowserHttpImportEsmPlugin";
|
|
3
|
-
export { BrowserRequirePlugin } from "./
|
|
3
|
+
export { BrowserRequirePlugin } from "./BrowserRequirePlugin";
|
|
4
4
|
export declare const builtinMemFs: {
|
|
5
5
|
fs: import("memfs").IFs;
|
|
6
6
|
volume: import("memfs").Volume;
|
|
@@ -5,7 +5,7 @@ export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPlug
|
|
|
5
5
|
implementation?: string;
|
|
6
6
|
shareStrategy?: "version-first" | "loaded-first";
|
|
7
7
|
}
|
|
8
|
-
export type RuntimePlugins = string[];
|
|
8
|
+
export type RuntimePlugins = string[] | [string, Record<string, unknown>][];
|
|
9
9
|
export declare class ModuleFederationPlugin {
|
|
10
10
|
private _options;
|
|
11
11
|
constructor(_options: ModuleFederationPluginOptions);
|
package/dist/index.mjs
CHANGED
|
@@ -38273,7 +38273,7 @@ function trace_define_property(obj, key, value) {
|
|
|
38273
38273
|
else obj[key] = value;
|
|
38274
38274
|
return obj;
|
|
38275
38275
|
}
|
|
38276
|
-
class
|
|
38276
|
+
class trace_JavaScriptTracer {
|
|
38277
38277
|
static async initJavaScriptTrace(layer, output) {
|
|
38278
38278
|
const { Session } = await Promise.resolve().then(function() {
|
|
38279
38279
|
var e = new Error("Cannot find module 'node:inspector'");
|
|
@@ -38392,13 +38392,13 @@ class JavaScriptTracer {
|
|
|
38392
38392
|
});
|
|
38393
38393
|
}
|
|
38394
38394
|
}
|
|
38395
|
-
trace_define_property(
|
|
38396
|
-
trace_define_property(
|
|
38397
|
-
trace_define_property(
|
|
38398
|
-
trace_define_property(
|
|
38399
|
-
trace_define_property(
|
|
38400
|
-
trace_define_property(
|
|
38401
|
-
trace_define_property(
|
|
38395
|
+
trace_define_property(trace_JavaScriptTracer, "state", "uninitialized");
|
|
38396
|
+
trace_define_property(trace_JavaScriptTracer, "startTime", void 0);
|
|
38397
|
+
trace_define_property(trace_JavaScriptTracer, "events", void 0);
|
|
38398
|
+
trace_define_property(trace_JavaScriptTracer, "layer", void 0);
|
|
38399
|
+
trace_define_property(trace_JavaScriptTracer, "output", void 0);
|
|
38400
|
+
trace_define_property(trace_JavaScriptTracer, "session", void 0);
|
|
38401
|
+
trace_define_property(trace_JavaScriptTracer, "counter", 10000);
|
|
38402
38402
|
var crypto_browserify = __webpack_require__("../../node_modules/.pnpm/crypto-browserify@3.12.1/node_modules/crypto-browserify/index.js");
|
|
38403
38403
|
const CURRENT_METHOD_REGEXP = /at ([a-zA-Z0-9_.]*)/;
|
|
38404
38404
|
function createMessage(method) {
|
|
@@ -39011,8 +39011,8 @@ async function runLoaders(compiler, context) {
|
|
|
39011
39011
|
const loaderState = context.loaderState;
|
|
39012
39012
|
const pitch = loaderState === external_rspack_wasi_browser_js_.JsLoaderState.Pitching;
|
|
39013
39013
|
const { resource } = context;
|
|
39014
|
-
const uuid =
|
|
39015
|
-
|
|
39014
|
+
const uuid = trace_JavaScriptTracer.uuid();
|
|
39015
|
+
trace_JavaScriptTracer.startAsync({
|
|
39016
39016
|
name: "run_js_loaders",
|
|
39017
39017
|
processName: LOADER_PROCESS_NAME,
|
|
39018
39018
|
uuid,
|
|
@@ -39066,7 +39066,7 @@ async function runLoaders(compiler, context) {
|
|
|
39066
39066
|
context.cacheable = true;
|
|
39067
39067
|
};
|
|
39068
39068
|
loaderContext.importModule = function(request, userOptions, callback) {
|
|
39069
|
-
|
|
39069
|
+
trace_JavaScriptTracer.startAsync({
|
|
39070
39070
|
name: "importModule",
|
|
39071
39071
|
processName: LOADER_PROCESS_NAME,
|
|
39072
39072
|
uuid,
|
|
@@ -39080,7 +39080,7 @@ async function runLoaders(compiler, context) {
|
|
|
39080
39080
|
function finalCallback(onError, onDone) {
|
|
39081
39081
|
return function(err, res) {
|
|
39082
39082
|
if (err) {
|
|
39083
|
-
|
|
39083
|
+
trace_JavaScriptTracer.endAsync({
|
|
39084
39084
|
name: "importModule",
|
|
39085
39085
|
processName: LOADER_PROCESS_NAME,
|
|
39086
39086
|
uuid,
|
|
@@ -39096,7 +39096,7 @@ async function runLoaders(compiler, context) {
|
|
|
39096
39096
|
for (const dep of res.missingDependencies)context.addMissingDependency(dep);
|
|
39097
39097
|
for (const dep of res.fileDependencies)context.addDependency(dep);
|
|
39098
39098
|
if (false === res.cacheable) context.cacheable(false);
|
|
39099
|
-
|
|
39099
|
+
trace_JavaScriptTracer.endAsync({
|
|
39100
39100
|
name: "importModule",
|
|
39101
39101
|
processName: LOADER_PROCESS_NAME,
|
|
39102
39102
|
uuid,
|
|
@@ -39482,7 +39482,7 @@ async function runLoaders(compiler, context) {
|
|
|
39482
39482
|
const pitch = loaderState === external_rspack_wasi_browser_js_.JsLoaderState.Pitching;
|
|
39483
39483
|
const loaderName = extractLoaderName(currentLoaderObject.request);
|
|
39484
39484
|
let result;
|
|
39485
|
-
|
|
39485
|
+
trace_JavaScriptTracer.startAsync({
|
|
39486
39486
|
name: loaderName,
|
|
39487
39487
|
trackName: loaderName,
|
|
39488
39488
|
processName: LOADER_PROCESS_NAME,
|
|
@@ -39501,7 +39501,7 @@ async function runLoaders(compiler, context) {
|
|
|
39501
39501
|
if (loaderState === external_rspack_wasi_browser_js_.JsLoaderState.Normal) convertArgs(args, !!(null == currentLoaderObject ? void 0 : currentLoaderObject.raw));
|
|
39502
39502
|
result = await utils_runSyncOrAsync(fn, loaderContext, args) || [];
|
|
39503
39503
|
}
|
|
39504
|
-
|
|
39504
|
+
trace_JavaScriptTracer.endAsync({
|
|
39505
39505
|
name: loaderName,
|
|
39506
39506
|
trackName: loaderName,
|
|
39507
39507
|
processName: LOADER_PROCESS_NAME,
|
|
@@ -39583,7 +39583,7 @@ async function runLoaders(compiler, context) {
|
|
|
39583
39583
|
context.__internal__error = error;
|
|
39584
39584
|
} else context.__internal__error = e;
|
|
39585
39585
|
}
|
|
39586
|
-
|
|
39586
|
+
trace_JavaScriptTracer.endAsync({
|
|
39587
39587
|
name: "run_js_loaders",
|
|
39588
39588
|
uuid,
|
|
39589
39589
|
args: {
|
|
@@ -46637,13 +46637,13 @@ const applyExperimentsDefaults = (experiments, { development })=>{
|
|
|
46637
46637
|
D(experiments, "inlineConst", false);
|
|
46638
46638
|
D(experiments, "inlineEnum", false);
|
|
46639
46639
|
D(experiments, "typeReexportsPresence", false);
|
|
46640
|
-
D(experiments, "lazyBarrel",
|
|
46640
|
+
D(experiments, "lazyBarrel", true);
|
|
46641
46641
|
};
|
|
46642
46642
|
const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
46643
46643
|
if ("object" == typeof rspackFuture) {
|
|
46644
46644
|
D(rspackFuture, "bundlerInfo", {});
|
|
46645
46645
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
46646
|
-
D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-
|
|
46646
|
+
D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-bddc650e-20251012024608");
|
|
46647
46647
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
46648
46648
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
46649
46649
|
}
|
|
@@ -47012,7 +47012,7 @@ const applyOutputDefaults = (output, { context, outputModule, targetProperties:
|
|
|
47012
47012
|
D(output, "workerPublicPath", "");
|
|
47013
47013
|
D(output, "sourceMapFilename", "[file].map[query]");
|
|
47014
47014
|
defaults_F(output, "scriptType", ()=>output.module ? "module" : false);
|
|
47015
|
-
D(output, "charset",
|
|
47015
|
+
D(output, "charset", false);
|
|
47016
47016
|
D(output, "chunkLoadTimeout", 120000);
|
|
47017
47017
|
const { trustedTypes } = output;
|
|
47018
47018
|
if (trustedTypes) {
|
|
@@ -49321,166 +49321,6 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
49321
49321
|
};
|
|
49322
49322
|
})
|
|
49323
49323
|
});
|
|
49324
|
-
function traceHookPlugin_define_property(obj, key, value) {
|
|
49325
|
-
if (key in obj) Object.defineProperty(obj, key, {
|
|
49326
|
-
value: value,
|
|
49327
|
-
enumerable: true,
|
|
49328
|
-
configurable: true,
|
|
49329
|
-
writable: true
|
|
49330
|
-
});
|
|
49331
|
-
else obj[key] = value;
|
|
49332
|
-
return obj;
|
|
49333
|
-
}
|
|
49334
|
-
const traceHookPlugin_PLUGIN_NAME = "TraceHookPlugin";
|
|
49335
|
-
const PLUGIN_PROCESS_NAME = "Plugin Analysis";
|
|
49336
|
-
const makeInterceptorFor = (compilerName, tracer)=>(hookName)=>({
|
|
49337
|
-
register: (tapInfo)=>{
|
|
49338
|
-
const { name, type, fn: internalFn } = tapInfo;
|
|
49339
|
-
const newFn = name === traceHookPlugin_PLUGIN_NAME ? internalFn : makeNewTraceTapFn(compilerName, hookName, tracer, {
|
|
49340
|
-
name,
|
|
49341
|
-
type,
|
|
49342
|
-
fn: internalFn
|
|
49343
|
-
});
|
|
49344
|
-
return {
|
|
49345
|
-
...tapInfo,
|
|
49346
|
-
fn: newFn
|
|
49347
|
-
};
|
|
49348
|
-
}
|
|
49349
|
-
});
|
|
49350
|
-
const interceptAllHooksFor = (instance, tracer, logLabel)=>{
|
|
49351
|
-
if (Reflect.has(instance, "hooks")) for (const hookName of Object.keys(instance.hooks)){
|
|
49352
|
-
const hook = instance.hooks[hookName];
|
|
49353
|
-
if (hook && !hook._fakeHook) hook.intercept(makeInterceptorFor(logLabel, tracer)(hookName));
|
|
49354
|
-
}
|
|
49355
|
-
};
|
|
49356
|
-
const makeNewTraceTapFn = (compilerName, hookName, tracer, { name: pluginName, type, fn })=>{
|
|
49357
|
-
switch(type){
|
|
49358
|
-
case "promise":
|
|
49359
|
-
return (...args)=>{
|
|
49360
|
-
const uuid = tracer.uuid();
|
|
49361
|
-
tracer.startAsync({
|
|
49362
|
-
name: hookName,
|
|
49363
|
-
trackName: pluginName,
|
|
49364
|
-
processName: PLUGIN_PROCESS_NAME,
|
|
49365
|
-
uuid,
|
|
49366
|
-
args: {
|
|
49367
|
-
compilerName,
|
|
49368
|
-
hookName,
|
|
49369
|
-
pluginName
|
|
49370
|
-
}
|
|
49371
|
-
});
|
|
49372
|
-
const promise = fn(...args);
|
|
49373
|
-
return promise.then((r)=>{
|
|
49374
|
-
tracer.endAsync({
|
|
49375
|
-
name: hookName,
|
|
49376
|
-
trackName: pluginName,
|
|
49377
|
-
processName: PLUGIN_PROCESS_NAME,
|
|
49378
|
-
uuid,
|
|
49379
|
-
args: {
|
|
49380
|
-
compilerName,
|
|
49381
|
-
hookName,
|
|
49382
|
-
pluginName
|
|
49383
|
-
}
|
|
49384
|
-
});
|
|
49385
|
-
return r;
|
|
49386
|
-
});
|
|
49387
|
-
};
|
|
49388
|
-
case "async":
|
|
49389
|
-
return (...args)=>{
|
|
49390
|
-
const uuid = tracer.uuid();
|
|
49391
|
-
tracer.startAsync({
|
|
49392
|
-
name: hookName,
|
|
49393
|
-
trackName: pluginName,
|
|
49394
|
-
processName: PLUGIN_PROCESS_NAME,
|
|
49395
|
-
uuid,
|
|
49396
|
-
args: {
|
|
49397
|
-
compilerName,
|
|
49398
|
-
hookName,
|
|
49399
|
-
pluginName
|
|
49400
|
-
}
|
|
49401
|
-
});
|
|
49402
|
-
const callback = args.pop();
|
|
49403
|
-
fn(...args, (...r)=>{
|
|
49404
|
-
tracer.endAsync({
|
|
49405
|
-
name: hookName,
|
|
49406
|
-
trackName: pluginName,
|
|
49407
|
-
processName: PLUGIN_PROCESS_NAME,
|
|
49408
|
-
uuid,
|
|
49409
|
-
args: {
|
|
49410
|
-
compilerName,
|
|
49411
|
-
hookName,
|
|
49412
|
-
pluginName
|
|
49413
|
-
}
|
|
49414
|
-
});
|
|
49415
|
-
callback(...r);
|
|
49416
|
-
});
|
|
49417
|
-
};
|
|
49418
|
-
case "sync":
|
|
49419
|
-
return (...args)=>{
|
|
49420
|
-
const uuid = tracer.uuid();
|
|
49421
|
-
if (pluginName === traceHookPlugin_PLUGIN_NAME) return fn(...args);
|
|
49422
|
-
tracer.startAsync({
|
|
49423
|
-
name: hookName,
|
|
49424
|
-
trackName: pluginName,
|
|
49425
|
-
processName: PLUGIN_PROCESS_NAME,
|
|
49426
|
-
uuid,
|
|
49427
|
-
args: {
|
|
49428
|
-
compilerName,
|
|
49429
|
-
hookName,
|
|
49430
|
-
pluginName
|
|
49431
|
-
}
|
|
49432
|
-
});
|
|
49433
|
-
let r;
|
|
49434
|
-
try {
|
|
49435
|
-
r = fn(...args);
|
|
49436
|
-
} catch (err) {
|
|
49437
|
-
tracer.endAsync({
|
|
49438
|
-
name: hookName,
|
|
49439
|
-
trackName: pluginName,
|
|
49440
|
-
processName: PLUGIN_PROCESS_NAME,
|
|
49441
|
-
uuid,
|
|
49442
|
-
args: {
|
|
49443
|
-
hookName,
|
|
49444
|
-
pluginName
|
|
49445
|
-
}
|
|
49446
|
-
});
|
|
49447
|
-
throw err;
|
|
49448
|
-
}
|
|
49449
|
-
tracer.endAsync({
|
|
49450
|
-
name: hookName,
|
|
49451
|
-
trackName: pluginName,
|
|
49452
|
-
processName: PLUGIN_PROCESS_NAME,
|
|
49453
|
-
uuid,
|
|
49454
|
-
args: {
|
|
49455
|
-
compilerName,
|
|
49456
|
-
hookName,
|
|
49457
|
-
pluginName
|
|
49458
|
-
}
|
|
49459
|
-
});
|
|
49460
|
-
return r;
|
|
49461
|
-
};
|
|
49462
|
-
default:
|
|
49463
|
-
return fn;
|
|
49464
|
-
}
|
|
49465
|
-
};
|
|
49466
|
-
let compilerId = 0;
|
|
49467
|
-
class TraceHookPlugin {
|
|
49468
|
-
apply(compiler) {
|
|
49469
|
-
const compilerName = compiler.name || (compilerId++).toString();
|
|
49470
|
-
for (const hookName of Object.keys(compiler.hooks)){
|
|
49471
|
-
const hook = compiler.hooks[hookName];
|
|
49472
|
-
if (hook) hook.intercept(makeInterceptorFor(compilerName, JavaScriptTracer)(hookName));
|
|
49473
|
-
}
|
|
49474
|
-
compiler.hooks.compilation.tap(traceHookPlugin_PLUGIN_NAME, (compilation, { normalModuleFactory, contextModuleFactory })=>{
|
|
49475
|
-
interceptAllHooksFor(compilation, JavaScriptTracer, "Compilation");
|
|
49476
|
-
interceptAllHooksFor(normalModuleFactory, JavaScriptTracer, "Normal Module Factory");
|
|
49477
|
-
interceptAllHooksFor(contextModuleFactory, JavaScriptTracer, "Context Module Factory");
|
|
49478
|
-
});
|
|
49479
|
-
}
|
|
49480
|
-
constructor(){
|
|
49481
|
-
traceHookPlugin_define_property(this, "name", traceHookPlugin_PLUGIN_NAME);
|
|
49482
|
-
}
|
|
49483
|
-
}
|
|
49484
49324
|
__webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
49485
49325
|
const checkVersion = ()=>{};
|
|
49486
49326
|
function NativeWatchFileSystem_check_private_redeclaration(obj, privateCollection) {
|
|
@@ -50549,7 +50389,6 @@ class Compiler {
|
|
|
50549
50389
|
this.resolverFactory = new ResolverFactory(options.resolve.pnp ?? getPnpDefault(), options.resolve, options.resolveLoader);
|
|
50550
50390
|
new JsLoaderRspackPlugin(this).apply(this);
|
|
50551
50391
|
new ExecuteModulePlugin().apply(this);
|
|
50552
|
-
new TraceHookPlugin().apply(this);
|
|
50553
50392
|
}
|
|
50554
50393
|
}
|
|
50555
50394
|
function build(callback) {
|
|
@@ -50744,7 +50583,7 @@ class MultiStats {
|
|
|
50744
50583
|
return obj;
|
|
50745
50584
|
});
|
|
50746
50585
|
if (childOptions.version) {
|
|
50747
|
-
obj.rspackVersion = "1.5.9-canary-
|
|
50586
|
+
obj.rspackVersion = "1.5.9-canary-bddc650e-20251012024608";
|
|
50748
50587
|
obj.version = "5.75.0";
|
|
50749
50588
|
}
|
|
50750
50589
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -52052,7 +51891,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52052
51891
|
},
|
|
52053
51892
|
version: (object)=>{
|
|
52054
51893
|
object.version = "5.75.0";
|
|
52055
|
-
object.rspackVersion = "1.5.9-canary-
|
|
51894
|
+
object.rspackVersion = "1.5.9-canary-bddc650e-20251012024608";
|
|
52056
51895
|
},
|
|
52057
51896
|
env: (object, _compilation, _context, { _env })=>{
|
|
52058
51897
|
object.env = _env;
|
|
@@ -56122,8 +55961,12 @@ function getDefaultEntryRuntime(paths, options, compiler) {
|
|
|
56122
55961
|
const runtimePluginVars = [];
|
|
56123
55962
|
for(let i = 0; i < runtimePlugins.length; i++){
|
|
56124
55963
|
const runtimePluginVar = `__module_federation_runtime_plugin_${i}__`;
|
|
56125
|
-
|
|
56126
|
-
|
|
55964
|
+
const pluginSpec = runtimePlugins[i];
|
|
55965
|
+
const pluginPath = Array.isArray(pluginSpec) ? pluginSpec[0] : pluginSpec;
|
|
55966
|
+
const pluginParams = Array.isArray(pluginSpec) ? pluginSpec[1] : void 0;
|
|
55967
|
+
runtimePluginImports.push(`import ${runtimePluginVar} from ${JSON.stringify(pluginPath)}`);
|
|
55968
|
+
const paramsCode = void 0 === pluginParams ? "undefined" : JSON.stringify(pluginParams);
|
|
55969
|
+
runtimePluginVars.push(`${runtimePluginVar}(${paramsCode})`);
|
|
56127
55970
|
}
|
|
56128
55971
|
const content = [
|
|
56129
55972
|
`import __module_federation_bundler_runtime__ from ${JSON.stringify(paths.bundlerRuntime)}`,
|
|
@@ -56132,7 +55975,7 @@ function getDefaultEntryRuntime(paths, options, compiler) {
|
|
|
56132
55975
|
`const __module_federation_remote_infos__ = ${JSON.stringify(remoteInfos)}`,
|
|
56133
55976
|
`const __module_federation_container_name__ = ${JSON.stringify(options.name ?? compiler.options.output.uniqueName)}`,
|
|
56134
55977
|
`const __module_federation_share_strategy__ = ${JSON.stringify(options.shareStrategy ?? "version-first")}`,
|
|
56135
|
-
'if((__webpack_require__.initializeSharingData||__webpack_require__.initializeExposesData)&&__webpack_require__.federation){var __webpack_require___remotesLoadingData,__webpack_require___remotesLoadingData1,__webpack_require___initializeSharingData,__webpack_require___consumesLoadingData,__webpack_require___consumesLoadingData1,__webpack_require___initializeExposesData,__webpack_require___consumesLoadingData2;const override=(obj,key,value)=>{if(!obj)return;if(obj[key])obj[key]=value};const merge=(obj,key,fn)=>{const value=fn();if(Array.isArray(value)){var _obj,_key;var _;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=[];obj[key].push(...value)}else if(typeof value==="object"&&value!==null){var _obj1,_key1;var _1;(_1=(_obj1=obj)[_key1=key])!==null&&_1!==void 0?_1:_obj1[_key1]={};Object.assign(obj[key],value)}};const early=(obj,key,initial)=>{var _obj,_key;var _;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=initial()};var __webpack_require___remotesLoadingData_chunkMapping;const remotesLoadingChunkMapping=(__webpack_require___remotesLoadingData_chunkMapping=(__webpack_require___remotesLoadingData=__webpack_require__.remotesLoadingData)===null||__webpack_require___remotesLoadingData===void 0?void 0:__webpack_require___remotesLoadingData.chunkMapping)!==null&&__webpack_require___remotesLoadingData_chunkMapping!==void 0?__webpack_require___remotesLoadingData_chunkMapping:{};var __webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping;const remotesLoadingModuleIdToRemoteDataMapping=(__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping=(__webpack_require___remotesLoadingData1=__webpack_require__.remotesLoadingData)===null||__webpack_require___remotesLoadingData1===void 0?void 0:__webpack_require___remotesLoadingData1.moduleIdToRemoteDataMapping)!==null&&__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping!==void 0?__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping:{};var __webpack_require___initializeSharingData_scopeToSharingDataMapping;const initializeSharingScopeToInitDataMapping=(__webpack_require___initializeSharingData_scopeToSharingDataMapping=(__webpack_require___initializeSharingData=__webpack_require__.initializeSharingData)===null||__webpack_require___initializeSharingData===void 0?void 0:__webpack_require___initializeSharingData.scopeToSharingDataMapping)!==null&&__webpack_require___initializeSharingData_scopeToSharingDataMapping!==void 0?__webpack_require___initializeSharingData_scopeToSharingDataMapping:{};var __webpack_require___consumesLoadingData_chunkMapping;const consumesLoadingChunkMapping=(__webpack_require___consumesLoadingData_chunkMapping=(__webpack_require___consumesLoadingData=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData===void 0?void 0:__webpack_require___consumesLoadingData.chunkMapping)!==null&&__webpack_require___consumesLoadingData_chunkMapping!==void 0?__webpack_require___consumesLoadingData_chunkMapping:{};var __webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping;const consumesLoadingModuleToConsumeDataMapping=(__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping=(__webpack_require___consumesLoadingData1=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData1===void 0?void 0:__webpack_require___consumesLoadingData1.moduleIdToConsumeDataMapping)!==null&&__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping!==void 0?__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping:{};const consumesLoadinginstalledModules={};const initializeSharingInitPromises=[];const initializeSharingInitTokens={};const containerShareScope=(__webpack_require___initializeExposesData=__webpack_require__.initializeExposesData)===null||__webpack_require___initializeExposesData===void 0?void 0:__webpack_require___initializeExposesData.shareScope;for(const key in __module_federation_bundler_runtime__){__webpack_require__.federation[key]=__module_federation_bundler_runtime__[key]}early(__webpack_require__.federation,"consumesLoadingModuleToHandlerMapping",()=>{const consumesLoadingModuleToHandlerMapping={};for(let[moduleId,data]of Object.entries(consumesLoadingModuleToConsumeDataMapping)){consumesLoadingModuleToHandlerMapping[moduleId]={getter:data.fallback,shareInfo:{shareConfig:{fixedDependencies:false,requiredVersion:data.requiredVersion,strictVersion:data.strictVersion,singleton:data.singleton,eager:data.eager},scope:[data.shareScope]},shareKey:data.shareKey}}return consumesLoadingModuleToHandlerMapping});early(__webpack_require__.federation,"initOptions",()=>({}));early(__webpack_require__.federation.initOptions,"name",()=>__module_federation_container_name__);early(__webpack_require__.federation.initOptions,"shareStrategy",()=>__module_federation_share_strategy__);early(__webpack_require__.federation.initOptions,"shared",()=>{const shared={};for(let[scope,stages]of Object.entries(initializeSharingScopeToInitDataMapping)){for(let stage of stages){if(typeof stage==="object"&&stage!==null){const{name,version,factory,eager,singleton,requiredVersion,strictVersion}=stage;const shareConfig={};const isValidValue=function(val){return typeof val!=="undefined"};if(isValidValue(singleton)){shareConfig.singleton=singleton}if(isValidValue(requiredVersion)){shareConfig.requiredVersion=requiredVersion}if(isValidValue(eager)){shareConfig.eager=eager}if(isValidValue(strictVersion)){shareConfig.strictVersion=strictVersion}const options={version,scope:[scope],shareConfig,get:factory};if(shared[name]){shared[name].push(options)}else{shared[name]=[options]}}}}return shared});merge(__webpack_require__.federation.initOptions,"remotes",()=>Object.values(__module_federation_remote_infos__).flat().filter(remote=>remote.externalType==="script"));merge(__webpack_require__.federation.initOptions,"plugins",()=>__module_federation_runtime_plugins__);early(__webpack_require__.federation,"bundlerRuntimeOptions",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions,"remotes",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>remotesLoadingChunkMapping);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{const remotesLoadingIdToExternalAndNameMappingMapping={};for(let[moduleId,data]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){remotesLoadingIdToExternalAndNameMappingMapping[moduleId]=[data.shareScope,data.name,data.externalModuleId,data.remoteName]}return remotesLoadingIdToExternalAndNameMappingMapping});early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>__webpack_require__);merge(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{const idToRemoteMap={};for(let[id,remoteData]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){const info=__module_federation_remote_infos__[remoteData.remoteName];if(info)idToRemoteMap[id]=info}return idToRemoteMap});override(__webpack_require__,"S",__webpack_require__.federation.bundlerRuntime.S);if(__webpack_require__.federation.attachShareScopeMap){__webpack_require__.federation.attachShareScopeMap(__webpack_require__)}override(__webpack_require__.f,"remotes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.remotes({chunkId,promises,chunkMapping:remotesLoadingChunkMapping,idToExternalAndNameMapping:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:__webpack_require__}));override(__webpack_require__.f,"consumes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.consumes({chunkId,promises,chunkMapping:consumesLoadingChunkMapping,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping,installedModules:consumesLoadinginstalledModules,webpackRequire:__webpack_require__}));override(__webpack_require__,"I",(name,initScope)=>__webpack_require__.federation.bundlerRuntime.I({shareScopeName:name,initScope,initPromises:initializeSharingInitPromises,initTokens:initializeSharingInitTokens,webpackRequire:__webpack_require__}));override(__webpack_require__,"initContainer",(shareScope,initScope,remoteEntryInitOptions)=>__webpack_require__.federation.bundlerRuntime.initContainerEntry({shareScope,initScope,remoteEntryInitOptions,shareScopeKey:containerShareScope,webpackRequire:__webpack_require__}));override(__webpack_require__,"getContainer",(module1,getScope)=>{var moduleMap=__webpack_require__.initializeExposesData.moduleMap;__webpack_require__.R=getScope;getScope=Object.prototype.hasOwnProperty.call(moduleMap,module1)?moduleMap[module1]():Promise.resolve().then(()=>{throw new Error(\'Module "\'+module1+\'" does not exist in container.\')});__webpack_require__.R=undefined;return getScope});__webpack_require__.federation.instance=__webpack_require__.federation.runtime.init(__webpack_require__.federation.initOptions);if((__webpack_require___consumesLoadingData2=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData2===void 0?void 0:__webpack_require___consumesLoadingData2.initialConsumes){__webpack_require__.federation.bundlerRuntime.installInitialConsumes({webpackRequire:__webpack_require__,installedModules:consumesLoadinginstalledModules,initialConsumes:__webpack_require__.consumesLoadingData.initialConsumes,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping})}}'
|
|
55978
|
+
'if((__webpack_require__.initializeSharingData||__webpack_require__.initializeExposesData)&&__webpack_require__.federation){var __webpack_require___remotesLoadingData,__webpack_require___remotesLoadingData1,__webpack_require___initializeSharingData,__webpack_require___consumesLoadingData,__webpack_require___consumesLoadingData1,__webpack_require___initializeExposesData,__webpack_require___consumesLoadingData2;const override=(obj,key,value)=>{if(!obj)return;if(obj[key])obj[key]=value};const merge=(obj,key,fn)=>{const value=fn();if(Array.isArray(value)){var _obj,_key;var _;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=[];obj[key].push(...value)}else if(typeof value==="object"&&value!==null){var _obj1,_key1;var _1;(_1=(_obj1=obj)[_key1=key])!==null&&_1!==void 0?_1:_obj1[_key1]={};Object.assign(obj[key],value)}};const early=(obj,key,initial)=>{var _obj,_key;var _;(_=(_obj=obj)[_key=key])!==null&&_!==void 0?_:_obj[_key]=initial()};var __webpack_require___remotesLoadingData_chunkMapping;const remotesLoadingChunkMapping=(__webpack_require___remotesLoadingData_chunkMapping=(__webpack_require___remotesLoadingData=__webpack_require__.remotesLoadingData)===null||__webpack_require___remotesLoadingData===void 0?void 0:__webpack_require___remotesLoadingData.chunkMapping)!==null&&__webpack_require___remotesLoadingData_chunkMapping!==void 0?__webpack_require___remotesLoadingData_chunkMapping:{};var __webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping;const remotesLoadingModuleIdToRemoteDataMapping=(__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping=(__webpack_require___remotesLoadingData1=__webpack_require__.remotesLoadingData)===null||__webpack_require___remotesLoadingData1===void 0?void 0:__webpack_require___remotesLoadingData1.moduleIdToRemoteDataMapping)!==null&&__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping!==void 0?__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping:{};var __webpack_require___initializeSharingData_scopeToSharingDataMapping;const initializeSharingScopeToInitDataMapping=(__webpack_require___initializeSharingData_scopeToSharingDataMapping=(__webpack_require___initializeSharingData=__webpack_require__.initializeSharingData)===null||__webpack_require___initializeSharingData===void 0?void 0:__webpack_require___initializeSharingData.scopeToSharingDataMapping)!==null&&__webpack_require___initializeSharingData_scopeToSharingDataMapping!==void 0?__webpack_require___initializeSharingData_scopeToSharingDataMapping:{};var __webpack_require___consumesLoadingData_chunkMapping;const consumesLoadingChunkMapping=(__webpack_require___consumesLoadingData_chunkMapping=(__webpack_require___consumesLoadingData=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData===void 0?void 0:__webpack_require___consumesLoadingData.chunkMapping)!==null&&__webpack_require___consumesLoadingData_chunkMapping!==void 0?__webpack_require___consumesLoadingData_chunkMapping:{};var __webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping;const consumesLoadingModuleToConsumeDataMapping=(__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping=(__webpack_require___consumesLoadingData1=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData1===void 0?void 0:__webpack_require___consumesLoadingData1.moduleIdToConsumeDataMapping)!==null&&__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping!==void 0?__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping:{};const consumesLoadinginstalledModules={};const initializeSharingInitPromises=[];const initializeSharingInitTokens={};const containerShareScope=(__webpack_require___initializeExposesData=__webpack_require__.initializeExposesData)===null||__webpack_require___initializeExposesData===void 0?void 0:__webpack_require___initializeExposesData.shareScope;for(const key in __module_federation_bundler_runtime__){__webpack_require__.federation[key]=__module_federation_bundler_runtime__[key]}early(__webpack_require__.federation,"consumesLoadingModuleToHandlerMapping",()=>{const consumesLoadingModuleToHandlerMapping={};for(let[moduleId,data]of Object.entries(consumesLoadingModuleToConsumeDataMapping)){consumesLoadingModuleToHandlerMapping[moduleId]={getter:data.fallback,shareInfo:{shareConfig:{fixedDependencies:false,requiredVersion:data.requiredVersion,strictVersion:data.strictVersion,singleton:data.singleton,eager:data.eager},scope:[data.shareScope]},shareKey:data.shareKey}}return consumesLoadingModuleToHandlerMapping});early(__webpack_require__.federation,"initOptions",()=>({}));early(__webpack_require__.federation.initOptions,"name",()=>__module_federation_container_name__);early(__webpack_require__.federation.initOptions,"shareStrategy",()=>__module_federation_share_strategy__);early(__webpack_require__.federation.initOptions,"shared",()=>{const shared={};for(let[scope,stages]of Object.entries(initializeSharingScopeToInitDataMapping)){for(let stage of stages){if(typeof stage==="object"&&stage!==null){const{name,version,factory,eager,singleton,requiredVersion,strictVersion}=stage;const shareConfig={};const isValidValue=function(val){return typeof val!=="undefined"};if(isValidValue(singleton)){shareConfig.singleton=singleton}if(isValidValue(requiredVersion)){shareConfig.requiredVersion=requiredVersion}if(isValidValue(eager)){shareConfig.eager=eager}if(isValidValue(strictVersion)){shareConfig.strictVersion=strictVersion}const options={version,scope:[scope],shareConfig,get:factory};if(shared[name]){shared[name].push(options)}else{shared[name]=[options]}}}}return shared});merge(__webpack_require__.federation.initOptions,"remotes",()=>Object.values(__module_federation_remote_infos__).flat().filter(remote=>remote.externalType==="script"));merge(__webpack_require__.federation.initOptions,"plugins",()=>__module_federation_runtime_plugins__);early(__webpack_require__.federation,"bundlerRuntimeOptions",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions,"remotes",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>remotesLoadingChunkMapping);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>__module_federation_remote_infos__);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{const remotesLoadingIdToExternalAndNameMappingMapping={};for(let[moduleId,data]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){remotesLoadingIdToExternalAndNameMappingMapping[moduleId]=[data.shareScope,data.name,data.externalModuleId,data.remoteName]}return remotesLoadingIdToExternalAndNameMappingMapping});early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>__webpack_require__);merge(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{const idToRemoteMap={};for(let[id,remoteData]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){const info=__module_federation_remote_infos__[remoteData.remoteName];if(info)idToRemoteMap[id]=info}return idToRemoteMap});override(__webpack_require__,"S",__webpack_require__.federation.bundlerRuntime.S);if(__webpack_require__.federation.attachShareScopeMap){__webpack_require__.federation.attachShareScopeMap(__webpack_require__)}override(__webpack_require__.f,"remotes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.remotes({chunkId,promises,chunkMapping:remotesLoadingChunkMapping,idToExternalAndNameMapping:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:__webpack_require__}));override(__webpack_require__.f,"consumes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.consumes({chunkId,promises,chunkMapping:consumesLoadingChunkMapping,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping,installedModules:consumesLoadinginstalledModules,webpackRequire:__webpack_require__}));override(__webpack_require__,"I",(name,initScope)=>__webpack_require__.federation.bundlerRuntime.I({shareScopeName:name,initScope,initPromises:initializeSharingInitPromises,initTokens:initializeSharingInitTokens,webpackRequire:__webpack_require__}));override(__webpack_require__,"initContainer",(shareScope,initScope,remoteEntryInitOptions)=>__webpack_require__.federation.bundlerRuntime.initContainerEntry({shareScope,initScope,remoteEntryInitOptions,shareScopeKey:containerShareScope,webpackRequire:__webpack_require__}));override(__webpack_require__,"getContainer",(module1,getScope)=>{var moduleMap=__webpack_require__.initializeExposesData.moduleMap;__webpack_require__.R=getScope;getScope=Object.prototype.hasOwnProperty.call(moduleMap,module1)?moduleMap[module1]():Promise.resolve().then(()=>{throw new Error(\'Module "\'+module1+\'" does not exist in container.\')});__webpack_require__.R=undefined;return getScope});__webpack_require__.federation.instance=__webpack_require__.federation.runtime.init(__webpack_require__.federation.initOptions);if((__webpack_require___consumesLoadingData2=__webpack_require__.consumesLoadingData)===null||__webpack_require___consumesLoadingData2===void 0?void 0:__webpack_require___consumesLoadingData2.initialConsumes){__webpack_require__.federation.bundlerRuntime.installInitialConsumes({webpackRequire:__webpack_require__,installedModules:consumesLoadinginstalledModules,initialConsumes:__webpack_require__.consumesLoadingData.initialConsumes,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping})}}'
|
|
56136
55979
|
].join(";");
|
|
56137
55980
|
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${content}`;
|
|
56138
55981
|
}
|
|
@@ -56517,7 +56360,7 @@ function transformSync(source, options) {
|
|
|
56517
56360
|
const _options = JSON.stringify(options || {});
|
|
56518
56361
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56519
56362
|
}
|
|
56520
|
-
const exports_rspackVersion = "1.5.9-canary-
|
|
56363
|
+
const exports_rspackVersion = "1.5.9-canary-bddc650e-20251012024608";
|
|
56521
56364
|
const exports_version = "5.75.0";
|
|
56522
56365
|
const exports_WebpackError = Error;
|
|
56523
56366
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
|
@@ -56574,13 +56417,13 @@ const sharing = {
|
|
|
56574
56417
|
const exports_experiments = {
|
|
56575
56418
|
globalTrace: {
|
|
56576
56419
|
async register (filter, layer, output) {
|
|
56577
|
-
await
|
|
56420
|
+
await trace_JavaScriptTracer.initJavaScriptTrace(layer, output);
|
|
56578
56421
|
(0, external_rspack_wasi_browser_js_.registerGlobalTrace)(filter, layer, output);
|
|
56579
|
-
|
|
56422
|
+
trace_JavaScriptTracer.initCpuProfiler();
|
|
56580
56423
|
},
|
|
56581
56424
|
async cleanup () {
|
|
56582
|
-
await
|
|
56583
|
-
await (0, external_rspack_wasi_browser_js_.syncTraceEvent)(
|
|
56425
|
+
await trace_JavaScriptTracer.cleanupJavaScriptTrace();
|
|
56426
|
+
await (0, external_rspack_wasi_browser_js_.syncTraceEvent)(trace_JavaScriptTracer.events);
|
|
56584
56427
|
(0, external_rspack_wasi_browser_js_.cleanupGlobalTrace)();
|
|
56585
56428
|
}
|
|
56586
56429
|
},
|
|
@@ -56822,7 +56665,7 @@ function toHttpUrl(request) {
|
|
|
56822
56665
|
return;
|
|
56823
56666
|
}
|
|
56824
56667
|
}
|
|
56825
|
-
function
|
|
56668
|
+
function BrowserRequirePlugin_define_property(obj, key, value) {
|
|
56826
56669
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
56827
56670
|
value: value,
|
|
56828
56671
|
enumerable: true,
|
|
@@ -56838,8 +56681,16 @@ const unsafeExecute = (code, runtime)=>{
|
|
|
56838
56681
|
};
|
|
56839
56682
|
class BrowserRequirePlugin {
|
|
56840
56683
|
apply(compiler) {
|
|
56841
|
-
const execute = this.options
|
|
56684
|
+
const { execute, modules } = this.options;
|
|
56842
56685
|
compiler.__internal_browser_require = function browserRequire(id) {
|
|
56686
|
+
if ("function" == typeof modules) {
|
|
56687
|
+
const module = modules(id);
|
|
56688
|
+
if (module) return module;
|
|
56689
|
+
} else if ("object" == typeof modules) {
|
|
56690
|
+
const module = modules[id];
|
|
56691
|
+
if (module) return module;
|
|
56692
|
+
}
|
|
56693
|
+
if (!execute) throw Error(`You should provide 'execute' option if there's no mapping for module '${id}'`);
|
|
56843
56694
|
const { path: loaderPath } = (0, external_rspack_wasi_browser_js_.sync)("", id);
|
|
56844
56695
|
if (!loaderPath) throw new Error(`Cannot find loader of ${id}`);
|
|
56845
56696
|
const data = browser_fs["default"].readFileSync(loaderPath);
|
|
@@ -56862,11 +56713,11 @@ class BrowserRequirePlugin {
|
|
|
56862
56713
|
};
|
|
56863
56714
|
}
|
|
56864
56715
|
constructor(options){
|
|
56865
|
-
|
|
56716
|
+
BrowserRequirePlugin_define_property(this, "options", void 0);
|
|
56866
56717
|
this.options = options;
|
|
56867
56718
|
}
|
|
56868
56719
|
}
|
|
56869
|
-
|
|
56720
|
+
BrowserRequirePlugin_define_property(BrowserRequirePlugin, "unsafeExecute", unsafeExecute);
|
|
56870
56721
|
const builtinMemFs = {
|
|
56871
56722
|
fs: browser_fs.fs,
|
|
56872
56723
|
volume: browser_fs.volume
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -2723,6 +2723,11 @@ export interface RawRslibPluginOptions {
|
|
|
2723
2723
|
* @default `false`
|
|
2724
2724
|
*/
|
|
2725
2725
|
compactExternalModuleDynamicImport?: boolean
|
|
2726
|
+
/**
|
|
2727
|
+
* Add shims for javascript/esm modules
|
|
2728
|
+
* @default `false`
|
|
2729
|
+
*/
|
|
2730
|
+
forceNodeShims?: boolean
|
|
2726
2731
|
}
|
|
2727
2732
|
|
|
2728
2733
|
export interface RawRspackFuture {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.5.9-canary-
|
|
3
|
+
"version": "1.5.9-canary-bddc650e-20251012024608",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"directory": "packages/rspack-browser"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@napi-rs/wasm-runtime": "
|
|
32
|
+
"@napi-rs/wasm-runtime": "1.0.7",
|
|
33
33
|
"@rspack/lite-tapable": "1.0.1",
|
|
34
34
|
"@swc/types": "0.1.25",
|
|
35
35
|
"@types/watchpack": "^2.4.4",
|