@rspack-canary/core 1.6.1-canary-61cb132a-20251105091940 → 1.6.1-canary-72453ec6-20251216043959
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/config/devServer.d.ts +1 -0
- package/dist/cssExtractLoader.js +5 -5
- package/dist/index.js +83 -87
- package/dist/worker.js +4 -4
- package/package.json +3 -3
|
@@ -33,6 +33,7 @@ type Headers = {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}[] | Record<string, string | string[]>;
|
|
35
35
|
type OutputFileSystem = import("..").OutputFileSystem & {
|
|
36
|
+
createReadStream?: typeof import("fs").createReadStream;
|
|
36
37
|
statSync: import("fs").StatSyncFn;
|
|
37
38
|
readFileSync: typeof import("fs").readFileSync;
|
|
38
39
|
};
|
package/dist/cssExtractLoader.js
CHANGED
|
@@ -19,14 +19,14 @@ __webpack_require__.n = (module)=>{
|
|
|
19
19
|
};
|
|
20
20
|
var __webpack_exports__ = {};
|
|
21
21
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
|
22
|
-
hotLoader: ()=>hotLoader,
|
|
23
|
-
default: ()=>css_extract_loader,
|
|
24
22
|
ABSOLUTE_PUBLIC_PATH: ()=>ABSOLUTE_PUBLIC_PATH,
|
|
23
|
+
default: ()=>css_extract_loader,
|
|
24
|
+
SINGLE_DOT_PATH_SEGMENT: ()=>SINGLE_DOT_PATH_SEGMENT,
|
|
25
25
|
MODULE_TYPE: ()=>MODULE_TYPE,
|
|
26
|
+
BASE_URI: ()=>BASE_URI,
|
|
27
|
+
hotLoader: ()=>hotLoader,
|
|
26
28
|
AUTO_PUBLIC_PATH: ()=>AUTO_PUBLIC_PATH,
|
|
27
|
-
pitch: ()=>pitch
|
|
28
|
-
SINGLE_DOT_PATH_SEGMENT: ()=>SINGLE_DOT_PATH_SEGMENT,
|
|
29
|
-
BASE_URI: ()=>BASE_URI
|
|
29
|
+
pitch: ()=>pitch
|
|
30
30
|
});
|
|
31
31
|
const external_node_path_namespaceObject = require("node:path");
|
|
32
32
|
var external_node_path_default = __webpack_require__.n(external_node_path_namespaceObject);
|
package/dist/index.js
CHANGED
|
@@ -289,75 +289,75 @@ var __webpack_exports__ = {};
|
|
|
289
289
|
for(var __webpack_i__ in (()=>{
|
|
290
290
|
let createMd4, createXxhash64, service_pool, loadLoader_url;
|
|
291
291
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
webworker: ()=>webworker,
|
|
292
|
+
CopyRspackPlugin: ()=>CopyRspackPlugin,
|
|
293
|
+
RuntimePlugin: ()=>RuntimePlugin,
|
|
295
294
|
RspackOptionsApply: ()=>RspackOptionsApply,
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
SourceMapDevToolPlugin: ()=>SourceMapDevToolPlugin,
|
|
296
|
+
AsyncDependenciesBlock: ()=>binding_.AsyncDependenciesBlock,
|
|
297
|
+
electron: ()=>electron,
|
|
298
|
+
ExternalModule: ()=>binding_.ExternalModule,
|
|
298
299
|
Stats: ()=>Stats,
|
|
299
|
-
|
|
300
|
-
BannerPlugin: ()=>BannerPlugin,
|
|
301
|
-
ExternalsPlugin: ()=>ExternalsPlugin,
|
|
302
|
-
MultiStats: ()=>MultiStats,
|
|
303
|
-
SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
|
|
304
|
-
ContextModule: ()=>binding_.ContextModule,
|
|
305
|
-
DllPlugin: ()=>DllPlugin,
|
|
306
|
-
WarnCaseSensitiveModulesPlugin: ()=>WarnCaseSensitiveModulesPlugin,
|
|
307
|
-
ProvidePlugin: ()=>ProvidePlugin,
|
|
300
|
+
LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
|
|
308
301
|
Template: ()=>Template,
|
|
309
|
-
container: ()=>container,
|
|
310
|
-
HtmlRspackPlugin: ()=>HtmlRspackPlugin,
|
|
311
|
-
javascript: ()=>javascript,
|
|
312
|
-
EvalDevToolModulePlugin: ()=>EvalDevToolModulePlugin,
|
|
313
|
-
NormalModuleReplacementPlugin: ()=>NormalModuleReplacementPlugin,
|
|
314
|
-
WebpackOptionsApply: ()=>RspackOptionsApply,
|
|
315
|
-
EnvironmentPlugin: ()=>EnvironmentPlugin,
|
|
316
|
-
HotModuleReplacementPlugin: ()=>HotModuleReplacementPlugin,
|
|
317
302
|
Compilation: ()=>Compilation,
|
|
318
|
-
experiments: ()=>exports_experiments,
|
|
319
|
-
CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
|
|
320
|
-
EvalSourceMapDevToolPlugin: ()=>EvalSourceMapDevToolPlugin,
|
|
321
|
-
RuntimePlugin: ()=>RuntimePlugin,
|
|
322
|
-
Dependency: ()=>binding_.Dependency,
|
|
323
|
-
DllReferencePlugin: ()=>DllReferencePlugin,
|
|
324
303
|
IgnorePlugin: ()=>IgnorePlugin,
|
|
325
|
-
|
|
304
|
+
ContextModule: ()=>binding_.ContextModule,
|
|
305
|
+
WebpackError: ()=>exports_WebpackError,
|
|
306
|
+
RuntimeGlobals: ()=>RuntimeGlobals,
|
|
307
|
+
DynamicEntryPlugin: ()=>DynamicEntryPlugin,
|
|
308
|
+
EntryPlugin: ()=>EntryPlugin,
|
|
309
|
+
EntryDependency: ()=>binding_.EntryDependency,
|
|
310
|
+
DllReferencePlugin: ()=>DllReferencePlugin,
|
|
311
|
+
HotModuleReplacementPlugin: ()=>HotModuleReplacementPlugin,
|
|
312
|
+
Dependency: ()=>binding_.Dependency,
|
|
313
|
+
LoaderTargetPlugin: ()=>LoaderTargetPlugin,
|
|
314
|
+
container: ()=>container,
|
|
315
|
+
EvalDevToolModulePlugin: ()=>EvalDevToolModulePlugin,
|
|
316
|
+
SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
|
|
317
|
+
MultiCompiler: ()=>MultiCompiler,
|
|
318
|
+
EntryOptionPlugin: ()=>lib_EntryOptionPlugin,
|
|
319
|
+
javascript: ()=>javascript,
|
|
326
320
|
sources: ()=>sources,
|
|
321
|
+
EvalSourceMapDevToolPlugin: ()=>EvalSourceMapDevToolPlugin,
|
|
322
|
+
ContextReplacementPlugin: ()=>ContextReplacementPlugin,
|
|
323
|
+
EnvironmentPlugin: ()=>EnvironmentPlugin,
|
|
324
|
+
NoEmitOnErrorsPlugin: ()=>NoEmitOnErrorsPlugin,
|
|
327
325
|
ValidationError: ()=>ValidationError,
|
|
328
|
-
|
|
329
|
-
AsyncDependenciesBlock: ()=>binding_.AsyncDependenciesBlock,
|
|
330
|
-
web: ()=>web,
|
|
326
|
+
LightningCssMinimizerRspackPlugin: ()=>LightningCssMinimizerRspackPlugin,
|
|
331
327
|
default: ()=>src_0,
|
|
332
|
-
|
|
333
|
-
WebpackError: ()=>exports_WebpackError,
|
|
334
|
-
RuntimeModule: ()=>RuntimeModule,
|
|
328
|
+
web: ()=>web,
|
|
335
329
|
sharing: ()=>sharing,
|
|
336
|
-
|
|
337
|
-
ContextReplacementPlugin: ()=>ContextReplacementPlugin,
|
|
330
|
+
CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
|
|
338
331
|
NormalModule: ()=>binding_.NormalModule,
|
|
339
|
-
|
|
340
|
-
LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
|
|
341
|
-
EntryOptionPlugin: ()=>lib_EntryOptionPlugin,
|
|
342
|
-
Compiler: ()=>Compiler,
|
|
343
|
-
DefinePlugin: ()=>DefinePlugin,
|
|
332
|
+
config: ()=>exports_config,
|
|
344
333
|
ModuleFilenameHelpers: ()=>ModuleFilenameHelpers_namespaceObject,
|
|
345
|
-
|
|
346
|
-
|
|
334
|
+
webworker: ()=>webworker,
|
|
335
|
+
experiments: ()=>exports_experiments,
|
|
336
|
+
RuntimeModule: ()=>RuntimeModule,
|
|
347
337
|
library: ()=>exports_library,
|
|
348
338
|
node: ()=>exports_node,
|
|
349
|
-
|
|
350
|
-
|
|
339
|
+
HtmlRspackPlugin: ()=>HtmlRspackPlugin,
|
|
340
|
+
WarnCaseSensitiveModulesPlugin: ()=>WarnCaseSensitiveModulesPlugin,
|
|
351
341
|
util: ()=>util,
|
|
342
|
+
ConcatenatedModule: ()=>binding_.ConcatenatedModule,
|
|
352
343
|
optimize: ()=>optimize,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
CopyRspackPlugin: ()=>CopyRspackPlugin,
|
|
357
|
-
rspack: ()=>src_rspack_0,
|
|
344
|
+
ProvidePlugin: ()=>ProvidePlugin,
|
|
345
|
+
rspackVersion: ()=>exports_rspackVersion,
|
|
346
|
+
DllPlugin: ()=>DllPlugin,
|
|
358
347
|
CssExtractRspackPlugin: ()=>CssExtractRspackPlugin,
|
|
348
|
+
DefinePlugin: ()=>DefinePlugin,
|
|
349
|
+
BannerPlugin: ()=>BannerPlugin,
|
|
350
|
+
ProgressPlugin: ()=>ProgressPlugin,
|
|
351
|
+
StatsErrorCode: ()=>statsFactoryUtils_StatsErrorCode,
|
|
352
|
+
MultiStats: ()=>MultiStats,
|
|
353
|
+
Module: ()=>binding_.Module,
|
|
354
|
+
WebpackOptionsApply: ()=>RspackOptionsApply,
|
|
355
|
+
NormalModuleReplacementPlugin: ()=>NormalModuleReplacementPlugin,
|
|
356
|
+
ExternalsPlugin: ()=>ExternalsPlugin,
|
|
357
|
+
rspack: ()=>src_rspack,
|
|
358
|
+
Compiler: ()=>Compiler,
|
|
359
359
|
wasm: ()=>exports_wasm,
|
|
360
|
-
|
|
360
|
+
version: ()=>exports_version
|
|
361
361
|
});
|
|
362
362
|
var StatsErrorCode, _computedKey, _computedKey1, _computedKey2, ArrayQueue_computedKey, browserslistTargetHandler_namespaceObject = {};
|
|
363
363
|
__webpack_require__.r(browserslistTargetHandler_namespaceObject), __webpack_require__.d(browserslistTargetHandler_namespaceObject, {
|
|
@@ -449,7 +449,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
449
449
|
return -1 === nextLine ? stack === message ? "" : stack : stack.slice(0, nextLine) === `${name}: ${message}` ? stack.slice(nextLine + 1) : stack;
|
|
450
450
|
}, external_node_util_namespaceObject = require("node:util");
|
|
451
451
|
var external_node_util_default = __webpack_require__.n(external_node_util_namespaceObject);
|
|
452
|
-
class
|
|
452
|
+
class WebpackError_WebpackError extends Error {
|
|
453
453
|
loc;
|
|
454
454
|
file;
|
|
455
455
|
chunk;
|
|
@@ -457,14 +457,14 @@ for(var __webpack_i__ in (()=>{
|
|
|
457
457
|
details;
|
|
458
458
|
hideStack;
|
|
459
459
|
}
|
|
460
|
-
Object.defineProperty(
|
|
460
|
+
Object.defineProperty(WebpackError_WebpackError.prototype, external_node_util_namespaceObject.inspect.custom, {
|
|
461
461
|
value: function() {
|
|
462
462
|
return this.stack + (this.details ? `\n${this.details}` : "");
|
|
463
463
|
},
|
|
464
464
|
enumerable: !1,
|
|
465
465
|
configurable: !0
|
|
466
466
|
});
|
|
467
|
-
let
|
|
467
|
+
let WebpackError = WebpackError_WebpackError, LogType = Object.freeze({
|
|
468
468
|
error: "error",
|
|
469
469
|
warn: "warn",
|
|
470
470
|
info: "info",
|
|
@@ -1902,13 +1902,13 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
1902
1902
|
let cbs = this.#cbs;
|
|
1903
1903
|
this.#cbs = [], this.#inner(args, (wholeErr, results)=>{
|
|
1904
1904
|
if (0 !== this.#args.length && queueMicrotask(this.#execute.bind(this)), wholeErr) {
|
|
1905
|
-
let webpackError = new
|
|
1905
|
+
let webpackError = new WebpackError(wholeErr.message);
|
|
1906
1906
|
for (let cb of cbs)cb(webpackError);
|
|
1907
1907
|
return;
|
|
1908
1908
|
}
|
|
1909
1909
|
for(let i = 0; i < results.length; i++){
|
|
1910
1910
|
let [errMsg, module1] = results[i];
|
|
1911
|
-
(0, cbs[i])(errMsg ? new
|
|
1911
|
+
(0, cbs[i])(errMsg ? new WebpackError(errMsg) : null, module1);
|
|
1912
1912
|
}
|
|
1913
1913
|
});
|
|
1914
1914
|
};
|
|
@@ -2304,7 +2304,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2304
2304
|
if (!function(options, logger) {
|
|
2305
2305
|
options.optimization.concatenateModules = !1, options.output.chunkFormat = !1, options.output.chunkLoading && "import" !== options.output.chunkLoading && (logger.warn(`\`output.chunkLoading\` should be \`"import"\` or \`false\`, but got ${options.output.chunkLoading}, changed it to \`"import"\``), options.output.chunkLoading = "import"), void 0 === options.output.chunkLoading && (options.output.chunkLoading = "import"), options.output.library && (options.output.library = void 0);
|
|
2306
2306
|
let { splitChunks } = options.optimization;
|
|
2307
|
-
|
|
2307
|
+
splitChunks && (splitChunks.chunks = "all", splitChunks.minSize = 0, splitChunks.maxAsyncRequests = 1 / 0, splitChunks.maxInitialRequests = 1 / 0, splitChunks.cacheGroups && (splitChunks.cacheGroups.default = !1, splitChunks.cacheGroups.defaultVendors = !1));
|
|
2308
2308
|
}(compiler.options, logger), new RemoveDuplicateModulesPlugin().apply(compiler), err = (config = compiler.options).optimization.concatenateModules ? "You should disable `config.optimization.concatenateModules`" : !1 !== config.output.chunkFormat ? "You should disable default chunkFormat by `config.output.chunkFormat = false`" : void 0) throw new src_0.WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
|
|
2309
2309
|
compiler.__internal__registerBuiltinPlugin({
|
|
2310
2310
|
name: binding_.BuiltinPluginName.EsmLibraryPlugin,
|
|
@@ -2756,7 +2756,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2756
2756
|
this.message = match?.[1] ? createMessage(match[1]) : createMessage();
|
|
2757
2757
|
}
|
|
2758
2758
|
}
|
|
2759
|
-
class AbstractMethodError extends
|
|
2759
|
+
class AbstractMethodError extends WebpackError {
|
|
2760
2760
|
constructor(){
|
|
2761
2761
|
super(new Message().message), this.name = "AbstractMethodError";
|
|
2762
2762
|
}
|
|
@@ -2948,13 +2948,13 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2948
2948
|
var stack, name, message;
|
|
2949
2949
|
return err && "object" == typeof err && err.stack ? (stack = err.stack, name = err.name, message = err.message, cutOffLoaderExecution(stack), cutOffMessage(stack, name, message)) : void 0;
|
|
2950
2950
|
};
|
|
2951
|
-
class ModuleError extends
|
|
2951
|
+
class ModuleError extends WebpackError {
|
|
2952
2952
|
error;
|
|
2953
2953
|
constructor(err, { from } = {}){
|
|
2954
2954
|
super(ModuleError_createMessage(err, "Error", from)), this.name = "ModuleError", this.error = err, this.details = getErrorDetails(err);
|
|
2955
2955
|
}
|
|
2956
2956
|
}
|
|
2957
|
-
class ModuleWarning extends
|
|
2957
|
+
class ModuleWarning extends WebpackError {
|
|
2958
2958
|
error;
|
|
2959
2959
|
constructor(err, { from } = {}){
|
|
2960
2960
|
super(ModuleError_createMessage(err, "Warning", from)), this.name = "ModuleWarning", this.error = err, this.details = getErrorDetails(err);
|
|
@@ -5747,7 +5747,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5747
5747
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5748
5748
|
F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "topLevelAwait", !0), D(experiments, "deferImport", !1), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !1), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !0);
|
|
5749
5749
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5750
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.1-canary-
|
|
5750
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.1-canary-72453ec6-20251216043959"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
5751
5751
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
|
|
5752
5752
|
if (assertNotNill(module1.parser), assertNotNill(module1.generator), cache ? D(module1, "unsafeCache", /[\\/]node_modules[\\/]/) : D(module1, "unsafeCache", !1), F(module1.parser, "asset", ()=>({})), assertNotNill(module1.parser.asset), F(module1.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module1.parser.asset.dataUrlCondition && D(module1.parser.asset.dataUrlCondition, "maxSize", 8096), F(module1.parser, "javascript", ()=>({})), assertNotNill(module1.parser.javascript), ((parserOptions, { usedExports, inlineConst, deferImport })=>{
|
|
5753
5753
|
D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
|
@@ -6730,7 +6730,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6730
6730
|
return new this(fs);
|
|
6731
6731
|
}
|
|
6732
6732
|
}
|
|
6733
|
-
class HookWebpackError extends
|
|
6733
|
+
class HookWebpackError extends WebpackError {
|
|
6734
6734
|
hook;
|
|
6735
6735
|
error;
|
|
6736
6736
|
constructor(error, hook){
|
|
@@ -6738,7 +6738,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6738
6738
|
}
|
|
6739
6739
|
}
|
|
6740
6740
|
let makeWebpackErrorCallback = (callback, hook)=>(err, result)=>{
|
|
6741
|
-
err ? err instanceof
|
|
6741
|
+
err ? err instanceof WebpackError ? callback(err) : callback(new HookWebpackError(err, hook)) : callback(null, result);
|
|
6742
6742
|
};
|
|
6743
6743
|
class Cache {
|
|
6744
6744
|
static STAGE_DISK = 10;
|
|
@@ -6770,7 +6770,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6770
6770
|
let gotHandlers = [];
|
|
6771
6771
|
this.hooks.get.callAsync(identifier, etag, gotHandlers, (err, res)=>{
|
|
6772
6772
|
var error, hook, times, callback1;
|
|
6773
|
-
if (err) return void callback((hook = "Cache.hooks.get", (error = err) instanceof
|
|
6773
|
+
if (err) return void callback((hook = "Cache.hooks.get", (error = err) instanceof WebpackError ? error : new HookWebpackError(error, hook)));
|
|
6774
6774
|
let result = res;
|
|
6775
6775
|
if (null === result && (result = void 0), gotHandlers.length > 1) {
|
|
6776
6776
|
let leftTimes, innerCallback = (times = gotHandlers.length, callback1 = ()=>callback(null, result), leftTimes = times, (err)=>0 == --leftTimes ? callback1() : err && leftTimes > 0 ? (leftTimes = 0, callback1()) : void 0);
|
|
@@ -6864,7 +6864,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6864
6864
|
return await this.storePromise(result), result;
|
|
6865
6865
|
}
|
|
6866
6866
|
}
|
|
6867
|
-
class
|
|
6867
|
+
class CacheFacade_CacheFacade {
|
|
6868
6868
|
_name;
|
|
6869
6869
|
_cache;
|
|
6870
6870
|
_hashFunction;
|
|
@@ -6872,7 +6872,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6872
6872
|
this._cache = cache, this._name = name, this._hashFunction = hashFunction;
|
|
6873
6873
|
}
|
|
6874
6874
|
getChildCache(name) {
|
|
6875
|
-
return new
|
|
6875
|
+
return new CacheFacade_CacheFacade(this._cache, `${this._name}|${name}`, this._hashFunction);
|
|
6876
6876
|
}
|
|
6877
6877
|
getItemCache(identifier, etag) {
|
|
6878
6878
|
return new ItemCacheFacade(this._cache, `${this._name}|${identifier}`, etag);
|
|
@@ -7393,7 +7393,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7393
7393
|
});
|
|
7394
7394
|
}
|
|
7395
7395
|
}
|
|
7396
|
-
let CORE_VERSION = "1.6.1-canary-
|
|
7396
|
+
let CORE_VERSION = "1.6.1-canary-72453ec6-20251216043959", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7397
7397
|
|
|
7398
7398
|
Help:
|
|
7399
7399
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -7783,7 +7783,7 @@ Help:
|
|
|
7783
7783
|
"entry"
|
|
7784
7784
|
]),
|
|
7785
7785
|
additionalPass: new lite_tapable_namespaceObject.AsyncSeriesHook([])
|
|
7786
|
-
}, this.webpack =
|
|
7786
|
+
}, this.webpack = src_rspack, this.rspack = src_rspack, this.root = this, this.outputPath = "", this.inputFileSystem = null, this.intermediateFileSystem = null, this.outputFileSystem = null, this.watchFileSystem = null, this.records = {}, this.options = options, this.context = context, this.cache = new Cache(), this.compilerPath = "", this.running = !1, this.idle = !1, this.watchMode = !1, this.__internal_browser_require = ()=>{
|
|
7787
7787
|
throw Error("Cannot execute user defined code in browser without `BrowserRequirePlugin`");
|
|
7788
7788
|
}, this.resolverFactory = new ResolverFactory(options.resolve.pnp ?? getPnpDefault(), options.resolve, options.resolveLoader), new JsLoaderRspackPlugin(this).apply(this), new ExecuteModulePlugin().apply(this), new TraceHookPlugin().apply(this);
|
|
7789
7789
|
}
|
|
@@ -7809,7 +7809,7 @@ Help:
|
|
|
7809
7809
|
return this.#ruleSet;
|
|
7810
7810
|
}
|
|
7811
7811
|
getCache(name) {
|
|
7812
|
-
return new
|
|
7812
|
+
return new CacheFacade_CacheFacade(this.cache, `${this.compilerPath}${name}`, this.options.output.hashFunction);
|
|
7813
7813
|
}
|
|
7814
7814
|
getInfrastructureLogger(name) {
|
|
7815
7815
|
if (!name) throw TypeError("Compiler.getInfrastructureLogger(name) called without a name");
|
|
@@ -8137,9 +8137,7 @@ Help:
|
|
|
8137
8137
|
targetPath,
|
|
8138
8138
|
outputPath,
|
|
8139
8139
|
get source () {
|
|
8140
|
-
|
|
8141
|
-
if (!source) throw Error(`Asset ${filename} not found`);
|
|
8142
|
-
return source;
|
|
8140
|
+
return getCompiler1().__internal__get_compilation().getAsset(filename)?.source;
|
|
8143
8141
|
},
|
|
8144
8142
|
get content () {
|
|
8145
8143
|
return this.source?.buffer();
|
|
@@ -8232,7 +8230,7 @@ Help:
|
|
|
8232
8230
|
try {
|
|
8233
8231
|
fn();
|
|
8234
8232
|
} catch (err) {
|
|
8235
|
-
if (err instanceof
|
|
8233
|
+
if (err instanceof WebpackError) throw err;
|
|
8236
8234
|
throw new HookWebpackError(err, hook);
|
|
8237
8235
|
}
|
|
8238
8236
|
})(()=>queried.call({
|
|
@@ -8686,7 +8684,7 @@ Help:
|
|
|
8686
8684
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8687
8685
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8688
8686
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8689
|
-
}), childOptions.version && (obj.rspackVersion = "1.6.1-canary-
|
|
8687
|
+
}), childOptions.version && (obj.rspackVersion = "1.6.1-canary-72453ec6-20251216043959", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8690
8688
|
let mapError = (j, obj)=>({
|
|
8691
8689
|
...obj,
|
|
8692
8690
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -8733,7 +8731,7 @@ Help:
|
|
|
8733
8731
|
}(callback1));
|
|
8734
8732
|
}
|
|
8735
8733
|
size || callback(null);
|
|
8736
|
-
},
|
|
8734
|
+
}, MultiWatching = class {
|
|
8737
8735
|
watchings;
|
|
8738
8736
|
compiler;
|
|
8739
8737
|
constructor(watchings, compiler){
|
|
@@ -8762,7 +8760,7 @@ Help:
|
|
|
8762
8760
|
}
|
|
8763
8761
|
};
|
|
8764
8762
|
ArrayQueue_computedKey = Symbol.iterator;
|
|
8765
|
-
let
|
|
8763
|
+
let ArrayQueue = class {
|
|
8766
8764
|
_list;
|
|
8767
8765
|
_listReversed;
|
|
8768
8766
|
constructor(items){
|
|
@@ -8923,7 +8921,7 @@ Help:
|
|
|
8923
8921
|
node.parents.push(parent), parent.children.push(node);
|
|
8924
8922
|
}
|
|
8925
8923
|
}
|
|
8926
|
-
let queue = new
|
|
8924
|
+
let queue = new ArrayQueue();
|
|
8927
8925
|
for (let node of nodes)0 === node.parents.length && (node.state = "queued", queue.enqueue(node));
|
|
8928
8926
|
let errored = !1, running = 0, parallelism = this._options.parallelism, nodeDone = (node, err, stats)=>{
|
|
8929
8927
|
if (!errored) {
|
|
@@ -8972,9 +8970,9 @@ Help:
|
|
|
8972
8970
|
}, (compiler, watching, _done)=>{
|
|
8973
8971
|
compiler.watching === watching && (watching.running || watching.invalidate());
|
|
8974
8972
|
}, handler);
|
|
8975
|
-
return this.watching = new
|
|
8973
|
+
return this.watching = new MultiWatching(watchings, this), this.watching;
|
|
8976
8974
|
}
|
|
8977
|
-
return this.watching = new
|
|
8975
|
+
return this.watching = new MultiWatching([], this), this.watching;
|
|
8978
8976
|
}
|
|
8979
8977
|
run(callback, options) {
|
|
8980
8978
|
if (this.running) return callback(new ConcurrentCompilationError());
|
|
@@ -9585,7 +9583,7 @@ Help:
|
|
|
9585
9583
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9586
9584
|
},
|
|
9587
9585
|
version: (object)=>{
|
|
9588
|
-
object.version = "5.75.0", object.rspackVersion = "1.6.1-canary-
|
|
9586
|
+
object.version = "5.75.0", object.rspackVersion = "1.6.1-canary-72453ec6-20251216043959";
|
|
9589
9587
|
},
|
|
9590
9588
|
env: (object, _compilation, _context, { _env })=>{
|
|
9591
9589
|
object.env = _env;
|
|
@@ -11098,7 +11096,7 @@ Help:
|
|
|
11098
11096
|
});
|
|
11099
11097
|
}
|
|
11100
11098
|
}
|
|
11101
|
-
class DllManifestError extends
|
|
11099
|
+
class DllManifestError extends WebpackError {
|
|
11102
11100
|
constructor(filename, message){
|
|
11103
11101
|
super(), this.name = "DllManifestError", this.message = `Dll manifest ${filename}\n${message}`;
|
|
11104
11102
|
}
|
|
@@ -11114,7 +11112,7 @@ Help:
|
|
|
11114
11112
|
for (let key of this.keys){
|
|
11115
11113
|
let value = void 0 !== process.env[key] ? process.env[key] : this.defaultValues[key];
|
|
11116
11114
|
void 0 === value && compiler.hooks.thisCompilation.tap("EnvironmentPlugin", (compilation)=>{
|
|
11117
|
-
let error = new
|
|
11115
|
+
let error = new WebpackError(`EnvironmentPlugin - ${key} environment variable is undefined.\n\nYou can pass an object with default values to suppress this warning.\nSee https://rspack.rs/plugins/webpack/environment-plugin for example.`);
|
|
11118
11116
|
error.name = "EnvVariableNotDefinedError", compilation.errors.push(error);
|
|
11119
11117
|
}), definitions[`process.env.${key}`] = void 0 === value ? "undefined" : JSON.stringify(value);
|
|
11120
11118
|
}
|
|
@@ -11689,7 +11687,7 @@ Help:
|
|
|
11689
11687
|
let _options = JSON.stringify(options || {});
|
|
11690
11688
|
return binding_default().transform(source, _options);
|
|
11691
11689
|
}
|
|
11692
|
-
let exports_rspackVersion = "1.6.1-canary-
|
|
11690
|
+
let exports_rspackVersion = "1.6.1-canary-72453ec6-20251216043959", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
11693
11691
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
11694
11692
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
11695
11693
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
|
@@ -11943,8 +11941,6 @@ Help:
|
|
|
11943
11941
|
function validateRspackConfig(config) {
|
|
11944
11942
|
(({ context })=>{
|
|
11945
11943
|
if (context && !(0, external_node_path_namespaceObject.isAbsolute)(context)) throw Error(`${ERROR_PREFIX} "context" must be an absolute path, get "${context}".`);
|
|
11946
|
-
})(config), (({ output })=>{
|
|
11947
|
-
if (output?.path && !(0, external_node_path_namespaceObject.isAbsolute)(output.path)) throw Error(`${ERROR_PREFIX} "output.path" must be an absolute path, get "${output.path}".`);
|
|
11948
11944
|
})(config), (({ optimization })=>{
|
|
11949
11945
|
if (optimization?.splitChunks) {
|
|
11950
11946
|
let { minChunks } = optimization.splitChunks;
|
|
@@ -12023,7 +12019,7 @@ Help:
|
|
|
12023
12019
|
}
|
|
12024
12020
|
}, exports_namespaceObject);
|
|
12025
12021
|
src_fn.rspack = src_fn, src_fn.webpack = src_fn;
|
|
12026
|
-
let
|
|
12022
|
+
let src_rspack = src_fn, src_0 = src_rspack;
|
|
12027
12023
|
})(), exports.AsyncDependenciesBlock = __webpack_exports__.AsyncDependenciesBlock, exports.BannerPlugin = __webpack_exports__.BannerPlugin, exports.CircularDependencyRspackPlugin = __webpack_exports__.CircularDependencyRspackPlugin, exports.Compilation = __webpack_exports__.Compilation, exports.Compiler = __webpack_exports__.Compiler, exports.ConcatenatedModule = __webpack_exports__.ConcatenatedModule, exports.ContextModule = __webpack_exports__.ContextModule, exports.ContextReplacementPlugin = __webpack_exports__.ContextReplacementPlugin, exports.CopyRspackPlugin = __webpack_exports__.CopyRspackPlugin, exports.CssExtractRspackPlugin = __webpack_exports__.CssExtractRspackPlugin, exports.DefinePlugin = __webpack_exports__.DefinePlugin, exports.Dependency = __webpack_exports__.Dependency, exports.DllPlugin = __webpack_exports__.DllPlugin, exports.DllReferencePlugin = __webpack_exports__.DllReferencePlugin, exports.DynamicEntryPlugin = __webpack_exports__.DynamicEntryPlugin, exports.EntryDependency = __webpack_exports__.EntryDependency, exports.EntryOptionPlugin = __webpack_exports__.EntryOptionPlugin, exports.EntryPlugin = __webpack_exports__.EntryPlugin, exports.EnvironmentPlugin = __webpack_exports__.EnvironmentPlugin, exports.EvalDevToolModulePlugin = __webpack_exports__.EvalDevToolModulePlugin, exports.EvalSourceMapDevToolPlugin = __webpack_exports__.EvalSourceMapDevToolPlugin, exports.ExternalModule = __webpack_exports__.ExternalModule, exports.ExternalsPlugin = __webpack_exports__.ExternalsPlugin, exports.HotModuleReplacementPlugin = __webpack_exports__.HotModuleReplacementPlugin, exports.HtmlRspackPlugin = __webpack_exports__.HtmlRspackPlugin, exports.IgnorePlugin = __webpack_exports__.IgnorePlugin, exports.LightningCssMinimizerRspackPlugin = __webpack_exports__.LightningCssMinimizerRspackPlugin, exports.LoaderOptionsPlugin = __webpack_exports__.LoaderOptionsPlugin, exports.LoaderTargetPlugin = __webpack_exports__.LoaderTargetPlugin, exports.Module = __webpack_exports__.Module, exports.ModuleFilenameHelpers = __webpack_exports__.ModuleFilenameHelpers, exports.MultiCompiler = __webpack_exports__.MultiCompiler, exports.MultiStats = __webpack_exports__.MultiStats, exports.NoEmitOnErrorsPlugin = __webpack_exports__.NoEmitOnErrorsPlugin, exports.NormalModule = __webpack_exports__.NormalModule, exports.NormalModuleReplacementPlugin = __webpack_exports__.NormalModuleReplacementPlugin, exports.ProgressPlugin = __webpack_exports__.ProgressPlugin, exports.ProvidePlugin = __webpack_exports__.ProvidePlugin, exports.RspackOptionsApply = __webpack_exports__.RspackOptionsApply, exports.RuntimeGlobals = __webpack_exports__.RuntimeGlobals, exports.RuntimeModule = __webpack_exports__.RuntimeModule, exports.RuntimePlugin = __webpack_exports__.RuntimePlugin, exports.SourceMapDevToolPlugin = __webpack_exports__.SourceMapDevToolPlugin, exports.Stats = __webpack_exports__.Stats, exports.StatsErrorCode = __webpack_exports__.StatsErrorCode, exports.SwcJsMinimizerRspackPlugin = __webpack_exports__.SwcJsMinimizerRspackPlugin, exports.Template = __webpack_exports__.Template, exports.ValidationError = __webpack_exports__.ValidationError, exports.WarnCaseSensitiveModulesPlugin = __webpack_exports__.WarnCaseSensitiveModulesPlugin, exports.WebpackError = __webpack_exports__.WebpackError, exports.WebpackOptionsApply = __webpack_exports__.WebpackOptionsApply, exports.config = __webpack_exports__.config, exports.container = __webpack_exports__.container, exports.default = __webpack_exports__.default, exports.electron = __webpack_exports__.electron, exports.experiments = __webpack_exports__.experiments, exports.javascript = __webpack_exports__.javascript, exports.library = __webpack_exports__.library, exports.node = __webpack_exports__.node, exports.optimize = __webpack_exports__.optimize, exports.rspack = __webpack_exports__.rspack, exports.rspackVersion = __webpack_exports__.rspackVersion, exports.sharing = __webpack_exports__.sharing, exports.sources = __webpack_exports__.sources, exports.util = __webpack_exports__.util, exports.version = __webpack_exports__.version, exports.wasm = __webpack_exports__.wasm, exports.web = __webpack_exports__.web, exports.webworker = __webpack_exports__.webworker, __webpack_exports__)-1 === [
|
|
12028
12024
|
"AsyncDependenciesBlock",
|
|
12029
12025
|
"BannerPlugin",
|
package/dist/worker.js
CHANGED
|
@@ -209,7 +209,7 @@ var __webpack_modules__ = {
|
|
|
209
209
|
n: ()=>createHash_createHash
|
|
210
210
|
});
|
|
211
211
|
var external_node_util_ = __webpack_require__("node:util");
|
|
212
|
-
class
|
|
212
|
+
class WebpackError_WebpackError extends Error {
|
|
213
213
|
loc;
|
|
214
214
|
file;
|
|
215
215
|
chunk;
|
|
@@ -217,14 +217,14 @@ var __webpack_modules__ = {
|
|
|
217
217
|
details;
|
|
218
218
|
hideStack;
|
|
219
219
|
}
|
|
220
|
-
Object.defineProperty(
|
|
220
|
+
Object.defineProperty(WebpackError_WebpackError.prototype, external_node_util_.inspect.custom, {
|
|
221
221
|
value: function() {
|
|
222
222
|
return this.stack + (this.details ? `\n${this.details}` : "");
|
|
223
223
|
},
|
|
224
224
|
enumerable: !1,
|
|
225
225
|
configurable: !0
|
|
226
226
|
});
|
|
227
|
-
let
|
|
227
|
+
let WebpackError = WebpackError_WebpackError, CURRENT_METHOD_REGEXP = /at ([a-zA-Z0-9_.]*)/;
|
|
228
228
|
function createMessage(method) {
|
|
229
229
|
return `Abstract method${method ? ` ${method}` : ""}. Must be overridden.`;
|
|
230
230
|
}
|
|
@@ -235,7 +235,7 @@ var __webpack_modules__ = {
|
|
|
235
235
|
this.message = match?.[1] ? createMessage(match[1]) : createMessage();
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
class AbstractMethodError extends
|
|
238
|
+
class AbstractMethodError extends WebpackError {
|
|
239
239
|
constructor(){
|
|
240
240
|
super(new Message().message), this.name = "AbstractMethodError";
|
|
241
241
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.6.1-canary-
|
|
3
|
+
"version": "1.6.1-canary-72453ec6-20251216043959",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@ast-grep/napi": "^0.39.7",
|
|
41
41
|
"@napi-rs/wasm-runtime": "1.0.7",
|
|
42
42
|
"@rsbuild/plugin-node-polyfill": "^1.4.2",
|
|
43
|
-
"@rslib/core": "0.
|
|
43
|
+
"@rslib/core": "0.16.1",
|
|
44
44
|
"@swc/types": "0.1.25",
|
|
45
45
|
"@types/node": "^20.19.24",
|
|
46
46
|
"@types/watchpack": "^2.4.4",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@module-federation/runtime-tools": "0.21.2",
|
|
60
60
|
"@rspack/lite-tapable": "1.0.1",
|
|
61
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.6.1-canary-
|
|
61
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.6.1-canary-72453ec6-20251216043959"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|