@rspack-canary/core 1.6.1-canary-d808219f-20251101173657 → 1.6.1-canary-1ad35372-20251102173630
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 +0 -1
- package/dist/cssExtractLoader.js +5 -5
- package/dist/index.js +84 -82
- package/dist/worker.js +4 -4
- package/package.json +3 -3
|
@@ -33,7 +33,6 @@ type Headers = {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}[] | Record<string, string | string[]>;
|
|
35
35
|
type OutputFileSystem = import("..").OutputFileSystem & {
|
|
36
|
-
createReadStream?: typeof import("fs").createReadStream;
|
|
37
36
|
statSync: import("fs").StatSyncFn;
|
|
38
37
|
readFileSync: typeof import("fs").readFileSync;
|
|
39
38
|
};
|
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
|
-
|
|
22
|
+
hotLoader: ()=>hotLoader,
|
|
23
23
|
default: ()=>css_extract_loader,
|
|
24
|
-
|
|
24
|
+
ABSOLUTE_PUBLIC_PATH: ()=>ABSOLUTE_PUBLIC_PATH,
|
|
25
25
|
MODULE_TYPE: ()=>MODULE_TYPE,
|
|
26
|
-
BASE_URI: ()=>BASE_URI,
|
|
27
|
-
hotLoader: ()=>hotLoader,
|
|
28
26
|
AUTO_PUBLIC_PATH: ()=>AUTO_PUBLIC_PATH,
|
|
29
|
-
pitch: ()=>pitch
|
|
27
|
+
pitch: ()=>pitch,
|
|
28
|
+
SINGLE_DOT_PATH_SEGMENT: ()=>SINGLE_DOT_PATH_SEGMENT,
|
|
29
|
+
BASE_URI: ()=>BASE_URI
|
|
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
|
-
|
|
292
|
+
EntryPlugin: ()=>EntryPlugin,
|
|
293
|
+
version: ()=>exports_version,
|
|
294
|
+
webworker: ()=>webworker,
|
|
294
295
|
RspackOptionsApply: ()=>RspackOptionsApply,
|
|
295
|
-
SourceMapDevToolPlugin: ()=>SourceMapDevToolPlugin,
|
|
296
|
-
AsyncDependenciesBlock: ()=>binding_.AsyncDependenciesBlock,
|
|
297
|
-
electron: ()=>electron,
|
|
298
|
-
ExternalModule: ()=>binding_.ExternalModule,
|
|
299
|
-
Stats: ()=>Stats,
|
|
300
|
-
LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
|
|
301
|
-
Template: ()=>Template,
|
|
302
|
-
Compilation: ()=>Compilation,
|
|
303
|
-
IgnorePlugin: ()=>IgnorePlugin,
|
|
304
|
-
ContextModule: ()=>binding_.ContextModule,
|
|
305
|
-
WebpackError: ()=>exports_WebpackError,
|
|
306
|
-
RuntimeGlobals: ()=>RuntimeGlobals,
|
|
307
296
|
DynamicEntryPlugin: ()=>DynamicEntryPlugin,
|
|
308
|
-
|
|
297
|
+
NoEmitOnErrorsPlugin: ()=>NoEmitOnErrorsPlugin,
|
|
298
|
+
Stats: ()=>Stats,
|
|
309
299
|
EntryDependency: ()=>binding_.EntryDependency,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
LoaderTargetPlugin: ()=>LoaderTargetPlugin,
|
|
314
|
-
container: ()=>container,
|
|
315
|
-
EvalDevToolModulePlugin: ()=>EvalDevToolModulePlugin,
|
|
300
|
+
BannerPlugin: ()=>BannerPlugin,
|
|
301
|
+
ExternalsPlugin: ()=>ExternalsPlugin,
|
|
302
|
+
MultiStats: ()=>MultiStats,
|
|
316
303
|
SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
|
|
317
|
-
|
|
318
|
-
|
|
304
|
+
ContextModule: ()=>binding_.ContextModule,
|
|
305
|
+
DllPlugin: ()=>DllPlugin,
|
|
306
|
+
WarnCaseSensitiveModulesPlugin: ()=>WarnCaseSensitiveModulesPlugin,
|
|
307
|
+
ProvidePlugin: ()=>ProvidePlugin,
|
|
308
|
+
Template: ()=>Template,
|
|
309
|
+
container: ()=>container,
|
|
310
|
+
HtmlRspackPlugin: ()=>HtmlRspackPlugin,
|
|
319
311
|
javascript: ()=>javascript,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
312
|
+
EvalDevToolModulePlugin: ()=>EvalDevToolModulePlugin,
|
|
313
|
+
NormalModuleReplacementPlugin: ()=>NormalModuleReplacementPlugin,
|
|
314
|
+
WebpackOptionsApply: ()=>RspackOptionsApply,
|
|
323
315
|
EnvironmentPlugin: ()=>EnvironmentPlugin,
|
|
324
|
-
|
|
316
|
+
HotModuleReplacementPlugin: ()=>HotModuleReplacementPlugin,
|
|
317
|
+
Compilation: ()=>Compilation,
|
|
318
|
+
experiments: ()=>exports_experiments,
|
|
319
|
+
CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
|
|
320
|
+
EvalSourceMapDevToolPlugin: ()=>EvalSourceMapDevToolPlugin,
|
|
321
|
+
RuntimePlugin: ()=>RuntimePlugin,
|
|
322
|
+
Dependency: ()=>binding_.Dependency,
|
|
323
|
+
DllReferencePlugin: ()=>DllReferencePlugin,
|
|
324
|
+
IgnorePlugin: ()=>IgnorePlugin,
|
|
325
|
+
StatsErrorCode: ()=>statsFactoryUtils_StatsErrorCode,
|
|
326
|
+
sources: ()=>sources,
|
|
325
327
|
ValidationError: ()=>ValidationError,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
+
ConcatenatedModule: ()=>binding_.ConcatenatedModule,
|
|
329
|
+
AsyncDependenciesBlock: ()=>binding_.AsyncDependenciesBlock,
|
|
328
330
|
web: ()=>web,
|
|
331
|
+
default: ()=>src_0,
|
|
332
|
+
LoaderTargetPlugin: ()=>LoaderTargetPlugin,
|
|
333
|
+
WebpackError: ()=>exports_WebpackError,
|
|
334
|
+
RuntimeModule: ()=>RuntimeModule,
|
|
329
335
|
sharing: ()=>sharing,
|
|
330
|
-
CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
|
|
331
|
-
NormalModule: ()=>binding_.NormalModule,
|
|
332
336
|
config: ()=>exports_config,
|
|
337
|
+
ContextReplacementPlugin: ()=>ContextReplacementPlugin,
|
|
338
|
+
NormalModule: ()=>binding_.NormalModule,
|
|
339
|
+
LightningCssMinimizerRspackPlugin: ()=>LightningCssMinimizerRspackPlugin,
|
|
340
|
+
LoaderOptionsPlugin: ()=>LoaderOptionsPlugin,
|
|
341
|
+
EntryOptionPlugin: ()=>lib_EntryOptionPlugin,
|
|
342
|
+
Compiler: ()=>Compiler,
|
|
343
|
+
DefinePlugin: ()=>DefinePlugin,
|
|
333
344
|
ModuleFilenameHelpers: ()=>ModuleFilenameHelpers_namespaceObject,
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
RuntimeModule: ()=>RuntimeModule,
|
|
345
|
+
MultiCompiler: ()=>MultiCompiler,
|
|
346
|
+
SourceMapDevToolPlugin: ()=>SourceMapDevToolPlugin,
|
|
337
347
|
library: ()=>exports_library,
|
|
338
348
|
node: ()=>exports_node,
|
|
339
|
-
|
|
340
|
-
|
|
349
|
+
RuntimeGlobals: ()=>RuntimeGlobals,
|
|
350
|
+
rspackVersion: ()=>exports_rspackVersion,
|
|
341
351
|
util: ()=>util,
|
|
342
|
-
ConcatenatedModule: ()=>binding_.ConcatenatedModule,
|
|
343
352
|
optimize: ()=>optimize,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
DllPlugin: ()=>DllPlugin,
|
|
347
|
-
CssExtractRspackPlugin: ()=>CssExtractRspackPlugin,
|
|
348
|
-
DefinePlugin: ()=>DefinePlugin,
|
|
349
|
-
BannerPlugin: ()=>BannerPlugin,
|
|
350
|
-
ProgressPlugin: ()=>ProgressPlugin,
|
|
351
|
-
StatsErrorCode: ()=>statsFactoryUtils_StatsErrorCode,
|
|
352
|
-
MultiStats: ()=>MultiStats,
|
|
353
|
+
ExternalModule: ()=>binding_.ExternalModule,
|
|
354
|
+
electron: ()=>electron,
|
|
353
355
|
Module: ()=>binding_.Module,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
rspack: ()=>src_rspack,
|
|
358
|
-
Compiler: ()=>Compiler,
|
|
356
|
+
CopyRspackPlugin: ()=>CopyRspackPlugin,
|
|
357
|
+
rspack: ()=>src_rspack_0,
|
|
358
|
+
CssExtractRspackPlugin: ()=>CssExtractRspackPlugin,
|
|
359
359
|
wasm: ()=>exports_wasm,
|
|
360
|
-
|
|
360
|
+
ProgressPlugin: ()=>ProgressPlugin
|
|
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 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.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 lib_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 lib_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 lib_WebpackError(errMsg) : null, module1);
|
|
1912
1912
|
}
|
|
1913
1913
|
});
|
|
1914
1914
|
};
|
|
@@ -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 lib_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 lib_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 lib_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-1ad35372-20251102173630"), 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 lib_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 lib_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 lib_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 {
|
|
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(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-1ad35372-20251102173630", 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_0, this.rspack = src_rspack_0, 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(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,7 +8137,9 @@ Help:
|
|
|
8137
8137
|
targetPath,
|
|
8138
8138
|
outputPath,
|
|
8139
8139
|
get source () {
|
|
8140
|
-
|
|
8140
|
+
let source = getCompiler1().__internal__get_compilation().getAsset(filename)?.source;
|
|
8141
|
+
if (!source) throw Error(`Asset ${filename} not found`);
|
|
8142
|
+
return source;
|
|
8141
8143
|
},
|
|
8142
8144
|
get content () {
|
|
8143
8145
|
return this.source?.buffer();
|
|
@@ -8230,7 +8232,7 @@ Help:
|
|
|
8230
8232
|
try {
|
|
8231
8233
|
fn();
|
|
8232
8234
|
} catch (err) {
|
|
8233
|
-
if (err instanceof
|
|
8235
|
+
if (err instanceof lib_WebpackError) throw err;
|
|
8234
8236
|
throw new HookWebpackError(err, hook);
|
|
8235
8237
|
}
|
|
8236
8238
|
})(()=>queried.call({
|
|
@@ -8684,7 +8686,7 @@ Help:
|
|
|
8684
8686
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8685
8687
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8686
8688
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8687
|
-
}), childOptions.version && (obj.rspackVersion = "1.6.1-canary-
|
|
8689
|
+
}), childOptions.version && (obj.rspackVersion = "1.6.1-canary-1ad35372-20251102173630", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8688
8690
|
let mapError = (j, obj)=>({
|
|
8689
8691
|
...obj,
|
|
8690
8692
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -8731,7 +8733,7 @@ Help:
|
|
|
8731
8733
|
}(callback1));
|
|
8732
8734
|
}
|
|
8733
8735
|
size || callback(null);
|
|
8734
|
-
},
|
|
8736
|
+
}, src_MultiWatching = class {
|
|
8735
8737
|
watchings;
|
|
8736
8738
|
compiler;
|
|
8737
8739
|
constructor(watchings, compiler){
|
|
@@ -8760,7 +8762,7 @@ Help:
|
|
|
8760
8762
|
}
|
|
8761
8763
|
};
|
|
8762
8764
|
ArrayQueue_computedKey = Symbol.iterator;
|
|
8763
|
-
let
|
|
8765
|
+
let util_ArrayQueue = class {
|
|
8764
8766
|
_list;
|
|
8765
8767
|
_listReversed;
|
|
8766
8768
|
constructor(items){
|
|
@@ -8921,7 +8923,7 @@ Help:
|
|
|
8921
8923
|
node.parents.push(parent), parent.children.push(node);
|
|
8922
8924
|
}
|
|
8923
8925
|
}
|
|
8924
|
-
let queue = new
|
|
8926
|
+
let queue = new util_ArrayQueue();
|
|
8925
8927
|
for (let node of nodes)0 === node.parents.length && (node.state = "queued", queue.enqueue(node));
|
|
8926
8928
|
let errored = !1, running = 0, parallelism = this._options.parallelism, nodeDone = (node, err, stats)=>{
|
|
8927
8929
|
if (!errored) {
|
|
@@ -8970,9 +8972,9 @@ Help:
|
|
|
8970
8972
|
}, (compiler, watching, _done)=>{
|
|
8971
8973
|
compiler.watching === watching && (watching.running || watching.invalidate());
|
|
8972
8974
|
}, handler);
|
|
8973
|
-
return this.watching = new
|
|
8975
|
+
return this.watching = new src_MultiWatching(watchings, this), this.watching;
|
|
8974
8976
|
}
|
|
8975
|
-
return this.watching = new
|
|
8977
|
+
return this.watching = new src_MultiWatching([], this), this.watching;
|
|
8976
8978
|
}
|
|
8977
8979
|
run(callback, options) {
|
|
8978
8980
|
if (this.running) return callback(new ConcurrentCompilationError());
|
|
@@ -9583,7 +9585,7 @@ Help:
|
|
|
9583
9585
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9584
9586
|
},
|
|
9585
9587
|
version: (object)=>{
|
|
9586
|
-
object.version = "5.75.0", object.rspackVersion = "1.6.1-canary-
|
|
9588
|
+
object.version = "5.75.0", object.rspackVersion = "1.6.1-canary-1ad35372-20251102173630";
|
|
9587
9589
|
},
|
|
9588
9590
|
env: (object, _compilation, _context, { _env })=>{
|
|
9589
9591
|
object.env = _env;
|
|
@@ -11096,7 +11098,7 @@ Help:
|
|
|
11096
11098
|
});
|
|
11097
11099
|
}
|
|
11098
11100
|
}
|
|
11099
|
-
class DllManifestError extends
|
|
11101
|
+
class DllManifestError extends lib_WebpackError {
|
|
11100
11102
|
constructor(filename, message){
|
|
11101
11103
|
super(), this.name = "DllManifestError", this.message = `Dll manifest ${filename}\n${message}`;
|
|
11102
11104
|
}
|
|
@@ -11112,7 +11114,7 @@ Help:
|
|
|
11112
11114
|
for (let key of this.keys){
|
|
11113
11115
|
let value = void 0 !== process.env[key] ? process.env[key] : this.defaultValues[key];
|
|
11114
11116
|
void 0 === value && compiler.hooks.thisCompilation.tap("EnvironmentPlugin", (compilation)=>{
|
|
11115
|
-
let error = new
|
|
11117
|
+
let error = new lib_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.`);
|
|
11116
11118
|
error.name = "EnvVariableNotDefinedError", compilation.errors.push(error);
|
|
11117
11119
|
}), definitions[`process.env.${key}`] = void 0 === value ? "undefined" : JSON.stringify(value);
|
|
11118
11120
|
}
|
|
@@ -11687,7 +11689,7 @@ Help:
|
|
|
11687
11689
|
let _options = JSON.stringify(options || {});
|
|
11688
11690
|
return binding_default().transform(source, _options);
|
|
11689
11691
|
}
|
|
11690
|
-
let exports_rspackVersion = "1.6.1-canary-
|
|
11692
|
+
let exports_rspackVersion = "1.6.1-canary-1ad35372-20251102173630", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
11691
11693
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
11692
11694
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
11693
11695
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
|
@@ -12019,7 +12021,7 @@ Help:
|
|
|
12019
12021
|
}
|
|
12020
12022
|
}, exports_namespaceObject);
|
|
12021
12023
|
src_fn.rspack = src_fn, src_fn.webpack = src_fn;
|
|
12022
|
-
let
|
|
12024
|
+
let src_rspack_0 = src_fn, src_0 = src_rspack_0;
|
|
12023
12025
|
})(), 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 === [
|
|
12024
12026
|
"AsyncDependenciesBlock",
|
|
12025
12027
|
"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 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.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 lib_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 lib_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-1ad35372-20251102173630",
|
|
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.17.0",
|
|
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-1ad35372-20251102173630"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|