@rspack-canary/core 1.6.2-canary-ad5a143d-20251105173931 → 1.6.2-canary-6737fba6-20251106173934
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/Resolver.d.ts +14 -2
- package/dist/index.js +10 -6
- package/package.json +2 -2
package/dist/Resolver.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import type binding from "@rspack/binding";
|
|
2
2
|
import type { ResolveCallback } from "./config/adapterRuleUse";
|
|
3
|
-
type ResolveContext = {
|
|
3
|
+
export type ResolveContext = {
|
|
4
|
+
contextDependencies?: {
|
|
5
|
+
add: (context: string) => void;
|
|
6
|
+
};
|
|
7
|
+
missingDependencies?: {
|
|
8
|
+
add: (dependency: string) => void;
|
|
9
|
+
};
|
|
10
|
+
fileDependencies?: {
|
|
11
|
+
add: (dependency: string) => void;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
4
14
|
export type ResourceData = binding.JsResourceData;
|
|
5
15
|
export interface ResolveRequest {
|
|
6
16
|
path: string;
|
|
@@ -8,6 +18,9 @@ export interface ResolveRequest {
|
|
|
8
18
|
fragment: string;
|
|
9
19
|
descriptionFileData?: string;
|
|
10
20
|
descriptionFilePath?: string;
|
|
21
|
+
fileDependencies?: string[];
|
|
22
|
+
missingDependencies?: string[];
|
|
23
|
+
contextDependencies?: string[];
|
|
11
24
|
}
|
|
12
25
|
export declare class Resolver {
|
|
13
26
|
#private;
|
|
@@ -15,4 +28,3 @@ export declare class Resolver {
|
|
|
15
28
|
resolveSync(context: object, path: string, request: string): string | false;
|
|
16
29
|
resolve(context: object, path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void;
|
|
17
30
|
}
|
|
18
|
-
export {};
|
package/dist/index.js
CHANGED
|
@@ -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.2-canary-
|
|
5750
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.2-canary-6737fba6-20251106173934"), 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", [
|
|
@@ -7000,7 +7000,11 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7000
7000
|
this.#binding.resolve(path, request, (error, text)=>{
|
|
7001
7001
|
if (error) return void callback(error);
|
|
7002
7002
|
let req = text ? JSON.parse(text) : void 0;
|
|
7003
|
-
|
|
7003
|
+
req?.fileDependencies && req.fileDependencies.forEach((file)=>{
|
|
7004
|
+
resolveContext.fileDependencies?.add(file);
|
|
7005
|
+
}), req?.missingDependencies && req.missingDependencies.forEach((missing)=>{
|
|
7006
|
+
resolveContext.missingDependencies?.add(missing);
|
|
7007
|
+
}), callback(error, !!req && `${req.path.replace(/#/g, "\u200b#")}${req.query.replace(/#/g, "\u200b#")}${req.fragment}`, req);
|
|
7004
7008
|
});
|
|
7005
7009
|
}
|
|
7006
7010
|
}
|
|
@@ -7393,7 +7397,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7393
7397
|
});
|
|
7394
7398
|
}
|
|
7395
7399
|
}
|
|
7396
|
-
let CORE_VERSION = "1.6.2-canary-
|
|
7400
|
+
let CORE_VERSION = "1.6.2-canary-6737fba6-20251106173934", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7397
7401
|
|
|
7398
7402
|
Help:
|
|
7399
7403
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -8686,7 +8690,7 @@ Help:
|
|
|
8686
8690
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8687
8691
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8688
8692
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8689
|
-
}), childOptions.version && (obj.rspackVersion = "1.6.2-canary-
|
|
8693
|
+
}), childOptions.version && (obj.rspackVersion = "1.6.2-canary-6737fba6-20251106173934", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8690
8694
|
let mapError = (j, obj)=>({
|
|
8691
8695
|
...obj,
|
|
8692
8696
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -9585,7 +9589,7 @@ Help:
|
|
|
9585
9589
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9586
9590
|
},
|
|
9587
9591
|
version: (object)=>{
|
|
9588
|
-
object.version = "5.75.0", object.rspackVersion = "1.6.2-canary-
|
|
9592
|
+
object.version = "5.75.0", object.rspackVersion = "1.6.2-canary-6737fba6-20251106173934";
|
|
9589
9593
|
},
|
|
9590
9594
|
env: (object, _compilation, _context, { _env })=>{
|
|
9591
9595
|
object.env = _env;
|
|
@@ -11689,7 +11693,7 @@ Help:
|
|
|
11689
11693
|
let _options = JSON.stringify(options || {});
|
|
11690
11694
|
return binding_default().transform(source, _options);
|
|
11691
11695
|
}
|
|
11692
|
-
let exports_rspackVersion = "1.6.2-canary-
|
|
11696
|
+
let exports_rspackVersion = "1.6.2-canary-6737fba6-20251106173934", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
11693
11697
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
11694
11698
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
11695
11699
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.6.2-canary-
|
|
3
|
+
"version": "1.6.2-canary-6737fba6-20251106173934",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -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.2-canary-
|
|
61
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.6.2-canary-6737fba6-20251106173934"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|