@rspack-canary/browser 1.4.12-canary-becf0a0e-20250808091433 → 1.4.12-canary-51b82a4d-20250815075104
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/Compiler.d.ts +5 -0
- package/dist/Module.d.ts +3 -14
- package/dist/NativeWatchFileSystem.d.ts +1 -0
- package/dist/VirtualModulesPlugin.d.ts +12 -0
- package/dist/browser/fs.d.ts +6 -6
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +10 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/config/normalization.d.ts +6 -0
- package/dist/config/types.d.ts +11 -0
- package/dist/exports.d.ts +3 -2
- package/dist/index.mjs +361 -291
- package/dist/rspack.wasi-browser.js +2 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/schema/config.d.ts +12 -0
- package/package.json +3 -3
- package/dist/lib/NormalModuleReplacementPlugin.d.ts +0 -29
package/dist/index.mjs
CHANGED
|
@@ -40414,6 +40414,7 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
40414
40414
|
importMeta: parser.importMeta,
|
|
40415
40415
|
url: null == (_parser_url = parser.url) ? void 0 : _parser_url.toString(),
|
|
40416
40416
|
exprContextCritical: parser.exprContextCritical,
|
|
40417
|
+
unknownContextCritical: parser.unknownContextCritical,
|
|
40417
40418
|
wrappedContextCritical: parser.wrappedContextCritical,
|
|
40418
40419
|
wrappedContextRegExp: parser.wrappedContextRegExp,
|
|
40419
40420
|
exportsPresence: false === parser.exportsPresence ? "false" : parser.exportsPresence,
|
|
@@ -43969,7 +43970,7 @@ const ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def)=>{
|
|
|
43969
43970
|
inst.keyType = def.keyType;
|
|
43970
43971
|
inst.valueType = def.valueType;
|
|
43971
43972
|
});
|
|
43972
|
-
function
|
|
43973
|
+
function schemas_record(keyType, valueType, params) {
|
|
43973
43974
|
return new ZodRecord({
|
|
43974
43975
|
type: "record",
|
|
43975
43976
|
keyType,
|
|
@@ -44292,7 +44293,7 @@ const getDllReferencePluginOptionsSchema = memoize(()=>{
|
|
|
44292
44293
|
exports: schemas_array(schemas_string()).or(literal(true)),
|
|
44293
44294
|
id: schemas_string().or(numberOrInfinity)
|
|
44294
44295
|
}).partial();
|
|
44295
|
-
const dllReferencePluginOptionsContent =
|
|
44296
|
+
const dllReferencePluginOptionsContent = schemas_record(schemas_string(), dllReferencePluginOptionsContentItem);
|
|
44296
44297
|
const dllReferencePluginOptionsSourceType = schemas_enum([
|
|
44297
44298
|
"var",
|
|
44298
44299
|
"assign",
|
|
@@ -44351,7 +44352,7 @@ const getHtmlPluginOptionsSchema = memoize(()=>{
|
|
|
44351
44352
|
error: "HtmlRspackPlugin does not support template path with loader yet"
|
|
44352
44353
|
}),
|
|
44353
44354
|
templateContent: schemas_string().or(templateRenderFunction),
|
|
44354
|
-
templateParameters:
|
|
44355
|
+
templateParameters: schemas_record(schemas_string(), schemas_string()).or(schemas_boolean()).or(templateParamFunction),
|
|
44355
44356
|
inject: schemas_enum([
|
|
44356
44357
|
"head",
|
|
44357
44358
|
"body"
|
|
@@ -44386,7 +44387,7 @@ const getHtmlPluginOptionsSchema = memoize(()=>{
|
|
|
44386
44387
|
minify: schemas_boolean(),
|
|
44387
44388
|
title: schemas_string(),
|
|
44388
44389
|
favicon: schemas_string(),
|
|
44389
|
-
meta:
|
|
44390
|
+
meta: schemas_record(schemas_string(), schemas_string().or(schemas_record(schemas_string(), schemas_string()))),
|
|
44390
44391
|
hash: schemas_boolean()
|
|
44391
44392
|
}).partial();
|
|
44392
44393
|
});
|
|
@@ -45264,23 +45265,40 @@ const getFullServerUrl = ({ serverUrl, prefix })=>{
|
|
|
45264
45265
|
if (!serverUrl) return lazyCompilationPrefix;
|
|
45265
45266
|
return serverUrl + (serverUrl.endsWith("/") ? lazyCompilationPrefix.slice(1) : lazyCompilationPrefix);
|
|
45266
45267
|
};
|
|
45268
|
+
const DEPRECATED_LAZY_COMPILATION_OPTIONS_WARN = "The `experiments.lazyCompilation` option is deprecated, please use the configuration top level `lazyCompilation` instead.";
|
|
45269
|
+
const REPEAT_LAZY_COMPILATION_OPTIONS_WARN = "Both top-level `lazyCompilation` and `experiments.lazyCompilation` options are set. The top-level `lazyCompilation` configuration will take precedence.";
|
|
45267
45270
|
const lazyCompilationMiddleware = (compiler)=>{
|
|
45268
45271
|
if (compiler instanceof MultiCompiler) {
|
|
45269
45272
|
const middlewareByCompiler = new Map();
|
|
45270
45273
|
let i = 0;
|
|
45274
|
+
let isReportDeprecatedWarned = false;
|
|
45275
|
+
let isReportRepeatWarned = false;
|
|
45271
45276
|
for (const c of compiler.compilers){
|
|
45272
|
-
if (
|
|
45277
|
+
if (c.options.experiments.lazyCompilation) {
|
|
45278
|
+
if (c.name) console.warn(`The 'experiments.lazyCompilation' option in compiler named '${c.name}' is deprecated, please use the Configuration top level 'lazyCompilation' instead.`);
|
|
45279
|
+
else if (!isReportDeprecatedWarned) {
|
|
45280
|
+
console.warn(DEPRECATED_LAZY_COMPILATION_OPTIONS_WARN);
|
|
45281
|
+
isReportDeprecatedWarned = true;
|
|
45282
|
+
}
|
|
45283
|
+
}
|
|
45284
|
+
if (c.options.lazyCompilation && c.options.experiments.lazyCompilation) {
|
|
45285
|
+
if (c.name) console.warn(`The top-level 'lazyCompilation' option in compiler named '${c.name}' will override the 'experiments.lazyCompilation' option.`);
|
|
45286
|
+
else if (!isReportRepeatWarned) {
|
|
45287
|
+
console.warn(REPEAT_LAZY_COMPILATION_OPTIONS_WARN);
|
|
45288
|
+
isReportRepeatWarned = true;
|
|
45289
|
+
}
|
|
45290
|
+
}
|
|
45291
|
+
if (!c.options.lazyCompilation && !c.options.experiments.lazyCompilation) continue;
|
|
45273
45292
|
const options = {
|
|
45274
|
-
...c.options.experiments.lazyCompilation
|
|
45293
|
+
...c.options.experiments.lazyCompilation,
|
|
45294
|
+
...c.options.lazyCompilation
|
|
45275
45295
|
};
|
|
45276
45296
|
const prefix = options.prefix || LAZY_COMPILATION_PREFIX;
|
|
45277
45297
|
options.prefix = `${prefix}__${i++}`;
|
|
45278
|
-
const activeModules = new
|
|
45298
|
+
const activeModules = new Set();
|
|
45279
45299
|
const filesByKey = new Map();
|
|
45280
|
-
|
|
45281
|
-
|
|
45282
|
-
middlewareByCompiler.set(options.prefix, lazyCompilationMiddlewareInternal(compiler, indexToModule, activeModules, filesByKey, options.prefix));
|
|
45283
|
-
applyPlugin(c, moduleToIndex, indexToModule, options, activeModules, filesByKey);
|
|
45300
|
+
middlewareByCompiler.set(options.prefix, lazyCompilationMiddlewareInternal(compiler, activeModules, filesByKey, options.prefix));
|
|
45301
|
+
applyPlugin(c, options, activeModules, filesByKey);
|
|
45284
45302
|
}
|
|
45285
45303
|
const keys = [
|
|
45286
45304
|
...middlewareByCompiler.keys()
|
|
@@ -45295,53 +45313,49 @@ const lazyCompilationMiddleware = (compiler)=>{
|
|
|
45295
45313
|
return null == middleware ? void 0 : middleware(req, res, next);
|
|
45296
45314
|
};
|
|
45297
45315
|
}
|
|
45298
|
-
if (
|
|
45299
|
-
|
|
45316
|
+
if (compiler.options.experiments.lazyCompilation) {
|
|
45317
|
+
console.warn(DEPRECATED_LAZY_COMPILATION_OPTIONS_WARN);
|
|
45318
|
+
if (compiler.options.lazyCompilation) console.warn(REPEAT_LAZY_COMPILATION_OPTIONS_WARN);
|
|
45319
|
+
}
|
|
45320
|
+
if (!compiler.options.lazyCompilation && !compiler.options.experiments.lazyCompilation) return noop;
|
|
45321
|
+
const activeModules = new Set();
|
|
45300
45322
|
const filesByKey = new Map();
|
|
45301
|
-
const indexToMap = new Map();
|
|
45302
|
-
const moduleToIndex = new Map();
|
|
45303
45323
|
const options = {
|
|
45304
|
-
...compiler.options.experiments.lazyCompilation
|
|
45324
|
+
...compiler.options.experiments.lazyCompilation,
|
|
45325
|
+
...compiler.options.lazyCompilation
|
|
45305
45326
|
};
|
|
45306
|
-
applyPlugin(compiler,
|
|
45327
|
+
applyPlugin(compiler, options, activeModules, filesByKey);
|
|
45307
45328
|
const lazyCompilationPrefix = options.prefix || LAZY_COMPILATION_PREFIX;
|
|
45308
|
-
return lazyCompilationMiddlewareInternal(compiler,
|
|
45329
|
+
return lazyCompilationMiddlewareInternal(compiler, activeModules, filesByKey, lazyCompilationPrefix);
|
|
45309
45330
|
};
|
|
45310
|
-
function applyPlugin(compiler,
|
|
45331
|
+
function applyPlugin(compiler, options, activeModules, filesByKey) {
|
|
45311
45332
|
const plugin = new BuiltinLazyCompilationPlugin(({ module, path })=>{
|
|
45312
|
-
|
|
45313
|
-
|
|
45314
|
-
|
|
45315
|
-
moduleToIndex.set(module, index);
|
|
45316
|
-
indexToModule.set(index, module);
|
|
45317
|
-
}
|
|
45318
|
-
const key = indexToModule.get(index);
|
|
45319
|
-
filesByKey.set(key, path);
|
|
45320
|
-
const active = true === activeModules.get(key);
|
|
45333
|
+
const data = `${encodeURIComponent(module.replace(/\\/g, "/").replace(/@/g, "_"))}`;
|
|
45334
|
+
filesByKey.set(data, path);
|
|
45335
|
+
const active = activeModules.has(data);
|
|
45321
45336
|
return {
|
|
45322
45337
|
client: `${options.client || getDefaultClient(compiler)}?${encodeURIComponent(getFullServerUrl(options))}`,
|
|
45323
|
-
data
|
|
45338
|
+
data,
|
|
45324
45339
|
active
|
|
45325
45340
|
};
|
|
45326
45341
|
}, options.cacheable ?? true, options.entries ?? true, options.imports ?? true, options.test);
|
|
45327
45342
|
plugin.apply(compiler);
|
|
45328
45343
|
}
|
|
45329
|
-
const lazyCompilationMiddlewareInternal = (compiler,
|
|
45344
|
+
const lazyCompilationMiddlewareInternal = (compiler, activeModules, filesByKey, lazyCompilationPrefix)=>{
|
|
45330
45345
|
const logger = compiler.getInfrastructureLogger("LazyCompilation");
|
|
45331
45346
|
return (req, res, next)=>{
|
|
45332
45347
|
var _req_url;
|
|
45333
45348
|
if (!(null == (_req_url = req.url) ? void 0 : _req_url.startsWith(lazyCompilationPrefix))) return null == next ? void 0 : next();
|
|
45334
|
-
const
|
|
45349
|
+
const modules = req.url.slice(lazyCompilationPrefix.length).split("@");
|
|
45335
45350
|
req.socket.setNoDelay(true);
|
|
45336
45351
|
res.setHeader("content-type", "text/event-stream");
|
|
45337
45352
|
res.writeHead(200);
|
|
45338
45353
|
res.write("\n");
|
|
45339
45354
|
const moduleActivated = [];
|
|
45340
|
-
for (const
|
|
45341
|
-
const
|
|
45342
|
-
|
|
45343
|
-
|
|
45344
|
-
if (!oldValue) {
|
|
45355
|
+
for (const key of modules){
|
|
45356
|
+
const activated = activeModules.has(key);
|
|
45357
|
+
activeModules.add(key);
|
|
45358
|
+
if (!activated) {
|
|
45345
45359
|
logger.log(`${key} is now in use and will be compiled.`);
|
|
45346
45360
|
moduleActivated.push(key);
|
|
45347
45361
|
}
|
|
@@ -45352,7 +45366,7 @@ const lazyCompilationMiddlewareInternal = (compiler, indexToModule, activeModule
|
|
|
45352
45366
|
if (!filePath) logger.warn(`Cannot find correct file path for module ${key}`);
|
|
45353
45367
|
return filePath;
|
|
45354
45368
|
}).filter(Boolean));
|
|
45355
|
-
if (rebuiltModules.size) compiler.watching.invalidateWithChangesAndRemovals(
|
|
45369
|
+
if (rebuiltModules.size) compiler.watching.invalidateWithChangesAndRemovals(rebuiltModules);
|
|
45356
45370
|
}
|
|
45357
45371
|
};
|
|
45358
45372
|
};
|
|
@@ -45435,6 +45449,13 @@ class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
|
45435
45449
|
}
|
|
45436
45450
|
const NodeTargetPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.NodeTargetPlugin, ()=>void 0);
|
|
45437
45451
|
const NoEmitOnErrorsPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.NoEmitOnErrorsPlugin, ()=>void 0);
|
|
45452
|
+
const NormalModuleReplacementPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.NormalModuleReplacementPlugin, (resourceRegExp, newResource)=>({
|
|
45453
|
+
resourceRegExp,
|
|
45454
|
+
newResource: "function" == typeof newResource ? (data)=>{
|
|
45455
|
+
newResource(data);
|
|
45456
|
+
return data;
|
|
45457
|
+
} : newResource
|
|
45458
|
+
}));
|
|
45438
45459
|
const OccurrenceChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPluginName.OccurrenceChunkIdsPlugin, (options)=>({
|
|
45439
45460
|
...options
|
|
45440
45461
|
}), "compilation");
|
|
@@ -45762,29 +45783,33 @@ class SubresourceIntegrityPlugin extends NativeSubresourceIntegrityPlugin {
|
|
|
45762
45783
|
});
|
|
45763
45784
|
});
|
|
45764
45785
|
});
|
|
45765
|
-
if ("string" == typeof this.options.htmlPlugin && this.options.htmlPlugin !== NATIVE_HTML_PLUGIN)
|
|
45766
|
-
const
|
|
45767
|
-
|
|
45768
|
-
|
|
45769
|
-
|
|
45770
|
-
"
|
|
45771
|
-
|
|
45772
|
-
|
|
45773
|
-
|
|
45774
|
-
|
|
45775
|
-
|
|
45776
|
-
|
|
45777
|
-
|
|
45778
|
-
|
|
45779
|
-
|
|
45780
|
-
|
|
45781
|
-
|
|
45782
|
-
|
|
45786
|
+
if ("string" == typeof this.options.htmlPlugin && this.options.htmlPlugin !== NATIVE_HTML_PLUGIN) {
|
|
45787
|
+
const self1 = this;
|
|
45788
|
+
function bindingHtmlHooks(htmlPlugin) {
|
|
45789
|
+
const getHooks = htmlPlugin.getCompilationHooks || htmlPlugin.getHooks;
|
|
45790
|
+
if ("function" == typeof getHooks) compiler.hooks.thisCompilation.tap(SubresourceIntegrityPlugin_PLUGIN_NAME, (compilation)=>{
|
|
45791
|
+
if ("string" == typeof compiler.options.output.chunkLoading && [
|
|
45792
|
+
"require",
|
|
45793
|
+
"async-node"
|
|
45794
|
+
].includes(compiler.options.output.chunkLoading)) return;
|
|
45795
|
+
const hwpHooks = getHooks(compilation);
|
|
45796
|
+
hwpHooks.beforeAssetTagGeneration.tapPromise(SubresourceIntegrityPlugin_PLUGIN_NAME, async (data)=>{
|
|
45797
|
+
self1.handleHwpPluginArgs(data);
|
|
45798
|
+
return data;
|
|
45799
|
+
});
|
|
45800
|
+
hwpHooks.alterAssetTagGroups.tapPromise({
|
|
45801
|
+
name: SubresourceIntegrityPlugin_PLUGIN_NAME,
|
|
45802
|
+
stage: 10000
|
|
45803
|
+
}, async (data)=>{
|
|
45804
|
+
self1.handleHwpBodyTags(data, compiler.outputPath, compiler.options.output.crossOriginLoading);
|
|
45805
|
+
return data;
|
|
45806
|
+
});
|
|
45783
45807
|
});
|
|
45808
|
+
}
|
|
45809
|
+
(0, util_require._)()(this.options.htmlPlugin).then(bindingHtmlHooks).catch((e)=>{
|
|
45810
|
+
if (!isErrorWithCode(e) || "MODULE_NOT_FOUND" !== e.code) throw e;
|
|
45784
45811
|
});
|
|
45785
|
-
}
|
|
45786
|
-
if (!isErrorWithCode(e) || "MODULE_NOT_FOUND" !== e.code) throw e;
|
|
45787
|
-
});
|
|
45812
|
+
}
|
|
45788
45813
|
}
|
|
45789
45814
|
constructor(options = {}){
|
|
45790
45815
|
let validateError = null;
|
|
@@ -46970,6 +46995,7 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
46970
46995
|
defaults_F(options, "devtool", ()=>development ? "eval" : false);
|
|
46971
46996
|
D(options, "watch", false);
|
|
46972
46997
|
D(options, "profile", false);
|
|
46998
|
+
D(options, "lazyCompilation", false);
|
|
46973
46999
|
D(options, "bail", false);
|
|
46974
47000
|
defaults_F(options, "cache", ()=>development);
|
|
46975
47001
|
applyExperimentsDefaults(options.experiments, {
|
|
@@ -47084,7 +47110,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
47084
47110
|
if ("object" == typeof rspackFuture) {
|
|
47085
47111
|
D(rspackFuture, "bundlerInfo", {});
|
|
47086
47112
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
47087
|
-
D(rspackFuture.bundlerInfo, "version", "1.4.12-canary-
|
|
47113
|
+
D(rspackFuture.bundlerInfo, "version", "1.4.12-canary-51b82a4d-20250815075104");
|
|
47088
47114
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
47089
47115
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
47090
47116
|
}
|
|
@@ -47097,6 +47123,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { inlineConst })=>{
|
|
|
47097
47123
|
D(parserOptions, "dynamicImportPreload", false);
|
|
47098
47124
|
D(parserOptions, "url", true);
|
|
47099
47125
|
D(parserOptions, "exprContextCritical", true);
|
|
47126
|
+
D(parserOptions, "unknownContextCritical", true);
|
|
47100
47127
|
D(parserOptions, "wrappedContextCritical", false);
|
|
47101
47128
|
D(parserOptions, "wrappedContextRegExp", /.*/);
|
|
47102
47129
|
D(parserOptions, "strictExportPresence", false);
|
|
@@ -47357,7 +47384,7 @@ const applyOutputDefaults = (output, { context, outputModule, targetProperties:
|
|
|
47357
47384
|
return "[id].css";
|
|
47358
47385
|
});
|
|
47359
47386
|
D(output, "hotUpdateChunkFilename", `[id].[fullhash].hot-update.${output.module ? "mjs" : "js"}`);
|
|
47360
|
-
|
|
47387
|
+
defaults_F(output, "hotUpdateMainFilename", ()=>`[runtime].[fullhash].hot-update.${output.module ? "json.mjs" : "json"}`);
|
|
47361
47388
|
const uniqueNameId = Template.toIdentifier(output.uniqueName);
|
|
47362
47389
|
defaults_F(output, "hotUpdateGlobal", ()=>`webpackHotUpdate${uniqueNameId}`);
|
|
47363
47390
|
defaults_F(output, "chunkLoadingGlobal", ()=>`webpackChunk${uniqueNameId}`);
|
|
@@ -47975,7 +48002,8 @@ const getNormalizedRspackOptions = (config)=>({
|
|
|
47975
48002
|
devServer: config.devServer,
|
|
47976
48003
|
profile: config.profile,
|
|
47977
48004
|
amd: config.amd,
|
|
47978
|
-
bail: config.bail
|
|
48005
|
+
bail: config.bail,
|
|
48006
|
+
lazyCompilation: optionalNestedConfig(config.lazyCompilation, (options)=>true === options ? {} : options)
|
|
47979
48007
|
});
|
|
47980
48008
|
const getNormalizedEntryStatic = (entry)=>{
|
|
47981
48009
|
if ("string" == typeof entry) return {
|
|
@@ -49697,20 +49725,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
49697
49725
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.beforeResolve;
|
|
49698
49726
|
}, function(queried) {
|
|
49699
49727
|
return async function(resolveData) {
|
|
49700
|
-
const
|
|
49701
|
-
contextInfo: {
|
|
49702
|
-
issuer: resolveData.issuer,
|
|
49703
|
-
issuerLayer: resolveData.issuerLayer ?? null
|
|
49704
|
-
},
|
|
49705
|
-
request: resolveData.request,
|
|
49706
|
-
context: resolveData.context,
|
|
49707
|
-
fileDependencies: [],
|
|
49708
|
-
missingDependencies: [],
|
|
49709
|
-
contextDependencies: []
|
|
49710
|
-
};
|
|
49711
|
-
const ret = await queried.promise(normalizedResolveData);
|
|
49712
|
-
resolveData.request = normalizedResolveData.request;
|
|
49713
|
-
resolveData.context = normalizedResolveData.context;
|
|
49728
|
+
const ret = await queried.promise(resolveData);
|
|
49714
49729
|
return [
|
|
49715
49730
|
ret,
|
|
49716
49731
|
resolveData
|
|
@@ -49721,20 +49736,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
49721
49736
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.factorize;
|
|
49722
49737
|
}, function(queried) {
|
|
49723
49738
|
return async function(resolveData) {
|
|
49724
|
-
|
|
49725
|
-
contextInfo: {
|
|
49726
|
-
issuer: resolveData.issuer,
|
|
49727
|
-
issuerLayer: resolveData.issuerLayer ?? null
|
|
49728
|
-
},
|
|
49729
|
-
request: resolveData.request,
|
|
49730
|
-
context: resolveData.context,
|
|
49731
|
-
fileDependencies: [],
|
|
49732
|
-
missingDependencies: [],
|
|
49733
|
-
contextDependencies: []
|
|
49734
|
-
};
|
|
49735
|
-
await queried.promise(normalizedResolveData);
|
|
49736
|
-
resolveData.request = normalizedResolveData.request;
|
|
49737
|
-
resolveData.context = normalizedResolveData.context;
|
|
49739
|
+
await queried.promise(resolveData);
|
|
49738
49740
|
return resolveData;
|
|
49739
49741
|
};
|
|
49740
49742
|
}),
|
|
@@ -49742,20 +49744,7 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
49742
49744
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.resolve;
|
|
49743
49745
|
}, function(queried) {
|
|
49744
49746
|
return async function(resolveData) {
|
|
49745
|
-
|
|
49746
|
-
contextInfo: {
|
|
49747
|
-
issuer: resolveData.issuer,
|
|
49748
|
-
issuerLayer: resolveData.issuerLayer ?? null
|
|
49749
|
-
},
|
|
49750
|
-
request: resolveData.request,
|
|
49751
|
-
context: resolveData.context,
|
|
49752
|
-
fileDependencies: [],
|
|
49753
|
-
missingDependencies: [],
|
|
49754
|
-
contextDependencies: []
|
|
49755
|
-
};
|
|
49756
|
-
await queried.promise(normalizedResolveData);
|
|
49757
|
-
resolveData.request = normalizedResolveData.request;
|
|
49758
|
-
resolveData.context = normalizedResolveData.context;
|
|
49747
|
+
await queried.promise(resolveData);
|
|
49759
49748
|
return resolveData;
|
|
49760
49749
|
};
|
|
49761
49750
|
}),
|
|
@@ -49773,12 +49762,11 @@ const createNormalModuleFactoryHooksRegisters = (getCompiler, createTap, createM
|
|
|
49773
49762
|
registerNormalModuleFactoryAfterResolveTaps: createTap(external_rspack_wasi_browser_js_["default"].RegisterJsTapKind.NormalModuleFactoryAfterResolve, function() {
|
|
49774
49763
|
return getCompiler().__internal__get_compilation_params().normalModuleFactory.hooks.afterResolve;
|
|
49775
49764
|
}, function(queried) {
|
|
49776
|
-
return async function(
|
|
49777
|
-
const
|
|
49778
|
-
const ret = await queried.promise(data);
|
|
49765
|
+
return async function(resolveData) {
|
|
49766
|
+
const ret = await queried.promise(resolveData);
|
|
49779
49767
|
return [
|
|
49780
49768
|
ret,
|
|
49781
|
-
|
|
49769
|
+
resolveData
|
|
49782
49770
|
];
|
|
49783
49771
|
};
|
|
49784
49772
|
}),
|
|
@@ -49956,6 +49944,231 @@ class TraceHookPlugin {
|
|
|
49956
49944
|
}
|
|
49957
49945
|
__webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
49958
49946
|
const checkVersion = ()=>{};
|
|
49947
|
+
function NativeWatchFileSystem_check_private_redeclaration(obj, privateCollection) {
|
|
49948
|
+
if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
49949
|
+
}
|
|
49950
|
+
function NativeWatchFileSystem_class_apply_descriptor_get(receiver, descriptor) {
|
|
49951
|
+
if (descriptor.get) return descriptor.get.call(receiver);
|
|
49952
|
+
return descriptor.value;
|
|
49953
|
+
}
|
|
49954
|
+
function NativeWatchFileSystem_class_apply_descriptor_set(receiver, descriptor, value) {
|
|
49955
|
+
if (descriptor.set) descriptor.set.call(receiver, value);
|
|
49956
|
+
else {
|
|
49957
|
+
if (!descriptor.writable) throw new TypeError("attempted to set read only private field");
|
|
49958
|
+
descriptor.value = value;
|
|
49959
|
+
}
|
|
49960
|
+
}
|
|
49961
|
+
function NativeWatchFileSystem_class_extract_field_descriptor(receiver, privateMap, action) {
|
|
49962
|
+
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
49963
|
+
return privateMap.get(receiver);
|
|
49964
|
+
}
|
|
49965
|
+
function NativeWatchFileSystem_class_private_field_get(receiver, privateMap) {
|
|
49966
|
+
var descriptor = NativeWatchFileSystem_class_extract_field_descriptor(receiver, privateMap, "get");
|
|
49967
|
+
return NativeWatchFileSystem_class_apply_descriptor_get(receiver, descriptor);
|
|
49968
|
+
}
|
|
49969
|
+
function NativeWatchFileSystem_class_private_field_init(obj, privateMap, value) {
|
|
49970
|
+
NativeWatchFileSystem_check_private_redeclaration(obj, privateMap);
|
|
49971
|
+
privateMap.set(obj, value);
|
|
49972
|
+
}
|
|
49973
|
+
function NativeWatchFileSystem_class_private_field_set(receiver, privateMap, value) {
|
|
49974
|
+
var descriptor = NativeWatchFileSystem_class_extract_field_descriptor(receiver, privateMap, "set");
|
|
49975
|
+
NativeWatchFileSystem_class_apply_descriptor_set(receiver, descriptor, value);
|
|
49976
|
+
return value;
|
|
49977
|
+
}
|
|
49978
|
+
const toJsWatcherIgnored = (ignored)=>{
|
|
49979
|
+
if (Array.isArray(ignored) || "string" == typeof ignored || ignored instanceof RegExp) return ignored;
|
|
49980
|
+
if ("function" == typeof ignored) throw new Error("NativeWatcher does not support using a function for the 'ignored' option");
|
|
49981
|
+
};
|
|
49982
|
+
var NativeWatchFileSystem_inner = /*#__PURE__*/ new WeakMap(), _inputFileSystem = /*#__PURE__*/ new WeakMap();
|
|
49983
|
+
class NativeWatchFileSystem {
|
|
49984
|
+
watch(files, directories, missing, _startTime, options, callback, callbackUndelayed) {
|
|
49985
|
+
if ((!files.added || "function" != typeof files.added[Symbol.iterator]) && (!files.removed || "function" != typeof files.removed[Symbol.iterator])) throw new Error("Invalid arguments: 'files'");
|
|
49986
|
+
if ((!directories.added || "function" != typeof directories.added[Symbol.iterator]) && (!directories.removed || "function" != typeof directories.removed[Symbol.iterator])) throw new Error("Invalid arguments: 'directories'");
|
|
49987
|
+
if ("function" != typeof callback) throw new Error("Invalid arguments: 'callback'");
|
|
49988
|
+
if ("object" != typeof options) throw new Error("Invalid arguments: 'options'");
|
|
49989
|
+
if ("function" != typeof callbackUndelayed && callbackUndelayed) throw new Error("Invalid arguments: 'callbackUndelayed'");
|
|
49990
|
+
const nativeWatcher = this.getNativeWatcher(options);
|
|
49991
|
+
nativeWatcher.watch([
|
|
49992
|
+
Array.from(files.added),
|
|
49993
|
+
Array.from(files.removed)
|
|
49994
|
+
], [
|
|
49995
|
+
Array.from(directories.added),
|
|
49996
|
+
Array.from(directories.removed)
|
|
49997
|
+
], [
|
|
49998
|
+
Array.from(missing.added),
|
|
49999
|
+
Array.from(missing.removed)
|
|
50000
|
+
], (err, result)=>{
|
|
50001
|
+
var _class_private_field_get1;
|
|
50002
|
+
if (err) return void callback(err, new Map(), new Map(), new Set(), new Set());
|
|
50003
|
+
nativeWatcher.pause();
|
|
50004
|
+
const changedFiles = result.changedFiles;
|
|
50005
|
+
const removedFiles = result.removedFiles;
|
|
50006
|
+
if (null == (_class_private_field_get1 = NativeWatchFileSystem_class_private_field_get(this, _inputFileSystem)) ? void 0 : _class_private_field_get1.purge) {
|
|
50007
|
+
const fs = NativeWatchFileSystem_class_private_field_get(this, _inputFileSystem);
|
|
50008
|
+
for (const item of changedFiles){
|
|
50009
|
+
var _fs_purge;
|
|
50010
|
+
null == (_fs_purge = fs.purge) || _fs_purge.call(fs, item);
|
|
50011
|
+
}
|
|
50012
|
+
for (const item of removedFiles){
|
|
50013
|
+
var _fs_purge1;
|
|
50014
|
+
null == (_fs_purge1 = fs.purge) || _fs_purge1.call(fs, item);
|
|
50015
|
+
}
|
|
50016
|
+
}
|
|
50017
|
+
callback(err, new Map(), new Map(), new Set(changedFiles), new Set(removedFiles));
|
|
50018
|
+
}, (fileName)=>{
|
|
50019
|
+
callbackUndelayed(fileName, Date.now());
|
|
50020
|
+
});
|
|
50021
|
+
return {
|
|
50022
|
+
close: ()=>{
|
|
50023
|
+
nativeWatcher.close().then(()=>{
|
|
50024
|
+
NativeWatchFileSystem_class_private_field_set(this, NativeWatchFileSystem_inner, void 0);
|
|
50025
|
+
}, (err)=>{
|
|
50026
|
+
console.error("Error closing native watcher:", err);
|
|
50027
|
+
});
|
|
50028
|
+
},
|
|
50029
|
+
pause: ()=>{
|
|
50030
|
+
nativeWatcher.pause();
|
|
50031
|
+
},
|
|
50032
|
+
getInfo () {
|
|
50033
|
+
return {
|
|
50034
|
+
changes: new Set(),
|
|
50035
|
+
removals: new Set(),
|
|
50036
|
+
fileTimeInfoEntries: new Map(),
|
|
50037
|
+
contextTimeInfoEntries: new Map()
|
|
50038
|
+
};
|
|
50039
|
+
}
|
|
50040
|
+
};
|
|
50041
|
+
}
|
|
50042
|
+
getNativeWatcher(options) {
|
|
50043
|
+
if (NativeWatchFileSystem_class_private_field_get(this, NativeWatchFileSystem_inner)) return NativeWatchFileSystem_class_private_field_get(this, NativeWatchFileSystem_inner);
|
|
50044
|
+
const nativeWatcherOptions = {
|
|
50045
|
+
followSymlinks: options.followSymlinks,
|
|
50046
|
+
aggregateTimeout: options.aggregateTimeout,
|
|
50047
|
+
pollInterval: "boolean" == typeof options.poll ? 0 : options.poll,
|
|
50048
|
+
ignored: toJsWatcherIgnored(options.ignored)
|
|
50049
|
+
};
|
|
50050
|
+
const nativeWatcher = new external_rspack_wasi_browser_js_["default"].NativeWatcher(nativeWatcherOptions);
|
|
50051
|
+
NativeWatchFileSystem_class_private_field_set(this, NativeWatchFileSystem_inner, nativeWatcher);
|
|
50052
|
+
return nativeWatcher;
|
|
50053
|
+
}
|
|
50054
|
+
triggerEvent(kind, path) {
|
|
50055
|
+
var _class_private_field_get1;
|
|
50056
|
+
null == (_class_private_field_get1 = NativeWatchFileSystem_class_private_field_get(this, NativeWatchFileSystem_inner)) || _class_private_field_get1.triggerEvent(kind, path);
|
|
50057
|
+
}
|
|
50058
|
+
constructor(inputFileSystem){
|
|
50059
|
+
NativeWatchFileSystem_class_private_field_init(this, NativeWatchFileSystem_inner, {
|
|
50060
|
+
writable: true,
|
|
50061
|
+
value: void 0
|
|
50062
|
+
});
|
|
50063
|
+
NativeWatchFileSystem_class_private_field_init(this, _inputFileSystem, {
|
|
50064
|
+
writable: true,
|
|
50065
|
+
value: void 0
|
|
50066
|
+
});
|
|
50067
|
+
NativeWatchFileSystem_class_private_field_set(this, _inputFileSystem, inputFileSystem);
|
|
50068
|
+
}
|
|
50069
|
+
}
|
|
50070
|
+
function VirtualModulesPlugin_check_private_redeclaration(obj, privateCollection) {
|
|
50071
|
+
if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
50072
|
+
}
|
|
50073
|
+
function VirtualModulesPlugin_class_apply_descriptor_get(receiver, descriptor) {
|
|
50074
|
+
if (descriptor.get) return descriptor.get.call(receiver);
|
|
50075
|
+
return descriptor.value;
|
|
50076
|
+
}
|
|
50077
|
+
function VirtualModulesPlugin_class_apply_descriptor_set(receiver, descriptor, value) {
|
|
50078
|
+
if (descriptor.set) descriptor.set.call(receiver, value);
|
|
50079
|
+
else {
|
|
50080
|
+
if (!descriptor.writable) throw new TypeError("attempted to set read only private field");
|
|
50081
|
+
descriptor.value = value;
|
|
50082
|
+
}
|
|
50083
|
+
}
|
|
50084
|
+
function VirtualModulesPlugin_class_extract_field_descriptor(receiver, privateMap, action) {
|
|
50085
|
+
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
50086
|
+
return privateMap.get(receiver);
|
|
50087
|
+
}
|
|
50088
|
+
function VirtualModulesPlugin_class_private_field_get(receiver, privateMap) {
|
|
50089
|
+
var descriptor = VirtualModulesPlugin_class_extract_field_descriptor(receiver, privateMap, "get");
|
|
50090
|
+
return VirtualModulesPlugin_class_apply_descriptor_get(receiver, descriptor);
|
|
50091
|
+
}
|
|
50092
|
+
function VirtualModulesPlugin_class_private_field_init(obj, privateMap, value) {
|
|
50093
|
+
VirtualModulesPlugin_check_private_redeclaration(obj, privateMap);
|
|
50094
|
+
privateMap.set(obj, value);
|
|
50095
|
+
}
|
|
50096
|
+
function VirtualModulesPlugin_class_private_field_set(receiver, privateMap, value) {
|
|
50097
|
+
var descriptor = VirtualModulesPlugin_class_extract_field_descriptor(receiver, privateMap, "set");
|
|
50098
|
+
VirtualModulesPlugin_class_apply_descriptor_set(receiver, descriptor, value);
|
|
50099
|
+
return value;
|
|
50100
|
+
}
|
|
50101
|
+
const VirtualModulesPlugin_PLUGIN_NAME = "VirtualModulesPlugin";
|
|
50102
|
+
const VFILES_BY_COMPILER = new WeakMap();
|
|
50103
|
+
var _staticModules = /*#__PURE__*/ new WeakMap(), _compiler = /*#__PURE__*/ new WeakMap(), _store = /*#__PURE__*/ new WeakMap();
|
|
50104
|
+
class VirtualModulesPlugin {
|
|
50105
|
+
apply(compiler) {
|
|
50106
|
+
VirtualModulesPlugin_class_private_field_set(this, _compiler, compiler);
|
|
50107
|
+
compiler.hooks.afterEnvironment.tap(VirtualModulesPlugin_PLUGIN_NAME, ()=>{
|
|
50108
|
+
const record = VFILES_BY_COMPILER.get(compiler) || {};
|
|
50109
|
+
if (VirtualModulesPlugin_class_private_field_get(this, _staticModules)) for (const [filePath, content] of Object.entries(VirtualModulesPlugin_class_private_field_get(this, _staticModules))){
|
|
50110
|
+
const fullPath = path_browserify_default().resolve(compiler.context, filePath);
|
|
50111
|
+
record[fullPath] = content;
|
|
50112
|
+
}
|
|
50113
|
+
VFILES_BY_COMPILER.set(compiler, record);
|
|
50114
|
+
});
|
|
50115
|
+
}
|
|
50116
|
+
writeModule(filePath, contents) {
|
|
50117
|
+
if (!VirtualModulesPlugin_class_private_field_get(this, _compiler)) throw new Error("Plugin has not been initialized");
|
|
50118
|
+
const store = this.getVirtualFileStore();
|
|
50119
|
+
const fullPath = path_browserify_default().resolve(VirtualModulesPlugin_class_private_field_get(this, _compiler).context, filePath);
|
|
50120
|
+
store.writeVirtualFileSync(fullPath, contents);
|
|
50121
|
+
notifyWatchers(VirtualModulesPlugin_class_private_field_get(this, _compiler), fullPath, Date.now());
|
|
50122
|
+
}
|
|
50123
|
+
getVirtualFileStore() {
|
|
50124
|
+
var _class_private_field_get1;
|
|
50125
|
+
if (VirtualModulesPlugin_class_private_field_get(this, _store)) return VirtualModulesPlugin_class_private_field_get(this, _store);
|
|
50126
|
+
const store = null == (_class_private_field_get1 = VirtualModulesPlugin_class_private_field_get(this, _compiler)) ? void 0 : _class_private_field_get1.__internal__get_virtual_file_store();
|
|
50127
|
+
if (!store) throw new Error("Virtual file store has not been initialized");
|
|
50128
|
+
VirtualModulesPlugin_class_private_field_set(this, _store, store);
|
|
50129
|
+
return store;
|
|
50130
|
+
}
|
|
50131
|
+
static __internal__take_virtual_files(compiler) {
|
|
50132
|
+
const record = VFILES_BY_COMPILER.get(compiler);
|
|
50133
|
+
if (record) {
|
|
50134
|
+
VFILES_BY_COMPILER.delete(compiler);
|
|
50135
|
+
return Object.entries(record).map(([path, content])=>({
|
|
50136
|
+
path,
|
|
50137
|
+
content
|
|
50138
|
+
}));
|
|
50139
|
+
}
|
|
50140
|
+
}
|
|
50141
|
+
constructor(modules){
|
|
50142
|
+
VirtualModulesPlugin_class_private_field_init(this, _staticModules, {
|
|
50143
|
+
writable: true,
|
|
50144
|
+
value: void 0
|
|
50145
|
+
});
|
|
50146
|
+
VirtualModulesPlugin_class_private_field_init(this, _compiler, {
|
|
50147
|
+
writable: true,
|
|
50148
|
+
value: void 0
|
|
50149
|
+
});
|
|
50150
|
+
VirtualModulesPlugin_class_private_field_init(this, _store, {
|
|
50151
|
+
writable: true,
|
|
50152
|
+
value: void 0
|
|
50153
|
+
});
|
|
50154
|
+
VirtualModulesPlugin_class_private_field_set(this, _staticModules, modules || null);
|
|
50155
|
+
}
|
|
50156
|
+
}
|
|
50157
|
+
function notifyWatchers(compiler, fullPath, time) {
|
|
50158
|
+
if (compiler.watchFileSystem instanceof NativeWatchFileSystem) compiler.watchFileSystem.triggerEvent("change", fullPath);
|
|
50159
|
+
else notifyJsWatchers(compiler, fullPath, time);
|
|
50160
|
+
}
|
|
50161
|
+
function notifyJsWatchers(compiler, fullPath, time) {
|
|
50162
|
+
if (compiler.watchFileSystem && isNodeWatchFileSystem(compiler.watchFileSystem)) {
|
|
50163
|
+
const watcher = compiler.watchFileSystem.watcher;
|
|
50164
|
+
if (!watcher) return;
|
|
50165
|
+
const fileWatcher = watcher.fileWatchers.get(fullPath);
|
|
50166
|
+
if (fileWatcher) fileWatcher.watcher.emit("change", time, null);
|
|
50167
|
+
}
|
|
50168
|
+
}
|
|
50169
|
+
function isNodeWatchFileSystem(fs) {
|
|
50170
|
+
return "watch" in fs;
|
|
50171
|
+
}
|
|
49959
50172
|
var Watching_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
49960
50173
|
function Watching_check_private_redeclaration(obj, privateCollection) {
|
|
49961
50174
|
if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
@@ -50582,6 +50795,10 @@ class Compiler {
|
|
|
50582
50795
|
Compiler_class_private_field_set(this, Compiler_compilation, compilation);
|
|
50583
50796
|
return compilation;
|
|
50584
50797
|
}
|
|
50798
|
+
__internal__get_virtual_file_store() {
|
|
50799
|
+
var _class_private_field_get1;
|
|
50800
|
+
return null == (_class_private_field_get1 = Compiler_class_private_field_get(this, _instance)) ? void 0 : _class_private_field_get1.getVirtualFileStore();
|
|
50801
|
+
}
|
|
50585
50802
|
__internal__registerBuiltinPlugin(plugin) {
|
|
50586
50803
|
Compiler_class_private_field_get(this, _builtinPlugins).push(plugin);
|
|
50587
50804
|
}
|
|
@@ -50819,6 +51036,7 @@ function getInstance(callback) {
|
|
|
50819
51036
|
const options = this.options;
|
|
50820
51037
|
const rawOptions = getRawOptions(options, this);
|
|
50821
51038
|
rawOptions.__references = Object.fromEntries(Compiler_class_private_field_get(this, _ruleSet).builtinReferences.entries());
|
|
51039
|
+
rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
50822
51040
|
const instanceBinding = __webpack_require__("@rspack/binding");
|
|
50823
51041
|
Compiler_class_private_field_set(this, _registers, Compiler_class_private_method_get(this, _createHooksRegisters, createHooksRegisters).call(this));
|
|
50824
51042
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
@@ -50977,7 +51195,7 @@ class MultiStats {
|
|
|
50977
51195
|
return obj;
|
|
50978
51196
|
});
|
|
50979
51197
|
if (childOptions.version) {
|
|
50980
|
-
obj.rspackVersion = "1.4.12-canary-
|
|
51198
|
+
obj.rspackVersion = "1.4.12-canary-51b82a4d-20250815075104";
|
|
50981
51199
|
obj.version = "5.75.0";
|
|
50982
51200
|
}
|
|
50983
51201
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -51097,7 +51315,7 @@ function MultiWatching_define_property(obj, key, value) {
|
|
|
51097
51315
|
else obj[key] = value;
|
|
51098
51316
|
return obj;
|
|
51099
51317
|
}
|
|
51100
|
-
class
|
|
51318
|
+
class MultiWatching_MultiWatching {
|
|
51101
51319
|
invalidate(callback) {
|
|
51102
51320
|
if (callback) asyncLib.each(this.watchings, (watching, callback)=>watching.invalidate(callback), callback);
|
|
51103
51321
|
else for (const watching of this.watchings)watching.invalidate();
|
|
@@ -51130,7 +51348,7 @@ class MultiWatching {
|
|
|
51130
51348
|
this.compiler = compiler;
|
|
51131
51349
|
}
|
|
51132
51350
|
}
|
|
51133
|
-
const
|
|
51351
|
+
const MultiWatching = MultiWatching_MultiWatching;
|
|
51134
51352
|
function ArrayQueue_define_property(obj, key, value) {
|
|
51135
51353
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
51136
51354
|
value: value,
|
|
@@ -51307,10 +51525,10 @@ class MultiCompiler {
|
|
|
51307
51525
|
if (compiler.watching !== watching) return;
|
|
51308
51526
|
if (!watching.running) watching.invalidate();
|
|
51309
51527
|
}, handler);
|
|
51310
|
-
this.watching = new
|
|
51528
|
+
this.watching = new MultiWatching(watchings, this);
|
|
51311
51529
|
return this.watching;
|
|
51312
51530
|
}
|
|
51313
|
-
this.watching = new
|
|
51531
|
+
this.watching = new MultiWatching([], this);
|
|
51314
51532
|
return this.watching;
|
|
51315
51533
|
}
|
|
51316
51534
|
run(callback, options) {
|
|
@@ -52287,7 +52505,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52287
52505
|
},
|
|
52288
52506
|
version: (object)=>{
|
|
52289
52507
|
object.version = "5.75.0";
|
|
52290
|
-
object.rspackVersion = "1.4.12-canary-
|
|
52508
|
+
object.rspackVersion = "1.4.12-canary-51b82a4d-20250815075104";
|
|
52291
52509
|
},
|
|
52292
52510
|
env: (object, _compilation, _context, { _env })=>{
|
|
52293
52511
|
object.env = _env;
|
|
@@ -54327,39 +54545,6 @@ class LoaderTargetPlugin {
|
|
|
54327
54545
|
this.target = target;
|
|
54328
54546
|
}
|
|
54329
54547
|
}
|
|
54330
|
-
function NormalModuleReplacementPlugin_define_property(obj, key, value) {
|
|
54331
|
-
if (key in obj) Object.defineProperty(obj, key, {
|
|
54332
|
-
value: value,
|
|
54333
|
-
enumerable: true,
|
|
54334
|
-
configurable: true,
|
|
54335
|
-
writable: true
|
|
54336
|
-
});
|
|
54337
|
-
else obj[key] = value;
|
|
54338
|
-
return obj;
|
|
54339
|
-
}
|
|
54340
|
-
class NormalModuleReplacementPlugin {
|
|
54341
|
-
apply(compiler) {
|
|
54342
|
-
const { resourceRegExp, newResource } = this;
|
|
54343
|
-
compiler.hooks.normalModuleFactory.tap("NormalModuleReplacementPlugin", (nmf)=>{
|
|
54344
|
-
nmf.hooks.beforeResolve.tap("NormalModuleReplacementPlugin", (result)=>{
|
|
54345
|
-
if (resourceRegExp.test(result.request)) if ("function" == typeof newResource) newResource(result);
|
|
54346
|
-
else result.request = newResource;
|
|
54347
|
-
});
|
|
54348
|
-
nmf.hooks.afterResolve.tap("NormalModuleReplacementPlugin", (result)=>{
|
|
54349
|
-
const createData = result.createData || {};
|
|
54350
|
-
if (resourceRegExp.test(createData.resource || "")) if ("function" == typeof newResource) newResource(result);
|
|
54351
|
-
else if (path_browserify.posix.isAbsolute(newResource) || path_browserify.win32.isAbsolute(newResource)) createData.resource = newResource;
|
|
54352
|
-
else createData.resource = path_browserify.join(path_browserify.dirname(createData.resource || ""), newResource);
|
|
54353
|
-
});
|
|
54354
|
-
});
|
|
54355
|
-
}
|
|
54356
|
-
constructor(resourceRegExp, newResource){
|
|
54357
|
-
NormalModuleReplacementPlugin_define_property(this, "resourceRegExp", void 0);
|
|
54358
|
-
NormalModuleReplacementPlugin_define_property(this, "newResource", void 0);
|
|
54359
|
-
this.resourceRegExp = resourceRegExp;
|
|
54360
|
-
this.newResource = newResource;
|
|
54361
|
-
}
|
|
54362
|
-
}
|
|
54363
54548
|
var CachedInputFileSystem = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.18.2/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js");
|
|
54364
54549
|
var CachedInputFileSystem_default = /*#__PURE__*/ __webpack_require__.n(CachedInputFileSystem);
|
|
54365
54550
|
const filterToFunction = (item)=>{
|
|
@@ -54474,125 +54659,6 @@ const createConsoleLogger = ({ level = "info", debug = false, console: console1
|
|
|
54474
54659
|
};
|
|
54475
54660
|
return logger;
|
|
54476
54661
|
};
|
|
54477
|
-
function NativeWatchFileSystem_check_private_redeclaration(obj, privateCollection) {
|
|
54478
|
-
if (privateCollection.has(obj)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
54479
|
-
}
|
|
54480
|
-
function NativeWatchFileSystem_class_apply_descriptor_get(receiver, descriptor) {
|
|
54481
|
-
if (descriptor.get) return descriptor.get.call(receiver);
|
|
54482
|
-
return descriptor.value;
|
|
54483
|
-
}
|
|
54484
|
-
function NativeWatchFileSystem_class_apply_descriptor_set(receiver, descriptor, value) {
|
|
54485
|
-
if (descriptor.set) descriptor.set.call(receiver, value);
|
|
54486
|
-
else {
|
|
54487
|
-
if (!descriptor.writable) throw new TypeError("attempted to set read only private field");
|
|
54488
|
-
descriptor.value = value;
|
|
54489
|
-
}
|
|
54490
|
-
}
|
|
54491
|
-
function NativeWatchFileSystem_class_extract_field_descriptor(receiver, privateMap, action) {
|
|
54492
|
-
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
54493
|
-
return privateMap.get(receiver);
|
|
54494
|
-
}
|
|
54495
|
-
function NativeWatchFileSystem_class_private_field_get(receiver, privateMap) {
|
|
54496
|
-
var descriptor = NativeWatchFileSystem_class_extract_field_descriptor(receiver, privateMap, "get");
|
|
54497
|
-
return NativeWatchFileSystem_class_apply_descriptor_get(receiver, descriptor);
|
|
54498
|
-
}
|
|
54499
|
-
function NativeWatchFileSystem_class_private_field_init(obj, privateMap, value) {
|
|
54500
|
-
NativeWatchFileSystem_check_private_redeclaration(obj, privateMap);
|
|
54501
|
-
privateMap.set(obj, value);
|
|
54502
|
-
}
|
|
54503
|
-
function NativeWatchFileSystem_class_private_field_set(receiver, privateMap, value) {
|
|
54504
|
-
var descriptor = NativeWatchFileSystem_class_extract_field_descriptor(receiver, privateMap, "set");
|
|
54505
|
-
NativeWatchFileSystem_class_apply_descriptor_set(receiver, descriptor, value);
|
|
54506
|
-
return value;
|
|
54507
|
-
}
|
|
54508
|
-
const toJsWatcherIgnored = (ignored)=>{
|
|
54509
|
-
if (Array.isArray(ignored) || "string" == typeof ignored || ignored instanceof RegExp) return ignored;
|
|
54510
|
-
if ("function" == typeof ignored) throw new Error("NativeWatcher does not support using a function for the 'ignored' option");
|
|
54511
|
-
};
|
|
54512
|
-
var NativeWatchFileSystem_inner = /*#__PURE__*/ new WeakMap(), _inputFileSystem = /*#__PURE__*/ new WeakMap();
|
|
54513
|
-
class NativeWatchFileSystem {
|
|
54514
|
-
watch(files, directories, missing, _startTime, options, callback, callbackUndelayed) {
|
|
54515
|
-
if ((!files.added || "function" != typeof files.added[Symbol.iterator]) && (!files.removed || "function" != typeof files.removed[Symbol.iterator])) throw new Error("Invalid arguments: 'files'");
|
|
54516
|
-
if ((!directories.added || "function" != typeof directories.added[Symbol.iterator]) && (!directories.removed || "function" != typeof directories.removed[Symbol.iterator])) throw new Error("Invalid arguments: 'directories'");
|
|
54517
|
-
if ("function" != typeof callback) throw new Error("Invalid arguments: 'callback'");
|
|
54518
|
-
if ("object" != typeof options) throw new Error("Invalid arguments: 'options'");
|
|
54519
|
-
if ("function" != typeof callbackUndelayed && callbackUndelayed) throw new Error("Invalid arguments: 'callbackUndelayed'");
|
|
54520
|
-
const nativeWatcher = this.getNativeWatcher(options);
|
|
54521
|
-
nativeWatcher.watch([
|
|
54522
|
-
Array.from(files.added),
|
|
54523
|
-
Array.from(files.removed)
|
|
54524
|
-
], [
|
|
54525
|
-
Array.from(directories.added),
|
|
54526
|
-
Array.from(directories.removed)
|
|
54527
|
-
], [
|
|
54528
|
-
Array.from(missing.added),
|
|
54529
|
-
Array.from(missing.removed)
|
|
54530
|
-
], (err, result)=>{
|
|
54531
|
-
var _class_private_field_get1;
|
|
54532
|
-
if (err) return void callback(err, new Map(), new Map(), new Set(), new Set());
|
|
54533
|
-
nativeWatcher.pause();
|
|
54534
|
-
const changedFiles = result.changedFiles;
|
|
54535
|
-
const removedFiles = result.removedFiles;
|
|
54536
|
-
if (null == (_class_private_field_get1 = NativeWatchFileSystem_class_private_field_get(this, _inputFileSystem)) ? void 0 : _class_private_field_get1.purge) {
|
|
54537
|
-
const fs = NativeWatchFileSystem_class_private_field_get(this, _inputFileSystem);
|
|
54538
|
-
for (const item of changedFiles){
|
|
54539
|
-
var _fs_purge;
|
|
54540
|
-
null == (_fs_purge = fs.purge) || _fs_purge.call(fs, item);
|
|
54541
|
-
}
|
|
54542
|
-
for (const item of removedFiles){
|
|
54543
|
-
var _fs_purge1;
|
|
54544
|
-
null == (_fs_purge1 = fs.purge) || _fs_purge1.call(fs, item);
|
|
54545
|
-
}
|
|
54546
|
-
}
|
|
54547
|
-
callback(err, new Map(), new Map(), new Set(changedFiles), new Set(removedFiles));
|
|
54548
|
-
}, (fileName)=>{
|
|
54549
|
-
callbackUndelayed(fileName, Date.now());
|
|
54550
|
-
});
|
|
54551
|
-
return {
|
|
54552
|
-
close: ()=>{
|
|
54553
|
-
nativeWatcher.close().then(()=>{
|
|
54554
|
-
NativeWatchFileSystem_class_private_field_set(this, NativeWatchFileSystem_inner, void 0);
|
|
54555
|
-
}, (err)=>{
|
|
54556
|
-
console.error("Error closing native watcher:", err);
|
|
54557
|
-
});
|
|
54558
|
-
},
|
|
54559
|
-
pause: ()=>{
|
|
54560
|
-
nativeWatcher.pause();
|
|
54561
|
-
},
|
|
54562
|
-
getInfo () {
|
|
54563
|
-
return {
|
|
54564
|
-
changes: new Set(),
|
|
54565
|
-
removals: new Set(),
|
|
54566
|
-
fileTimeInfoEntries: new Map(),
|
|
54567
|
-
contextTimeInfoEntries: new Map()
|
|
54568
|
-
};
|
|
54569
|
-
}
|
|
54570
|
-
};
|
|
54571
|
-
}
|
|
54572
|
-
getNativeWatcher(options) {
|
|
54573
|
-
if (NativeWatchFileSystem_class_private_field_get(this, NativeWatchFileSystem_inner)) return NativeWatchFileSystem_class_private_field_get(this, NativeWatchFileSystem_inner);
|
|
54574
|
-
const nativeWatcherOptions = {
|
|
54575
|
-
followSymlinks: options.followSymlinks,
|
|
54576
|
-
aggregateTimeout: options.aggregateTimeout,
|
|
54577
|
-
pollInterval: "boolean" == typeof options.poll ? 0 : options.poll,
|
|
54578
|
-
ignored: toJsWatcherIgnored(options.ignored)
|
|
54579
|
-
};
|
|
54580
|
-
const nativeWatcher = new external_rspack_wasi_browser_js_["default"].NativeWatcher(nativeWatcherOptions);
|
|
54581
|
-
NativeWatchFileSystem_class_private_field_set(this, NativeWatchFileSystem_inner, nativeWatcher);
|
|
54582
|
-
return nativeWatcher;
|
|
54583
|
-
}
|
|
54584
|
-
constructor(inputFileSystem){
|
|
54585
|
-
NativeWatchFileSystem_class_private_field_init(this, NativeWatchFileSystem_inner, {
|
|
54586
|
-
writable: true,
|
|
54587
|
-
value: void 0
|
|
54588
|
-
});
|
|
54589
|
-
NativeWatchFileSystem_class_private_field_init(this, _inputFileSystem, {
|
|
54590
|
-
writable: true,
|
|
54591
|
-
value: void 0
|
|
54592
|
-
});
|
|
54593
|
-
NativeWatchFileSystem_class_private_field_set(this, _inputFileSystem, inputFileSystem);
|
|
54594
|
-
}
|
|
54595
|
-
}
|
|
54596
54662
|
function NodeWatchFileSystem_define_property(obj, key, value) {
|
|
54597
54663
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
54598
54664
|
value: value,
|
|
@@ -55100,7 +55166,7 @@ const getZodSwcLoaderOptionsSchema = memoize(()=>{
|
|
|
55100
55166
|
module: schemas_boolean()
|
|
55101
55167
|
}).partial();
|
|
55102
55168
|
const ZodSwcTerserMangleOptions = strictObject({
|
|
55103
|
-
props:
|
|
55169
|
+
props: schemas_record(schemas_string(), any()),
|
|
55104
55170
|
topLevel: schemas_boolean(),
|
|
55105
55171
|
toplevel: schemas_boolean(),
|
|
55106
55172
|
keepClassNames: schemas_boolean(),
|
|
@@ -55131,15 +55197,15 @@ const getZodSwcLoaderOptionsSchema = memoize(()=>{
|
|
|
55131
55197
|
importSource: schemas_string()
|
|
55132
55198
|
}).partial();
|
|
55133
55199
|
const ZodSwcConstModulesConfig = strictObject({
|
|
55134
|
-
globals:
|
|
55200
|
+
globals: schemas_record(schemas_string(), schemas_record(schemas_string(), schemas_string())).optional()
|
|
55135
55201
|
});
|
|
55136
55202
|
const ZodSwcGlobalPassOption = strictObject({
|
|
55137
|
-
vars:
|
|
55203
|
+
vars: schemas_record(schemas_string(), schemas_string()),
|
|
55138
55204
|
envs: union([
|
|
55139
55205
|
schemas_string().array(),
|
|
55140
|
-
|
|
55206
|
+
schemas_record(schemas_string(), schemas_string())
|
|
55141
55207
|
]),
|
|
55142
|
-
typeofs:
|
|
55208
|
+
typeofs: schemas_record(schemas_string(), schemas_string())
|
|
55143
55209
|
}).partial();
|
|
55144
55210
|
const ZodSwcOptimizerConfig = strictObject({
|
|
55145
55211
|
simplify: schemas_boolean(),
|
|
@@ -55200,7 +55266,7 @@ const getZodSwcLoaderOptionsSchema = memoize(()=>{
|
|
|
55200
55266
|
cacheRoot: schemas_string(),
|
|
55201
55267
|
plugins: schemas_array(tuple([
|
|
55202
55268
|
schemas_string(),
|
|
55203
|
-
|
|
55269
|
+
schemas_record(schemas_string(), any())
|
|
55204
55270
|
])),
|
|
55205
55271
|
runPluginFirst: schemas_boolean(),
|
|
55206
55272
|
disableBuiltinTransformsForInternalTesting: schemas_boolean(),
|
|
@@ -55209,7 +55275,7 @@ const getZodSwcLoaderOptionsSchema = memoize(()=>{
|
|
|
55209
55275
|
keepImportAssertions: schemas_boolean()
|
|
55210
55276
|
}).partial(),
|
|
55211
55277
|
baseUrl: schemas_string(),
|
|
55212
|
-
paths:
|
|
55278
|
+
paths: schemas_record(schemas_string(), schemas_string().array()),
|
|
55213
55279
|
minify: ZodSwcJsMinifyOptions,
|
|
55214
55280
|
preserveAllComments: schemas_boolean(),
|
|
55215
55281
|
output: strictObject({
|
|
@@ -55254,7 +55320,7 @@ const getZodSwcLoaderOptionsSchema = memoize(()=>{
|
|
|
55254
55320
|
});
|
|
55255
55321
|
const ZodSwcUmdConfig = ZodSwcBaseModuleConfig.extend({
|
|
55256
55322
|
type: literal("umd"),
|
|
55257
|
-
globals:
|
|
55323
|
+
globals: schemas_record(schemas_string(), schemas_string()).optional()
|
|
55258
55324
|
});
|
|
55259
55325
|
const ZodSwcAmdConfig = ZodSwcBaseModuleConfig.extend({
|
|
55260
55326
|
type: literal("amd"),
|
|
@@ -55440,7 +55506,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55440
55506
|
layer: layer.optional()
|
|
55441
55507
|
});
|
|
55442
55508
|
const entryUnnamed = entryItem;
|
|
55443
|
-
const entryObject =
|
|
55509
|
+
const entryObject = schemas_record(schemas_string(), entryItem.or(entryDescription));
|
|
55444
55510
|
const entryStatic = entryObject.or(entryUnnamed);
|
|
55445
55511
|
const entryDynamic = anyFunction;
|
|
55446
55512
|
const entry = entryStatic.or(entryDynamic);
|
|
@@ -55571,7 +55637,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55571
55637
|
environment: environment,
|
|
55572
55638
|
compareBeforeEmit: schemas_boolean()
|
|
55573
55639
|
}).partial();
|
|
55574
|
-
const resolveAlias =
|
|
55640
|
+
const resolveAlias = schemas_record(schemas_string(), literal(false).or(schemas_string()).or(schemas_array(schemas_string().or(literal(false))))).or(literal(false));
|
|
55575
55641
|
const resolveTsConfigFile = schemas_string();
|
|
55576
55642
|
const resolveTsConfig = resolveTsConfigFile.or(strictObject({
|
|
55577
55643
|
configFile: resolveTsConfigFile,
|
|
@@ -55594,14 +55660,14 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55594
55660
|
tsConfig: resolveTsConfig,
|
|
55595
55661
|
fullySpecified: schemas_boolean(),
|
|
55596
55662
|
exportsFields: schemas_array(schemas_string()),
|
|
55597
|
-
extensionAlias:
|
|
55663
|
+
extensionAlias: schemas_record(schemas_string(), schemas_string().or(schemas_array(schemas_string()))),
|
|
55598
55664
|
aliasFields: schemas_array(schemas_string()),
|
|
55599
55665
|
restrictions: schemas_array(schemas_string()),
|
|
55600
55666
|
roots: schemas_array(schemas_string()),
|
|
55601
55667
|
pnp: schemas_boolean()
|
|
55602
55668
|
}).partial();
|
|
55603
55669
|
const resolveOptions = baseResolveOptions.extend({
|
|
55604
|
-
byDependency: lazy(()=>
|
|
55670
|
+
byDependency: lazy(()=>schemas_record(schemas_string(), resolveOptions)).optional()
|
|
55605
55671
|
});
|
|
55606
55672
|
const baseRuleSetCondition = _instanceof(RegExp).or(schemas_string()).or(anyFunction);
|
|
55607
55673
|
const ruleSetCondition = baseRuleSetCondition.or(lazy(()=>ruleSetConditions)).or(lazy(()=>ruleSetLogicalConditions));
|
|
@@ -55612,7 +55678,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55612
55678
|
not: ruleSetCondition
|
|
55613
55679
|
}).partial();
|
|
55614
55680
|
const ruleSetLoader = schemas_string();
|
|
55615
|
-
const ruleSetLoaderOptions = schemas_string().or(
|
|
55681
|
+
const ruleSetLoaderOptions = schemas_string().or(schemas_record(schemas_string(), any()));
|
|
55616
55682
|
const ruleSetLoaderWithOptions = strictObject({
|
|
55617
55683
|
ident: schemas_string().optional(),
|
|
55618
55684
|
loader: ruleSetLoader,
|
|
@@ -55651,15 +55717,15 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55651
55717
|
resourceQuery: ruleSetCondition,
|
|
55652
55718
|
scheme: ruleSetCondition,
|
|
55653
55719
|
mimetype: ruleSetCondition,
|
|
55654
|
-
descriptionData:
|
|
55655
|
-
with:
|
|
55720
|
+
descriptionData: schemas_record(schemas_string(), ruleSetCondition),
|
|
55721
|
+
with: schemas_record(schemas_string(), ruleSetCondition),
|
|
55656
55722
|
type: schemas_string(),
|
|
55657
55723
|
layer: schemas_string(),
|
|
55658
55724
|
loader: ruleSetLoader,
|
|
55659
55725
|
options: ruleSetLoaderOptions,
|
|
55660
55726
|
use: ruleSetUse,
|
|
55661
|
-
parser:
|
|
55662
|
-
generator:
|
|
55727
|
+
parser: schemas_record(schemas_string(), any()),
|
|
55728
|
+
generator: schemas_record(schemas_string(), any()),
|
|
55663
55729
|
resolve: resolveOptions,
|
|
55664
55730
|
sideEffects: schemas_boolean(),
|
|
55665
55731
|
enforce: literal("pre").or(literal("post"))
|
|
@@ -55716,6 +55782,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55716
55782
|
]);
|
|
55717
55783
|
const exprContextCritical = schemas_boolean();
|
|
55718
55784
|
const wrappedContextCritical = schemas_boolean();
|
|
55785
|
+
const unknownContextCritical = schemas_boolean();
|
|
55719
55786
|
const wrappedContextRegExp = _instanceof(RegExp);
|
|
55720
55787
|
const exportsPresence = schemas_enum([
|
|
55721
55788
|
"error",
|
|
@@ -55757,6 +55824,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55757
55824
|
url: javascriptParserUrl,
|
|
55758
55825
|
exprContextCritical: exprContextCritical,
|
|
55759
55826
|
wrappedContextCritical: wrappedContextCritical,
|
|
55827
|
+
unknownContextCritical: unknownContextCritical,
|
|
55760
55828
|
wrappedContextRegExp: wrappedContextRegExp,
|
|
55761
55829
|
exportsPresence: exportsPresence,
|
|
55762
55830
|
importExportsPresence: importExportsPresence,
|
|
@@ -55893,7 +55961,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55893
55961
|
allowTarget,
|
|
55894
55962
|
allowTarget.array()
|
|
55895
55963
|
]);
|
|
55896
|
-
const externalItemObjectValue =
|
|
55964
|
+
const externalItemObjectValue = schemas_record(schemas_string(), schemas_string().or(schemas_string().array()));
|
|
55897
55965
|
const externalItemUmdValue = strictObject({
|
|
55898
55966
|
root: schemas_string().or(schemas_string().array()),
|
|
55899
55967
|
commonjs: schemas_string().or(schemas_string().array()),
|
|
@@ -55939,7 +56007,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55939
56007
|
}
|
|
55940
56008
|
};
|
|
55941
56009
|
const externalItemValue = schemas_string().or(schemas_boolean()).or(schemas_string().array().min(1)).or(externalItemObjectValue);
|
|
55942
|
-
const externalItemObjectUnknown =
|
|
56010
|
+
const externalItemObjectUnknown = schemas_record(schemas_string(), externalItemValue);
|
|
55943
56011
|
const externalItem = schemas_string().or(_instanceof(RegExp)).or(externalItemObjectUnknown).or(anyFunction);
|
|
55944
56012
|
const externals = externalItem.array().or(externalItem);
|
|
55945
56013
|
const externalsPresets = strictObject({
|
|
@@ -55991,7 +56059,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55991
56059
|
global: schemas_boolean().or(literal("warn"))
|
|
55992
56060
|
}).partial();
|
|
55993
56061
|
const node = literal(false).or(nodeOptions);
|
|
55994
|
-
const loader =
|
|
56062
|
+
const loader = schemas_record(schemas_string(), any());
|
|
55995
56063
|
const snapshotOptions = strictObject({});
|
|
55996
56064
|
const cacheOptions = schemas_boolean();
|
|
55997
56065
|
const statsPresets = schemas_enum([
|
|
@@ -56108,7 +56176,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
56108
56176
|
"async",
|
|
56109
56177
|
"all"
|
|
56110
56178
|
]).or(_instanceof(RegExp)).or(anyFunction);
|
|
56111
|
-
const optimizationSplitChunksSizes = numberOrInfinity.or(
|
|
56179
|
+
const optimizationSplitChunksSizes = numberOrInfinity.or(schemas_record(schemas_string(), numberOrInfinity));
|
|
56112
56180
|
const optimizationSplitChunksDefaultSizeTypes = schemas_array(schemas_string());
|
|
56113
56181
|
const sharedOptimizationSplitChunksCacheGroup = {
|
|
56114
56182
|
chunks: optimizationSplitChunksChunks,
|
|
@@ -56137,7 +56205,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
56137
56205
|
...sharedOptimizationSplitChunksCacheGroup
|
|
56138
56206
|
}).partial();
|
|
56139
56207
|
const optimizationSplitChunksOptions = strictObject({
|
|
56140
|
-
cacheGroups:
|
|
56208
|
+
cacheGroups: schemas_record(schemas_string(), literal(false).or(optimizationSplitChunksCacheGroup)),
|
|
56141
56209
|
fallbackCacheGroup: strictObject({
|
|
56142
56210
|
chunks: optimizationSplitChunksChunks,
|
|
56143
56211
|
minSize: numberOrInfinity,
|
|
@@ -56300,7 +56368,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
56300
56368
|
module: _instanceof(RegExp).optional()
|
|
56301
56369
|
})).array();
|
|
56302
56370
|
const profile = schemas_boolean();
|
|
56303
|
-
const amd = literal(false).or(
|
|
56371
|
+
const amd = literal(false).or(schemas_record(schemas_string(), any()));
|
|
56304
56372
|
const bail = schemas_boolean();
|
|
56305
56373
|
const performance = strictObject({
|
|
56306
56374
|
assetFilter: anyFunction,
|
|
@@ -56346,7 +56414,8 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
56346
56414
|
profile: profile,
|
|
56347
56415
|
amd: amd,
|
|
56348
56416
|
bail: bail,
|
|
56349
|
-
performance: performance
|
|
56417
|
+
performance: performance,
|
|
56418
|
+
lazyCompilation: schemas_boolean().or(lazyCompilationOptions).optional()
|
|
56350
56419
|
}).partial().check(externalUmdChecker);
|
|
56351
56420
|
return rspackOptions;
|
|
56352
56421
|
});
|
|
@@ -56898,7 +56967,7 @@ function transformSync(source, options) {
|
|
|
56898
56967
|
const _options = JSON.stringify(options || {});
|
|
56899
56968
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56900
56969
|
}
|
|
56901
|
-
const exports_rspackVersion = "1.4.12-canary-
|
|
56970
|
+
const exports_rspackVersion = "1.4.12-canary-51b82a4d-20250815075104";
|
|
56902
56971
|
const exports_version = "5.75.0";
|
|
56903
56972
|
const exports_WebpackError = Error;
|
|
56904
56973
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
|
@@ -56984,7 +57053,8 @@ const exports_experiments = {
|
|
|
56984
57053
|
sync: external_rspack_wasi_browser_js_.sync
|
|
56985
57054
|
},
|
|
56986
57055
|
CssChunkingPlugin: CssChunkingPlugin,
|
|
56987
|
-
createNativePlugin: createNativePlugin
|
|
57056
|
+
createNativePlugin: createNativePlugin,
|
|
57057
|
+
VirtualModulesPlugin: VirtualModulesPlugin
|
|
56988
57058
|
};
|
|
56989
57059
|
var rspack_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
56990
57060
|
function createMultiCompiler(options) {
|