diff --git a/Cargo.lock b/Cargo.lock index c5c7236485b..d792d1078fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3409,6 +3409,7 @@ dependencies = [ "rspack_collections", "rspack_core", "rspack_error", + "rspack_hash", "rspack_napi", "rspack_plugin_html", "rspack_plugin_runtime", diff --git a/crates/rspack_binding_values/Cargo.toml b/crates/rspack_binding_values/Cargo.toml index c00ec78212f..45b80ad61f5 100644 --- a/crates/rspack_binding_values/Cargo.toml +++ b/crates/rspack_binding_values/Cargo.toml @@ -14,6 +14,7 @@ napi-derive = { workspace = true } rspack_collections = { version = "0.1.0", path = "../rspack_collections" } rspack_core = { version = "0.1.0", path = "../rspack_core" } rspack_error = { version = "0.1.0", path = "../rspack_error" } +rspack_hash = { version = "0.1.0", path = "../rspack_hash" } rspack_napi = { version = "0.1.0", path = "../rspack_napi" } rspack_plugin_html = { version = "0.1.0", path = "../rspack_plugin_html" } rspack_plugin_runtime = { version = "0.1.0", path = "../rspack_plugin_runtime" } diff --git a/crates/rspack_binding_values/src/compilation/mod.rs b/crates/rspack_binding_values/src/compilation/mod.rs index 58b999d2063..a60724ebd93 100644 --- a/crates/rspack_binding_values/src/compilation/mod.rs +++ b/crates/rspack_binding_values/src/compilation/mod.rs @@ -387,9 +387,10 @@ impl JsCompilation { filename: LocalJsFilename, data: JsPathData, ) -> napi::Result { + let chunk = data.chunk.as_ref().map(|c| c.to_chunk(self.0)); self .0 - .get_asset_path(&filename.into(), data.as_core_path_data()) + .get_asset_path(&filename.into(), data.as_core_path_data(chunk.as_ref())) } #[napi] @@ -398,15 +399,19 @@ impl JsCompilation { filename: LocalJsFilename, data: JsPathData, ) -> napi::Result { + let chunk = data.chunk.as_ref().map(|c| c.to_chunk(self.0)); let path_and_asset_info = self .0 - .get_asset_path_with_info(&filename.into(), data.as_core_path_data())?; + .get_asset_path_with_info(&filename.into(), data.as_core_path_data(chunk.as_ref()))?; Ok(path_and_asset_info.into()) } #[napi] pub fn get_path(&self, filename: LocalJsFilename, data: JsPathData) -> napi::Result { - self.0.get_path(&filename.into(), data.as_core_path_data()) + let chunk = data.chunk.as_ref().map(|c| c.to_chunk(self.0)); + self + .0 + .get_path(&filename.into(), data.as_core_path_data(chunk.as_ref())) } #[napi] @@ -415,9 +420,10 @@ impl JsCompilation { filename: LocalJsFilename, data: JsPathData, ) -> napi::Result { + let chunk = data.chunk.as_ref().map(|c| c.to_chunk(self.0)); let path_and_asset_info = self .0 - .get_path_with_info(&filename.into(), data.as_core_path_data())?; + .get_path_with_info(&filename.into(), data.as_core_path_data(chunk.as_ref()))?; Ok(path_and_asset_info.into()) } diff --git a/crates/rspack_binding_values/src/path_data.rs b/crates/rspack_binding_values/src/path_data.rs index 2aede5dc863..60669dab292 100644 --- a/crates/rspack_binding_values/src/path_data.rs +++ b/crates/rspack_binding_values/src/path_data.rs @@ -2,6 +2,8 @@ use std::collections::HashMap; use napi::Either; use napi_derive::napi; +use rspack_core::{Chunk, Compilation, SourceType}; +use rspack_hash::RspackHashDigest; use super::JsAssetInfo; @@ -35,9 +37,48 @@ pub struct JsChunkPathData { pub id: Option, pub name: Option, pub hash: Option, + // TODO: support custom content hash type pub content_hash: Option>>, } +impl JsChunkPathData { + pub fn to_chunk(&self, compilation: &Compilation) -> Chunk { + let mut chunk = rspack_core::Chunk::new(self.name.clone(), rspack_core::ChunkKind::Normal); + chunk.id = self.id.clone(); + chunk.hash = self + .hash + .clone() + .map(|s| RspackHashDigest::new(s.into(), &compilation.options.output.hash_digest)); + + chunk.rendered_hash = self.hash.as_ref().map(|d| { + if d.len() < compilation.options.output.hash_digest_length { + d.as_str().into() + } else { + d[..compilation.options.output.hash_digest_length].into() + } + }); + if let Some(hash) = self.content_hash.as_ref() { + match hash { + Either::A(hash) => { + chunk.content_hash.insert( + SourceType::Unknown, + RspackHashDigest::new(hash.clone().into(), &compilation.options.output.hash_digest), + ); + } + Either::B(map) => { + for (key, hash) in map { + chunk.content_hash.insert( + SourceType::from(key.as_str()), + RspackHashDigest::new(hash.clone().into(), &compilation.options.output.hash_digest), + ); + } + } + } + } + chunk + } +} + impl<'a> From<&'a rspack_core::Chunk> for JsChunkPathData { fn from(chunk: &'a rspack_core::Chunk) -> Self { Self { @@ -56,10 +97,14 @@ impl<'a> From<&'a rspack_core::Chunk> for JsChunkPathData { } impl JsPathData { - pub fn as_core_path_data(&self) -> rspack_core::PathData { + pub fn as_core_path_data<'a>( + &'a self, + chunk: Option<&'a rspack_core::Chunk>, + ) -> rspack_core::PathData<'a> { rspack_core::PathData { filename: self.filename.as_deref(), - chunk: None, + chunk, + // TODO: support custom module module: None, hash: self.hash.as_deref(), content_hash: self.content_hash.as_deref(), diff --git a/packages/rspack-test-tools/tests/configCases/hooks/get-path-custom-chunk/index.js b/packages/rspack-test-tools/tests/configCases/hooks/get-path-custom-chunk/index.js new file mode 100644 index 00000000000..e69de29bb2d diff --git a/packages/rspack-test-tools/tests/configCases/hooks/get-path-custom-chunk/rspack.config.js b/packages/rspack-test-tools/tests/configCases/hooks/get-path-custom-chunk/rspack.config.js new file mode 100644 index 00000000000..1184a56adb4 --- /dev/null +++ b/packages/rspack-test-tools/tests/configCases/hooks/get-path-custom-chunk/rspack.config.js @@ -0,0 +1,28 @@ +const pluginName = "plugin"; + +class Plugin { + apply(compiler) { + let called = false; + compiler.hooks.compilation.tap(pluginName, compilation => { + called = true; + expect(compilation.getPath("[id]-[name]-[chunkhash]", { + chunk: { + name: "chunkname", + id: "chunkid", + hash: "chunkhash", + } + })).toBe("chunkid-chunkname-chunkhash"); + }); + compiler.hooks.done.tap(pluginName, stats => { + let json = stats.toJson(); + expect(json.errors.length === 0); + expect(called).toBe(true); + }); + } +} + +/**@type {import("@rspack/core").Configuration}*/ +module.exports = { + context: __dirname, + plugins: [new Plugin()] +}; diff --git a/packages/rspack-test-tools/tests/configCases/hooks/get-path-custom-chunk/test.config.js b/packages/rspack-test-tools/tests/configCases/hooks/get-path-custom-chunk/test.config.js new file mode 100644 index 00000000000..d4fdb021a97 --- /dev/null +++ b/packages/rspack-test-tools/tests/configCases/hooks/get-path-custom-chunk/test.config.js @@ -0,0 +1,4 @@ +/** @type {import("../../../../dist").TConfigCaseConfig} */ +module.exports = { + noTests: true, +} diff --git a/packages/rspack-test-tools/tests/configCases/hooks/get-path-existing-chunk/index.js b/packages/rspack-test-tools/tests/configCases/hooks/get-path-existing-chunk/index.js new file mode 100644 index 00000000000..e69de29bb2d diff --git a/packages/rspack-test-tools/tests/configCases/hooks/get-path-existing-chunk/rspack.config.js b/packages/rspack-test-tools/tests/configCases/hooks/get-path-existing-chunk/rspack.config.js new file mode 100644 index 00000000000..0a03bc428ba --- /dev/null +++ b/packages/rspack-test-tools/tests/configCases/hooks/get-path-existing-chunk/rspack.config.js @@ -0,0 +1,27 @@ +const pluginName = "plugin"; + +class Plugin { + apply(compiler) { + let called = false; + compiler.hooks.compilation.tap(pluginName, compilation => { + compilation.hooks.processAssets.tap(pluginName, () => { + called = true; + const mainChunk = Array.from(compilation.chunks).find(chunk => chunk.name === "main"); + expect(compilation.getPath("[id]-[name]-[chunkhash]", { + chunk: mainChunk + })).toBe(`${mainChunk.id}-${mainChunk.name}-${mainChunk.renderedHash}`); + }); + }); + compiler.hooks.done.tap(pluginName, stats => { + let json = stats.toJson(); + expect(json.errors.length === 0); + expect(called).toBe(true); + }); + } +} + +/**@type {import("@rspack/core").Configuration}*/ +module.exports = { + context: __dirname, + plugins: [new Plugin()] +}; diff --git a/packages/rspack-test-tools/tests/configCases/hooks/get-path-existing-chunk/test.config.js b/packages/rspack-test-tools/tests/configCases/hooks/get-path-existing-chunk/test.config.js new file mode 100644 index 00000000000..d4fdb021a97 --- /dev/null +++ b/packages/rspack-test-tools/tests/configCases/hooks/get-path-existing-chunk/test.config.js @@ -0,0 +1,4 @@ +/** @type {import("../../../../dist").TConfigCaseConfig} */ +module.exports = { + noTests: true, +} diff --git a/packages/rspack/etc/api.md b/packages/rspack/etc/api.md index 53cfca15825..6bf6eb18802 100644 --- a/packages/rspack/etc/api.md +++ b/packages/rspack/etc/api.md @@ -37,6 +37,7 @@ import { JsBeforeEmitData } from '@rspack/binding'; import { JsChunk } from '@rspack/binding'; import { JsChunkGroup } from '@rspack/binding'; import { JsChunkGroupOrigin } from '@rspack/binding'; +import { JsChunkPathData } from '@rspack/binding'; import type { JsCodegenerationResult } from '@rspack/binding'; import { JsCompilation } from '@rspack/binding'; import type { JsContextModuleFactoryAfterResolveData } from '@rspack/binding'; @@ -211,11 +212,11 @@ const assetGeneratorOptions: z.ZodObject], z.ZodUnknown>, z.ZodString>]>>; }, { emit: z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }>, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -225,8 +226,8 @@ const assetGeneratorOptions: z.ZodObject string) | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -289,7 +290,7 @@ const assetInlineGeneratorOptions: z.ZodObject<{ export type AssetModuleFilename = z.infer; // @public (undocumented) -const assetModuleFilename: z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>; +const assetModuleFilename: z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>; // @public (undocumented) export type AssetParserDataUrl = z.infer; @@ -343,15 +344,15 @@ export type AssetResourceGeneratorOptions = z.infer; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }>; @@ -696,6 +697,8 @@ export class Chunk { // @internal __internal__innerUkey(): number; // (undocumented) + __internal_to_path_data_chunk(): JsChunkPathData; + // (undocumented) auxiliaryFiles: ReadonlySet; // (undocumented) canBeInitial(): boolean; @@ -747,7 +750,7 @@ export class Chunk { export type ChunkFilename = z.infer; // @public (undocumented) -const chunkFilename: z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>; +const chunkFilename: z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>; // @public (undocumented) export type ChunkFormat = z.infer; @@ -1480,7 +1483,7 @@ const cssAutoParserOptions: z.ZodObject<{ export type CssChunkFilename = z.infer; // @public (undocumented) -const cssChunkFilename: z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>; +const cssChunkFilename: z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>; // @public (undocumented) export interface CssExtractRspackLoaderOptions { @@ -1535,7 +1538,7 @@ export interface CssExtractRspackPluginOptions { export type CssFilename = z.infer; // @public (undocumented) -const cssFilename: z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>; +const cssFilename: z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>; // @public (undocumented) export type CssGeneratorEsModule = z.infer; @@ -2596,11 +2599,11 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ }>], z.ZodUnknown>, z.ZodString>]>>; }, { emit: z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }>, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -2610,8 +2613,8 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ content: string; }, ...args_1: unknown[]) => string) | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -2660,15 +2663,15 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ }>>; "asset/resource": z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }>>; css: z.ZodOptional string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -2752,8 +2755,8 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; }, { @@ -2774,8 +2777,8 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -2795,8 +2798,8 @@ const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; }>, z.ZodRecord>]>; @@ -2828,11 +2831,11 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{ }>], z.ZodUnknown>, z.ZodString>]>>; }, { emit: z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }>, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -2842,8 +2845,8 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{ content: string; }, ...args_1: unknown[]) => string) | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -2892,15 +2895,15 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{ }>>; "asset/resource": z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }>>; css: z.ZodOptional string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -2984,8 +2987,8 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; }, { @@ -3006,8 +3009,8 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -3027,8 +3030,8 @@ const generatorOptionsByModuleTypeKnown: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; }>; @@ -3491,12 +3494,12 @@ const javascriptParserOptions: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -3506,12 +3509,12 @@ const javascriptParserOptions: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4680,12 +4683,12 @@ const moduleOptions: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4695,12 +4698,12 @@ const moduleOptions: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4726,12 +4729,12 @@ const moduleOptions: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4741,12 +4744,12 @@ const moduleOptions: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4772,12 +4775,12 @@ const moduleOptions: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4787,12 +4790,12 @@ const moduleOptions: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4818,12 +4821,12 @@ const moduleOptions: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4833,12 +4836,12 @@ const moduleOptions: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4850,12 +4853,12 @@ const moduleOptions: z.ZodObject<{ }>>; }, "strict", z.ZodTypeAny, { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4880,12 +4883,12 @@ const moduleOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4896,12 +4899,12 @@ const moduleOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4912,12 +4915,12 @@ const moduleOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4929,12 +4932,12 @@ const moduleOptions: z.ZodObject<{ } | undefined; }, { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4959,12 +4962,12 @@ const moduleOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4975,12 +4978,12 @@ const moduleOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -4991,12 +4994,12 @@ const moduleOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -5030,11 +5033,11 @@ const moduleOptions: z.ZodObject<{ }>], z.ZodUnknown>, z.ZodString>]>>; }, { emit: z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }>, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -5044,8 +5047,8 @@ const moduleOptions: z.ZodObject<{ content: string; }, ...args_1: unknown[]) => string) | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -5094,15 +5097,15 @@ const moduleOptions: z.ZodObject<{ }>>; "asset/resource": z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }>>; css: z.ZodOptional string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -5186,8 +5189,8 @@ const moduleOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; }, { @@ -5208,8 +5211,8 @@ const moduleOptions: z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -5229,8 +5232,8 @@ const moduleOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; }>, z.ZodRecord>]>>; @@ -5238,12 +5241,12 @@ const moduleOptions: z.ZodObject<{ }, "strict", z.ZodTypeAny, { parser?: { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -5268,12 +5271,12 @@ const moduleOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -5284,12 +5287,12 @@ const moduleOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -5300,12 +5303,12 @@ const moduleOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -5334,8 +5337,8 @@ const moduleOptions: z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -5355,8 +5358,8 @@ const moduleOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; } | undefined; @@ -5366,12 +5369,12 @@ const moduleOptions: z.ZodObject<{ }, { parser?: { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -5396,12 +5399,12 @@ const moduleOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -5412,12 +5415,12 @@ const moduleOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -5428,12 +5431,12 @@ const moduleOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -5462,8 +5465,8 @@ const moduleOptions: z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -5483,8 +5486,8 @@ const moduleOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; } | undefined; @@ -6453,17 +6456,17 @@ const output: z.ZodObject<{ path: z.ZodOptional; pathinfo: z.ZodOptional]>>; clean: z.ZodOptional; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - chunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + chunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; crossOriginLoading: z.ZodOptional, z.ZodEnum<["anonymous", "use-credentials"]>]>>; - cssFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + cssFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; cssHeadDataCompression: z.ZodOptional; - cssChunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + cssChunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; hotUpdateMainFilename: z.ZodOptional; hotUpdateChunkFilename: z.ZodOptional; hotUpdateGlobal: z.ZodOptional; - assetModuleFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + assetModuleFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; uniqueName: z.ZodOptional; chunkLoadingGlobal: z.ZodOptional; enabledLibraryTypes: z.ZodOptional, z.ZodString]>, "many">>; @@ -6648,8 +6651,8 @@ const output: z.ZodObject<{ }>>; }, "strict", z.ZodTypeAny, { module?: boolean | undefined; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; environment?: { module?: boolean | undefined; arrowFunction?: boolean | undefined; @@ -6666,7 +6669,7 @@ const output: z.ZodObject<{ optionalChaining?: boolean | undefined; templateLiteral?: boolean | undefined; } | undefined; - chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; path?: string | undefined; auxiliaryComment?: string | { commonjs?: string | undefined; @@ -6702,13 +6705,13 @@ const output: z.ZodObject<{ pathinfo?: boolean | "verbose" | undefined; clean?: boolean | undefined; crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; - cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; cssHeadDataCompression?: boolean | undefined; - cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; hotUpdateMainFilename?: string | undefined; hotUpdateChunkFilename?: string | undefined; hotUpdateGlobal?: string | undefined; - assetModuleFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; uniqueName?: string | undefined; chunkLoadingGlobal?: string | undefined; enabledLibraryTypes?: string[] | undefined; @@ -6743,8 +6746,8 @@ const output: z.ZodObject<{ charset?: boolean | undefined; }, { module?: boolean | undefined; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; environment?: { module?: boolean | undefined; arrowFunction?: boolean | undefined; @@ -6761,7 +6764,7 @@ const output: z.ZodObject<{ optionalChaining?: boolean | undefined; templateLiteral?: boolean | undefined; } | undefined; - chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; path?: string | undefined; auxiliaryComment?: string | { commonjs?: string | undefined; @@ -6797,13 +6800,13 @@ const output: z.ZodObject<{ pathinfo?: boolean | "verbose" | undefined; clean?: boolean | undefined; crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; - cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; cssHeadDataCompression?: boolean | undefined; - cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; hotUpdateMainFilename?: string | undefined; hotUpdateChunkFilename?: string | undefined; hotUpdateGlobal?: string | undefined; - assetModuleFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; uniqueName?: string | undefined; chunkLoadingGlobal?: string | undefined; enabledLibraryTypes?: string[] | undefined; @@ -7045,12 +7048,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7060,12 +7063,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7091,12 +7094,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7106,12 +7109,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7137,12 +7140,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7152,12 +7155,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7183,12 +7186,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7198,12 +7201,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7215,12 +7218,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ }>>; }, "strict", z.ZodTypeAny, { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7245,12 +7248,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7261,12 +7264,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7277,12 +7280,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7294,12 +7297,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ } | undefined; }, { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7324,12 +7327,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7340,12 +7343,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7356,12 +7359,12 @@ const parserOptionsByModuleType: z.ZodUnion<[z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7432,12 +7435,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7447,12 +7450,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7478,12 +7481,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7493,12 +7496,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7524,12 +7527,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7539,12 +7542,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7570,12 +7573,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7585,12 +7588,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7602,12 +7605,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ }>>; }, "strict", z.ZodTypeAny, { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7632,12 +7635,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7648,12 +7651,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7664,12 +7667,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7681,12 +7684,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ } | undefined; }, { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7711,12 +7714,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7727,12 +7730,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7743,12 +7746,12 @@ const parserOptionsByModuleTypeKnown: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -7773,7 +7776,9 @@ export type Path = z.infer; const path: z.ZodString; // @public (undocumented) -type PathData = JsPathData; +type PathData = Omit & { + chunk?: Chunk | binding.JsChunkPathData; +}; // @public (undocumented) export type Pathinfo = z.infer; @@ -8627,12 +8632,12 @@ export const rspackOptions: z.ZodObject<{ entry: z.ZodOptional]>, z.ZodObject<{ import: z.ZodUnion<[z.ZodString, z.ZodArray]>; runtime: z.ZodOptional, z.ZodString]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; baseUri: z.ZodOptional; chunkLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>; asyncChunks: z.ZodOptional; wasmLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; library: z.ZodOptional; auxiliaryComment: z.ZodOptional>; }, "strict", z.ZodTypeAny, { import: string | string[]; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -8732,8 +8737,8 @@ export const rspackOptions: z.ZodObject<{ dependOn?: string | string[] | undefined; }, { import: string | string[]; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -8761,12 +8766,12 @@ export const rspackOptions: z.ZodObject<{ }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray]>]>, z.ZodFunction, z.ZodUnion<[z.ZodUnion<[z.ZodRecord]>, z.ZodObject<{ import: z.ZodUnion<[z.ZodString, z.ZodArray]>; runtime: z.ZodOptional, z.ZodString]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; baseUri: z.ZodOptional; chunkLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>; asyncChunks: z.ZodOptional; wasmLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; library: z.ZodOptional; auxiliaryComment: z.ZodOptional>; }, "strict", z.ZodTypeAny, { import: string | string[]; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -8866,8 +8871,8 @@ export const rspackOptions: z.ZodObject<{ dependOn?: string | string[] | undefined; }, { import: string | string[]; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -8895,12 +8900,12 @@ export const rspackOptions: z.ZodObject<{ }>]>>, z.ZodUnion<[z.ZodString, z.ZodArray]>]>, z.ZodPromise]>, z.ZodObject<{ import: z.ZodUnion<[z.ZodString, z.ZodArray]>; runtime: z.ZodOptional, z.ZodString]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; baseUri: z.ZodOptional; chunkLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>; asyncChunks: z.ZodOptional; wasmLoading: z.ZodOptional, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; library: z.ZodOptional; auxiliaryComment: z.ZodOptional>; }, "strict", z.ZodTypeAny, { import: string | string[]; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -9000,8 +9005,8 @@ export const rspackOptions: z.ZodObject<{ dependOn?: string | string[] | undefined; }, { import: string | string[]; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -9031,17 +9036,17 @@ export const rspackOptions: z.ZodObject<{ path: z.ZodOptional; pathinfo: z.ZodOptional]>>; clean: z.ZodOptional; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - chunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + chunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; crossOriginLoading: z.ZodOptional, z.ZodEnum<["anonymous", "use-credentials"]>]>>; - cssFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + cssFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; cssHeadDataCompression: z.ZodOptional; - cssChunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + cssChunkFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; hotUpdateMainFilename: z.ZodOptional; hotUpdateChunkFilename: z.ZodOptional; hotUpdateGlobal: z.ZodOptional; - assetModuleFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + assetModuleFilename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; uniqueName: z.ZodOptional; chunkLoadingGlobal: z.ZodOptional; enabledLibraryTypes: z.ZodOptional, z.ZodString]>, "many">>; @@ -9226,8 +9231,8 @@ export const rspackOptions: z.ZodObject<{ }>>; }, "strict", z.ZodTypeAny, { module?: boolean | undefined; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; environment?: { module?: boolean | undefined; arrowFunction?: boolean | undefined; @@ -9244,7 +9249,7 @@ export const rspackOptions: z.ZodObject<{ optionalChaining?: boolean | undefined; templateLiteral?: boolean | undefined; } | undefined; - chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; path?: string | undefined; auxiliaryComment?: string | { commonjs?: string | undefined; @@ -9280,13 +9285,13 @@ export const rspackOptions: z.ZodObject<{ pathinfo?: boolean | "verbose" | undefined; clean?: boolean | undefined; crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; - cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; cssHeadDataCompression?: boolean | undefined; - cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; hotUpdateMainFilename?: string | undefined; hotUpdateChunkFilename?: string | undefined; hotUpdateGlobal?: string | undefined; - assetModuleFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; uniqueName?: string | undefined; chunkLoadingGlobal?: string | undefined; enabledLibraryTypes?: string[] | undefined; @@ -9321,8 +9326,8 @@ export const rspackOptions: z.ZodObject<{ charset?: boolean | undefined; }, { module?: boolean | undefined; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; environment?: { module?: boolean | undefined; arrowFunction?: boolean | undefined; @@ -9339,7 +9344,7 @@ export const rspackOptions: z.ZodObject<{ optionalChaining?: boolean | undefined; templateLiteral?: boolean | undefined; } | undefined; - chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; path?: string | undefined; auxiliaryComment?: string | { commonjs?: string | undefined; @@ -9375,13 +9380,13 @@ export const rspackOptions: z.ZodObject<{ pathinfo?: boolean | "verbose" | undefined; clean?: boolean | undefined; crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; - cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; cssHeadDataCompression?: boolean | undefined; - cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; hotUpdateMainFilename?: string | undefined; hotUpdateChunkFilename?: string | undefined; hotUpdateGlobal?: string | undefined; - assetModuleFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; uniqueName?: string | undefined; chunkLoadingGlobal?: string | undefined; enabledLibraryTypes?: string[] | undefined; @@ -10496,12 +10501,12 @@ export const rspackOptions: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10511,12 +10516,12 @@ export const rspackOptions: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10542,12 +10547,12 @@ export const rspackOptions: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10557,12 +10562,12 @@ export const rspackOptions: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10588,12 +10593,12 @@ export const rspackOptions: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10603,12 +10608,12 @@ export const rspackOptions: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10634,12 +10639,12 @@ export const rspackOptions: z.ZodObject<{ worker: z.ZodOptional, z.ZodBoolean]>>; overrideStrict: z.ZodOptional>; }, "strict", z.ZodTypeAny, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10649,12 +10654,12 @@ export const rspackOptions: z.ZodObject<{ worker?: boolean | string[] | undefined; overrideStrict?: "strict" | "non-strict" | undefined; }, { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10666,12 +10671,12 @@ export const rspackOptions: z.ZodObject<{ }>>; }, "strict", z.ZodTypeAny, { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10696,12 +10701,12 @@ export const rspackOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10712,12 +10717,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10728,12 +10733,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10745,12 +10750,12 @@ export const rspackOptions: z.ZodObject<{ } | undefined; }, { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10775,12 +10780,12 @@ export const rspackOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10791,12 +10796,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10807,12 +10812,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -10846,11 +10851,11 @@ export const rspackOptions: z.ZodObject<{ }>], z.ZodUnknown>, z.ZodString>]>>; }, { emit: z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }>, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -10860,8 +10865,8 @@ export const rspackOptions: z.ZodObject<{ content: string; }, ...args_1: unknown[]) => string) | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -10910,15 +10915,15 @@ export const rspackOptions: z.ZodObject<{ }>>; "asset/resource": z.ZodOptional; - filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; - publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; + filename: z.ZodOptional, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>>; + publicPath: z.ZodOptional, z.ZodUnion<[z.ZodString, z.ZodFunction, z.ZodOptional>], z.ZodUnknown>, z.ZodString>]>]>>; }, "strict", z.ZodTypeAny, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }, { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; }>>; css: z.ZodOptional string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -11002,8 +11007,8 @@ export const rspackOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; }, { @@ -11024,8 +11029,8 @@ export const rspackOptions: z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -11045,8 +11050,8 @@ export const rspackOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; }>, z.ZodRecord>]>>; @@ -11054,12 +11059,12 @@ export const rspackOptions: z.ZodObject<{ }, "strict", z.ZodTypeAny, { parser?: { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11084,12 +11089,12 @@ export const rspackOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11100,12 +11105,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11116,12 +11121,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11150,8 +11155,8 @@ export const rspackOptions: z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -11171,8 +11176,8 @@ export const rspackOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; } | undefined; @@ -11182,12 +11187,12 @@ export const rspackOptions: z.ZodObject<{ }, { parser?: { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11212,12 +11217,12 @@ export const rspackOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11228,12 +11233,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11244,12 +11249,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11278,8 +11283,8 @@ export const rspackOptions: z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -11299,8 +11304,8 @@ export const rspackOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; } | undefined; @@ -11330,12 +11335,12 @@ export const rspackOptions: z.ZodObject<{ module?: { parser?: { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11360,12 +11365,12 @@ export const rspackOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11376,12 +11381,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11392,12 +11397,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11426,8 +11431,8 @@ export const rspackOptions: z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -11447,8 +11452,8 @@ export const rspackOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; } | undefined; @@ -11467,8 +11472,8 @@ export const rspackOptions: z.ZodObject<{ } | undefined; entry?: string | string[] | Record string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -11495,8 +11500,8 @@ export const rspackOptions: z.ZodObject<{ dependOn?: string | string[] | undefined; }> | ((...args: unknown[]) => string | string[] | Record string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -11523,8 +11528,8 @@ export const rspackOptions: z.ZodObject<{ dependOn?: string | string[] | undefined; }> | Promise string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -11561,8 +11566,8 @@ export const rspackOptions: z.ZodObject<{ resolve?: t.ResolveOptions | undefined; output?: { module?: boolean | undefined; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; environment?: { module?: boolean | undefined; arrowFunction?: boolean | undefined; @@ -11579,7 +11584,7 @@ export const rspackOptions: z.ZodObject<{ optionalChaining?: boolean | undefined; templateLiteral?: boolean | undefined; } | undefined; - chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; path?: string | undefined; auxiliaryComment?: string | { commonjs?: string | undefined; @@ -11615,13 +11620,13 @@ export const rspackOptions: z.ZodObject<{ pathinfo?: boolean | "verbose" | undefined; clean?: boolean | undefined; crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; - cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; cssHeadDataCompression?: boolean | undefined; - cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; hotUpdateMainFilename?: string | undefined; hotUpdateChunkFilename?: string | undefined; hotUpdateGlobal?: string | undefined; - assetModuleFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; uniqueName?: string | undefined; chunkLoadingGlobal?: string | undefined; enabledLibraryTypes?: string[] | undefined; @@ -11912,12 +11917,12 @@ export const rspackOptions: z.ZodObject<{ module?: { parser?: { javascript?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11942,12 +11947,12 @@ export const rspackOptions: z.ZodObject<{ } | undefined; } | undefined; "javascript/auto"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11958,12 +11963,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/dynamic"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -11974,12 +11979,12 @@ export const rspackOptions: z.ZodObject<{ overrideStrict?: "strict" | "non-strict" | undefined; } | undefined; "javascript/esm"?: { + url?: boolean | "relative" | undefined; dynamicImportMode?: "eager" | "lazy" | "weak" | "lazy-once" | undefined; dynamicImportPreload?: number | boolean | undefined; dynamicImportPrefetch?: number | boolean | undefined; dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined; importMeta?: boolean | undefined; - url?: boolean | "relative" | undefined; exprContextCritical?: boolean | undefined; wrappedContextCritical?: boolean | undefined; exportsPresence?: false | "auto" | "error" | "warn" | undefined; @@ -12008,8 +12013,8 @@ export const rspackOptions: z.ZodObject<{ localIdentName?: string | undefined; } | undefined; asset?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; dataUrl?: { mimetype?: string | undefined; @@ -12029,8 +12034,8 @@ export const rspackOptions: z.ZodObject<{ }, ...args_1: unknown[]) => string) | undefined; } | undefined; "asset/resource"?: { - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; emit?: boolean | undefined; } | undefined; } | undefined; @@ -12049,8 +12054,8 @@ export const rspackOptions: z.ZodObject<{ } | undefined; entry?: string | string[] | Record string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -12077,8 +12082,8 @@ export const rspackOptions: z.ZodObject<{ dependOn?: string | string[] | undefined; }> | ((...args: unknown[]) => string | string[] | Record string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -12105,8 +12110,8 @@ export const rspackOptions: z.ZodObject<{ dependOn?: string | string[] | undefined; }> | Promise string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; layer?: string | null | undefined; runtime?: string | false | undefined; baseUri?: string | undefined; @@ -12143,8 +12148,8 @@ export const rspackOptions: z.ZodObject<{ resolve?: t.ResolveOptions | undefined; output?: { module?: boolean | undefined; - filename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; - publicPath?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + publicPath?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; environment?: { module?: boolean | undefined; arrowFunction?: boolean | undefined; @@ -12161,7 +12166,7 @@ export const rspackOptions: z.ZodObject<{ optionalChaining?: boolean | undefined; templateLiteral?: boolean | undefined; } | undefined; - chunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + chunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; path?: string | undefined; auxiliaryComment?: string | { commonjs?: string | undefined; @@ -12197,13 +12202,13 @@ export const rspackOptions: z.ZodObject<{ pathinfo?: boolean | "verbose" | undefined; clean?: boolean | undefined; crossOriginLoading?: false | "anonymous" | "use-credentials" | undefined; - cssFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; cssHeadDataCompression?: boolean | undefined; - cssChunkFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + cssChunkFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; hotUpdateMainFilename?: string | undefined; hotUpdateChunkFilename?: string | undefined; hotUpdateGlobal?: string | undefined; - assetModuleFilename?: string | ((args_0: JsPathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; + assetModuleFilename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args_2: unknown[]) => string) | undefined; uniqueName?: string | undefined; chunkLoadingGlobal?: string | undefined; enabledLibraryTypes?: string[] | undefined; diff --git a/packages/rspack/src/Chunk.ts b/packages/rspack/src/Chunk.ts index cec6ac2254c..717fc049e75 100644 --- a/packages/rspack/src/Chunk.ts +++ b/packages/rspack/src/Chunk.ts @@ -1,5 +1,6 @@ import { type JsChunk, + type JsChunkPathData, type JsCompilation, __chunk_group_inner_get_chunk_group, __chunk_inner_can_be_initial, @@ -164,4 +165,13 @@ export class Chunk { __internal__innerUkey() { return this.#inner.__inner_ukey; } + + __internal_to_path_data_chunk(): JsChunkPathData { + return { + id: this.id, + name: this.name, + hash: this.hash, + contentHash: this.contentHash + }; + } } diff --git a/packages/rspack/src/Compilation.ts b/packages/rspack/src/Compilation.ts index cf6177d00f1..e7ea98ad564 100644 --- a/packages/rspack/src/Compilation.ts +++ b/packages/rspack/src/Compilation.ts @@ -65,7 +65,9 @@ export interface Asset { info: AssetInfo; } -export type PathData = JsPathData; +export type PathData = Omit & { + chunk?: Chunk | binding.JsChunkPathData; +}; export interface LogEntry { type: string; @@ -892,19 +894,43 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si } getPath(filename: Filename, data: PathData = {}) { - return this.#inner.getPath(filename, data); + return this.#inner.getPath(filename, { + ...data, + chunk: + data.chunk instanceof Chunk + ? data.chunk.__internal_to_path_data_chunk() + : data.chunk + }); } getPathWithInfo(filename: Filename, data: PathData = {}) { - return this.#inner.getPathWithInfo(filename, data); + return this.#inner.getPathWithInfo(filename, { + ...data, + chunk: + data.chunk instanceof Chunk + ? data.chunk.__internal_to_path_data_chunk() + : data.chunk + }); } getAssetPath(filename: Filename, data: PathData = {}) { - return this.#inner.getAssetPath(filename, data); + return this.#inner.getAssetPath(filename, { + ...data, + chunk: + data.chunk instanceof Chunk + ? data.chunk.__internal_to_path_data_chunk() + : data.chunk + }); } getAssetPathWithInfo(filename: Filename, data: PathData = {}) { - return this.#inner.getAssetPathWithInfo(filename, data); + return this.#inner.getAssetPathWithInfo(filename, { + ...data, + chunk: + data.chunk instanceof Chunk + ? data.chunk.__internal_to_path_data_chunk() + : data.chunk + }); } getLogger(name: string | (() => string)) {