@rspack-canary/core 1.6.2-canary-4e6be088-20251110224718 → 1.6.3-canary-74ea720c-20251112173931
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/normalization.d.ts +3 -1
- package/dist/config/types.d.ts +1 -5
- package/dist/index.js +10 -26
- package/dist/worker.js +0 -10
- package/package.json +7 -7
|
@@ -111,6 +111,9 @@ export interface ExperimentsNormalized {
|
|
|
111
111
|
*/
|
|
112
112
|
layers?: boolean;
|
|
113
113
|
incremental?: false | Incremental;
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated This option is deprecated, as it has a huge regression in some edge cases where the chunk graph has lots of cycles. We will improve performance of build_chunk_graph.
|
|
116
|
+
*/
|
|
114
117
|
parallelCodeSplitting?: boolean;
|
|
115
118
|
futureDefaults?: boolean;
|
|
116
119
|
rspackFuture?: RspackFutureOptions;
|
|
@@ -123,7 +126,6 @@ export interface ExperimentsNormalized {
|
|
|
123
126
|
lazyBarrel?: boolean;
|
|
124
127
|
nativeWatcher?: boolean;
|
|
125
128
|
deferImport?: boolean;
|
|
126
|
-
mfAsyncStartup?: boolean;
|
|
127
129
|
}
|
|
128
130
|
export type IgnoreWarningsNormalized = ((warning: WebpackError, compilation: Compilation) => boolean)[];
|
|
129
131
|
export type OptimizationRuntimeChunkNormalized = false | {
|
package/dist/config/types.d.ts
CHANGED
|
@@ -2100,6 +2100,7 @@ export type Experiments = {
|
|
|
2100
2100
|
incremental?: IncrementalPresets | Incremental;
|
|
2101
2101
|
/**
|
|
2102
2102
|
* Enable multi-threaded code splitting algorithm.
|
|
2103
|
+
* @deprecated This option is deprecated, it has a huge regression in some edge cases where the chunk graph has lots of cycles. We'll improve the performance of build_chunk_graph in the future instead
|
|
2103
2104
|
*/
|
|
2104
2105
|
parallelCodeSplitting?: boolean;
|
|
2105
2106
|
/**
|
|
@@ -2156,11 +2157,6 @@ export type Experiments = {
|
|
|
2156
2157
|
* @default false
|
|
2157
2158
|
*/
|
|
2158
2159
|
deferImport?: boolean;
|
|
2159
|
-
/**
|
|
2160
|
-
* Enable async startup for Module Federation
|
|
2161
|
-
* @default false
|
|
2162
|
-
*/
|
|
2163
|
-
mfAsyncStartup?: boolean;
|
|
2164
2160
|
};
|
|
2165
2161
|
export type Watch = boolean;
|
|
2166
2162
|
/** Options for watch mode. */
|
package/dist/index.js
CHANGED
|
@@ -243,21 +243,6 @@ var __webpack_modules__ = {
|
|
|
243
243
|
},
|
|
244
244
|
process: function(module1) {
|
|
245
245
|
module1.exports = require("process");
|
|
246
|
-
},
|
|
247
|
-
tinypool: function(module1) {
|
|
248
|
-
module1.exports = import("../compiled/tinypool/dist/index.js").then(function(module1) {
|
|
249
|
-
return module1;
|
|
250
|
-
});
|
|
251
|
-
},
|
|
252
|
-
"node:inspector": function(module1) {
|
|
253
|
-
module1.exports = import("node:inspector").then(function(module1) {
|
|
254
|
-
return module1;
|
|
255
|
-
});
|
|
256
|
-
},
|
|
257
|
-
"node:worker_threads": function(module1) {
|
|
258
|
-
module1.exports = import("node:worker_threads").then(function(module1) {
|
|
259
|
-
return module1;
|
|
260
|
-
});
|
|
261
246
|
}
|
|
262
247
|
}, __webpack_module_cache__ = {};
|
|
263
248
|
function __webpack_require__(moduleId) {
|
|
@@ -2653,7 +2638,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2653
2638
|
static session;
|
|
2654
2639
|
static counter = 10000;
|
|
2655
2640
|
static async initJavaScriptTrace(layer, output) {
|
|
2656
|
-
let { Session } = await
|
|
2641
|
+
let { Session } = await import("node:inspector");
|
|
2657
2642
|
this.session = new Session(), this.layer = layer, this.output = output, this.events = [], this.state = "on", this.startTime = process.hrtime.bigint();
|
|
2658
2643
|
}
|
|
2659
2644
|
static uuid() {
|
|
@@ -2960,7 +2945,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2960
2945
|
super(ModuleError_createMessage(err, "Warning", from)), this.name = "ModuleWarning", this.error = err, this.details = getErrorDetails(err);
|
|
2961
2946
|
}
|
|
2962
2947
|
}
|
|
2963
|
-
let ensureLoaderWorkerPool = async ()=>service_pool || (service_pool =
|
|
2948
|
+
let ensureLoaderWorkerPool = async ()=>service_pool || (service_pool = import("../compiled/tinypool/dist/index.js").then(({ Tinypool })=>{
|
|
2964
2949
|
let availableThreads = Math.max(__webpack_require__("node:os").cpus().length - 1, 1);
|
|
2965
2950
|
return new Tinypool({
|
|
2966
2951
|
filename: external_node_path_default().resolve(__dirname, "worker.js"),
|
|
@@ -2984,7 +2969,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2984
2969
|
throw Error("Failed to serialize error, only string, Error instances and objects with a message property are supported");
|
|
2985
2970
|
}
|
|
2986
2971
|
let service_run = async (loaderName, task, options)=>ensureLoaderWorkerPool().then(async (pool)=>{
|
|
2987
|
-
let { MessageChannel } = await
|
|
2972
|
+
let { MessageChannel } = await import("node:worker_threads"), { port1: mainPort, port2: workerPort } = new MessageChannel(), { port1: mainSyncPort, port2: workerSyncPort } = new MessageChannel();
|
|
2988
2973
|
return new Promise((resolve, reject)=>{
|
|
2989
2974
|
let handleError = (error)=>{
|
|
2990
2975
|
mainPort.close(), mainSyncPort.close(), reject(error);
|
|
@@ -5747,7 +5732,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5747
5732
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5748
5733
|
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
5734
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5750
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.
|
|
5735
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.3-canary-74ea720c-20251112173931"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
5751
5736
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
|
|
5752
5737
|
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
5738
|
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", [
|
|
@@ -6356,7 +6341,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6356
6341
|
plugins: nestedArray(config.plugins, (p)=>[
|
|
6357
6342
|
...p
|
|
6358
6343
|
]),
|
|
6359
|
-
experiments: nestedConfig(config.experiments, (experiments)=>(experiments.layers && external_node_util_default().deprecate(()=>{}, "`experiments.layers` config has been deprecated and will be removed in Rspack v2.0. Feature layers will be always enabled. Please remove this option from your Rspack configuration.")(), !1 === experiments.topLevelAwait && external_node_util_default().deprecate(()=>{}, "`experiments.topLevelAwait` config has been deprecated and will be removed in Rspack v2.0. Top-level await will be always enabled. Please remove this option from your Rspack configuration.")(), {
|
|
6344
|
+
experiments: nestedConfig(config.experiments, (experiments)=>(experiments.layers && external_node_util_default().deprecate(()=>{}, "`experiments.layers` config has been deprecated and will be removed in Rspack v2.0. Feature layers will be always enabled. Please remove this option from your Rspack configuration.")(), !1 === experiments.topLevelAwait && external_node_util_default().deprecate(()=>{}, "`experiments.topLevelAwait` config has been deprecated and will be removed in Rspack v2.0. Top-level await will be always enabled. Please remove this option from your Rspack configuration.")(), experiments.parallelCodeSplitting && external_node_util_default().deprecate(()=>{}, "`experiments.parallelCodeSplitting` config has been deprecated and will be removed in next minor. It has huge regression in some edge cases where the chunk graph has lots of cycles, we'll improve the performance of build_chunk_graph in the future instead")(), {
|
|
6360
6345
|
...experiments,
|
|
6361
6346
|
cache: optionalNestedConfig(experiments.cache, (cache)=>{
|
|
6362
6347
|
if ("boolean" == typeof cache || "memory" === cache.type) return cache;
|
|
@@ -6389,8 +6374,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
6389
6374
|
parallelCodeSplitting: experiments.parallelCodeSplitting,
|
|
6390
6375
|
buildHttp: experiments.buildHttp,
|
|
6391
6376
|
parallelLoader: experiments.parallelLoader,
|
|
6392
|
-
useInputFileSystem: experiments.useInputFileSystem
|
|
6393
|
-
mfAsyncStartup: experiments.mfAsyncStartup ?? !1
|
|
6377
|
+
useInputFileSystem: experiments.useInputFileSystem
|
|
6394
6378
|
})),
|
|
6395
6379
|
watch: config.watch,
|
|
6396
6380
|
watchOptions: cloneObject(config.watchOptions),
|
|
@@ -7398,7 +7382,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7398
7382
|
});
|
|
7399
7383
|
}
|
|
7400
7384
|
}
|
|
7401
|
-
let CORE_VERSION = "1.6.
|
|
7385
|
+
let CORE_VERSION = "1.6.3-canary-74ea720c-20251112173931", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7402
7386
|
|
|
7403
7387
|
Help:
|
|
7404
7388
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -8691,7 +8675,7 @@ Help:
|
|
|
8691
8675
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8692
8676
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8693
8677
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8694
|
-
}), childOptions.version && (obj.rspackVersion = "1.6.
|
|
8678
|
+
}), childOptions.version && (obj.rspackVersion = "1.6.3-canary-74ea720c-20251112173931", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8695
8679
|
let mapError = (j, obj)=>({
|
|
8696
8680
|
...obj,
|
|
8697
8681
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -9590,7 +9574,7 @@ Help:
|
|
|
9590
9574
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9591
9575
|
},
|
|
9592
9576
|
version: (object)=>{
|
|
9593
|
-
object.version = "5.75.0", object.rspackVersion = "1.6.
|
|
9577
|
+
object.version = "5.75.0", object.rspackVersion = "1.6.3-canary-74ea720c-20251112173931";
|
|
9594
9578
|
},
|
|
9595
9579
|
env: (object, _compilation, _context, { _env })=>{
|
|
9596
9580
|
object.env = _env;
|
|
@@ -11809,7 +11793,7 @@ Help:
|
|
|
11809
11793
|
let _options = JSON.stringify(options || {});
|
|
11810
11794
|
return binding_default().transform(source, _options);
|
|
11811
11795
|
}
|
|
11812
|
-
let exports_rspackVersion = "1.6.
|
|
11796
|
+
let exports_rspackVersion = "1.6.3-canary-74ea720c-20251112173931", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
11813
11797
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
11814
11798
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
11815
11799
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/dist/worker.js
CHANGED
|
@@ -433,16 +433,6 @@ var __webpack_modules__ = {
|
|
|
433
433
|
},
|
|
434
434
|
"node:util": function(module) {
|
|
435
435
|
module.exports = require("node:util");
|
|
436
|
-
},
|
|
437
|
-
tinypool: function(module) {
|
|
438
|
-
module.exports = import("../compiled/tinypool/dist/index.js").then(function(module) {
|
|
439
|
-
return module;
|
|
440
|
-
});
|
|
441
|
-
},
|
|
442
|
-
"node:worker_threads": function(module) {
|
|
443
|
-
module.exports = import("node:worker_threads").then(function(module) {
|
|
444
|
-
return module;
|
|
445
|
-
});
|
|
446
436
|
}
|
|
447
437
|
}, __webpack_module_cache__ = {};
|
|
448
438
|
function __webpack_require__(moduleId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3-canary-74ea720c-20251112173931",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"directory": "packages/rspack"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ast-grep/napi": "^0.39.
|
|
40
|
+
"@ast-grep/napi": "^0.39.9",
|
|
41
41
|
"@napi-rs/wasm-runtime": "1.0.7",
|
|
42
42
|
"@rsbuild/plugin-node-polyfill": "^1.4.2",
|
|
43
|
-
"@rslib/core": "0.17.
|
|
43
|
+
"@rslib/core": "0.17.1",
|
|
44
44
|
"@swc/types": "0.1.25",
|
|
45
|
-
"@types/node": "^20.19.
|
|
45
|
+
"@types/node": "^20.19.25",
|
|
46
46
|
"@types/watchpack": "^2.4.4",
|
|
47
47
|
"browserslist-load-config": "^1.0.1",
|
|
48
48
|
"enhanced-resolve": "5.18.3",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"webpack-sources": "3.3.3"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@module-federation/runtime-tools": "0.21.
|
|
60
|
-
"@rspack/lite-tapable": "1.0
|
|
61
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.6.
|
|
59
|
+
"@module-federation/runtime-tools": "0.21.4",
|
|
60
|
+
"@rspack/lite-tapable": "1.1.0",
|
|
61
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.6.3-canary-74ea720c-20251112173931"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|