@rspack-canary/core 1.6.0-canary-cf832f72-20251028084837 → 1.6.0-canary-bf68c45d-20251028142310
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/types.d.ts +25 -1
- package/dist/index.js +5 -5
- package/package.json +3 -2
package/dist/config/types.d.ts
CHANGED
|
@@ -226,8 +226,32 @@ export type HashSalt = string;
|
|
|
226
226
|
export type SourceMapFilename = string;
|
|
227
227
|
/** This option determines the module's namespace */
|
|
228
228
|
export type DevtoolNamespace = string;
|
|
229
|
+
export interface ModuleFilenameTemplateContext {
|
|
230
|
+
/** The identifier of the module */
|
|
231
|
+
identifier: string;
|
|
232
|
+
/** The shortened identifier of the module */
|
|
233
|
+
shortIdentifier: string;
|
|
234
|
+
/** The resource of the module request */
|
|
235
|
+
resource: string;
|
|
236
|
+
/** The resource path of the module request */
|
|
237
|
+
resourcePath: string;
|
|
238
|
+
/** The absolute resource path of the module request */
|
|
239
|
+
absoluteResourcePath: string;
|
|
240
|
+
/** The loaders of the module request */
|
|
241
|
+
loaders: string;
|
|
242
|
+
/** All loaders of the module request */
|
|
243
|
+
allLoaders: string;
|
|
244
|
+
/** The query of the module identifier */
|
|
245
|
+
query: string;
|
|
246
|
+
/** The module id of the module */
|
|
247
|
+
moduleId: string;
|
|
248
|
+
/** The hash of the module identifier */
|
|
249
|
+
hash: string;
|
|
250
|
+
/** The module namespace */
|
|
251
|
+
namespace: string;
|
|
252
|
+
}
|
|
229
253
|
/** This option is only used when devtool uses an option that requires module names. */
|
|
230
|
-
export type DevtoolModuleFilenameTemplate = string | ((
|
|
254
|
+
export type DevtoolModuleFilenameTemplate = string | ((context: ModuleFilenameTemplateContext) => string);
|
|
231
255
|
/** A fallback is used when the template string or function above yields duplicates. */
|
|
232
256
|
export type DevtoolFallbackModuleFilenameTemplate = DevtoolModuleFilenameTemplate;
|
|
233
257
|
/** Tell Rspack what kind of ES-features may be used in the generated runtime-code. */
|
package/dist/index.js
CHANGED
|
@@ -5745,7 +5745,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5745
5745
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5746
5746
|
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);
|
|
5747
5747
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5748
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-
|
|
5748
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-bf68c45d-20251028142310"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
5749
5749
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
|
|
5750
5750
|
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 })=>{
|
|
5751
5751
|
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", [
|
|
@@ -7391,7 +7391,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7391
7391
|
});
|
|
7392
7392
|
}
|
|
7393
7393
|
}
|
|
7394
|
-
let CORE_VERSION = "1.6.0-canary-
|
|
7394
|
+
let CORE_VERSION = "1.6.0-canary-bf68c45d-20251028142310", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7395
7395
|
|
|
7396
7396
|
Help:
|
|
7397
7397
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -8682,7 +8682,7 @@ Help:
|
|
|
8682
8682
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8683
8683
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8684
8684
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8685
|
-
}), childOptions.version && (obj.rspackVersion = "1.6.0-canary-
|
|
8685
|
+
}), childOptions.version && (obj.rspackVersion = "1.6.0-canary-bf68c45d-20251028142310", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8686
8686
|
let mapError = (j, obj)=>({
|
|
8687
8687
|
...obj,
|
|
8688
8688
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -9581,7 +9581,7 @@ Help:
|
|
|
9581
9581
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9582
9582
|
},
|
|
9583
9583
|
version: (object)=>{
|
|
9584
|
-
object.version = "5.75.0", object.rspackVersion = "1.6.0-canary-
|
|
9584
|
+
object.version = "5.75.0", object.rspackVersion = "1.6.0-canary-bf68c45d-20251028142310";
|
|
9585
9585
|
},
|
|
9586
9586
|
env: (object, _compilation, _context, { _env })=>{
|
|
9587
9587
|
object.env = _env;
|
|
@@ -11685,7 +11685,7 @@ Help:
|
|
|
11685
11685
|
let _options = JSON.stringify(options || {});
|
|
11686
11686
|
return binding_default().transform(source, _options);
|
|
11687
11687
|
}
|
|
11688
|
-
let exports_rspackVersion = "1.6.0-canary-
|
|
11688
|
+
let exports_rspackVersion = "1.6.0-canary-bf68c45d-20251028142310", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
11689
11689
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
11690
11690
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
11691
11691
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.6.0-canary-
|
|
3
|
+
"version": "1.6.0-canary-bf68c45d-20251028142310",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@ast-grep/napi": "^0.39.6",
|
|
41
|
+
"@napi-rs/wasm-runtime": "1.0.7",
|
|
41
42
|
"@rsbuild/plugin-node-polyfill": "^1.4.2",
|
|
42
43
|
"@rslib/core": "0.16.1",
|
|
43
44
|
"@swc/types": "0.1.25",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"dependencies": {
|
|
58
59
|
"@module-federation/runtime-tools": "0.21.1",
|
|
59
60
|
"@rspack/lite-tapable": "1.0.1",
|
|
60
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.6.0-canary-
|
|
61
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.6.0-canary-bf68c45d-20251028142310"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
64
|
"@swc/helpers": ">=0.5.1"
|