@rspack-canary/core 1.5.9-canary-ec64d52e-20251008173631 → 1.5.9-canary-39ce7fc0-20251009174151
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.
|
@@ -105,6 +105,9 @@ export interface ExperimentsNormalized {
|
|
|
105
105
|
outputModule?: boolean;
|
|
106
106
|
topLevelAwait?: boolean;
|
|
107
107
|
css?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated This option is deprecated, layers is enabled since v1.6.0
|
|
110
|
+
*/
|
|
108
111
|
layers?: boolean;
|
|
109
112
|
incremental?: false | Incremental;
|
|
110
113
|
parallelCodeSplitting?: boolean;
|
package/dist/config/types.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2193,7 +2193,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
2195
|
static entryDescriptionToOptions(compiler, name, desc) {
|
|
2196
|
-
|
|
2196
|
+
return {
|
|
2197
2197
|
name,
|
|
2198
2198
|
filename: desc.filename,
|
|
2199
2199
|
runtime: desc.runtime,
|
|
@@ -2205,8 +2205,6 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
2205
2205
|
asyncChunks: desc.asyncChunks,
|
|
2206
2206
|
library: desc.library
|
|
2207
2207
|
};
|
|
2208
|
-
if (void 0 !== desc.layer && !compiler.options.experiments.layers) throw Error("'entryOptions.layer' is only allowed when 'experiments.layers' is enabled");
|
|
2209
|
-
return options;
|
|
2210
2208
|
}
|
|
2211
2209
|
}
|
|
2212
2210
|
let lib_EntryOptionPlugin = EntryOptionPlugin, EntryPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EntryPlugin, (context, entry, options = "")=>({
|
|
@@ -8660,9 +8658,9 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8660
8658
|
let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
|
|
8661
8659
|
D(infrastructureLogging, "level", "info"), D(infrastructureLogging, "debug", !1), D(infrastructureLogging, "colors", tty), D(infrastructureLogging, "appendOnly", !tty);
|
|
8662
8660
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
8663
|
-
defaults_F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0),
|
|
8661
|
+
defaults_F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), "layers" in experiments && console.warn("`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 && console.warn("`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."), D(experiments, "topLevelAwait", !0), 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", !1);
|
|
8664
8662
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
8665
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-
|
|
8663
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-39ce7fc0-20251009174151"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
8666
8664
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
8667
8665
|
if (assertNotNill(module.parser), assertNotNill(module.generator), defaults_F(module.parser, "asset", ()=>({})), assertNotNill(module.parser.asset), defaults_F(module.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module.parser.asset.dataUrlCondition && D(module.parser.asset.dataUrlCondition, "maxSize", 8096), defaults_F(module.parser, "javascript", ()=>({})), assertNotNill(module.parser.javascript), ((parserOptions, { usedExports, inlineConst })=>{
|
|
8668
8666
|
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", [
|
|
@@ -10303,7 +10301,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10303
10301
|
});
|
|
10304
10302
|
}
|
|
10305
10303
|
}
|
|
10306
|
-
let CORE_VERSION = "1.5.9-canary-
|
|
10304
|
+
let CORE_VERSION = "1.5.9-canary-39ce7fc0-20251009174151", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10307
10305
|
|
|
10308
10306
|
Help:
|
|
10309
10307
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -11581,7 +11579,7 @@ Help:
|
|
|
11581
11579
|
obj.children = this.stats.map((stat, idx)=>{
|
|
11582
11580
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
11583
11581
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
11584
|
-
}), childOptions.version && (obj.rspackVersion = "1.5.9-canary-
|
|
11582
|
+
}), childOptions.version && (obj.rspackVersion = "1.5.9-canary-39ce7fc0-20251009174151", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
11585
11583
|
let mapError = (j, obj)=>({
|
|
11586
11584
|
...obj,
|
|
11587
11585
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -12477,7 +12475,7 @@ Help:
|
|
|
12477
12475
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
12478
12476
|
},
|
|
12479
12477
|
version: (object)=>{
|
|
12480
|
-
object.version = "5.75.0", object.rspackVersion = "1.5.9-canary-
|
|
12478
|
+
object.version = "5.75.0", object.rspackVersion = "1.5.9-canary-39ce7fc0-20251009174151";
|
|
12481
12479
|
},
|
|
12482
12480
|
env: (object, _compilation, _context, { _env })=>{
|
|
12483
12481
|
object.env = _env;
|
|
@@ -15802,7 +15800,7 @@ Help:
|
|
|
15802
15800
|
let _options = JSON.stringify(options || {});
|
|
15803
15801
|
return binding_default().transform(source, _options);
|
|
15804
15802
|
}
|
|
15805
|
-
let exports_rspackVersion = "1.5.9-canary-
|
|
15803
|
+
let exports_rspackVersion = "1.5.9-canary-39ce7fc0-20251009174151", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
15806
15804
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
15807
15805
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
15808
15806
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.5.9-canary-
|
|
3
|
+
"version": "1.5.9-canary-39ce7fc0-20251009174151",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@module-federation/runtime-tools": "0.19.1",
|
|
62
62
|
"@rspack/lite-tapable": "1.0.1",
|
|
63
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.5.9-canary-
|
|
63
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.5.9-canary-39ce7fc0-20251009174151"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@swc/helpers": ">=0.5.1"
|