@serwist/turbopack
Version:
A module that integrates Serwist into your Next.js / Turbopack application.
59 lines • 6.3 kB
TypeScript
import z from "zod";
export declare const turboPartial: z.ZodObject<{
cwd: z.ZodPrefault<z.ZodString>;
basePath: z.ZodString;
esbuildOptions: z.ZodPrefault<z.ZodRecord<z.ZodLiteral<"bundle" | "splitting" | "preserveSymlinks" | "external" | "packages" | "alias" | "loader" | "resolveExtensions" | "mainFields" | "conditions" | "allowOverwrite" | "tsconfig" | "outExtension" | "publicPath" | "inject" | "banner" | "footer" | "plugins" | "sourcemap" | "legalComments" | "sourceRoot" | "sourcesContent" | "format" | "globalName" | "target" | "supported" | "mangleProps" | "reserveProps" | "mangleQuoted" | "mangleCache" | "drop" | "dropLabels" | "minify" | "minifyWhitespace" | "minifyIdentifiers" | "minifySyntax" | "lineLimit" | "charset" | "treeShaking" | "ignoreAnnotations" | "jsx" | "jsxFactory" | "jsxFragment" | "jsxImportSource" | "jsxDev" | "jsxSideEffects" | "define" | "pure" | "keepNames" | "absPaths" | "color" | "logLevel" | "logLimit" | "logOverride" | "tsconfigRaw"> & z.z.core.$partial, z.ZodAny>>;
}, z.z.core.$strict>;
export declare const injectManifestOptions: z.ZodPipe<z.ZodObject<{
cwd: z.ZodPrefault<z.ZodString>;
esbuildOptions: z.ZodPrefault<z.ZodRecord<z.ZodLiteral<"bundle" | "splitting" | "preserveSymlinks" | "external" | "packages" | "alias" | "loader" | "resolveExtensions" | "mainFields" | "conditions" | "allowOverwrite" | "tsconfig" | "outExtension" | "publicPath" | "inject" | "banner" | "footer" | "plugins" | "sourcemap" | "legalComments" | "sourceRoot" | "sourcesContent" | "format" | "globalName" | "target" | "supported" | "mangleProps" | "reserveProps" | "mangleQuoted" | "mangleCache" | "drop" | "dropLabels" | "minify" | "minifyWhitespace" | "minifyIdentifiers" | "minifySyntax" | "lineLimit" | "charset" | "treeShaking" | "ignoreAnnotations" | "jsx" | "jsxFactory" | "jsxFragment" | "jsxImportSource" | "jsxDev" | "jsxSideEffects" | "define" | "pure" | "keepNames" | "absPaths" | "color" | "logLevel" | "logLimit" | "logOverride" | "tsconfigRaw"> & z.z.core.$partial, z.ZodAny>>;
basePath: z.ZodString;
additionalPrecacheEntries: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodType<import("@serwist/build").ManifestEntry, import("@serwist/build").ManifestEntry, z.z.core.$ZodTypeInternals<import("@serwist/build").ManifestEntry, import("@serwist/build").ManifestEntry>>]>>>;
dontCacheBustURLsMatching: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodType<import("@serwist/build").ManifestTransform, import("@serwist/build").ManifestTransform, z.z.core.$ZodTypeInternals<import("@serwist/build").ManifestTransform, import("@serwist/build").ManifestTransform>>>>;
maximumFileSizeToCacheInBytes: z.ZodDefault<z.ZodNumber>;
modifyURLPrefix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
globFollow: z.ZodDefault<z.ZodBoolean>;
globIgnores: z.ZodDefault<z.ZodArray<z.ZodString>>;
globPatterns: z.ZodPrefault<z.ZodArray<z.ZodString>>;
globStrict: z.ZodDefault<z.ZodBoolean>;
templatedURLs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
injectionPoint: z.ZodPrefault<z.ZodString>;
swSrc: z.ZodString;
globDirectory: z.ZodOptional<z.ZodString>;
}, z.z.core.$strict>, z.ZodTransform<{
swSrc: string;
globDirectory: string;
cwd: string;
esbuildOptions: Partial<Record<"bundle" | "splitting" | "preserveSymlinks" | "external" | "packages" | "alias" | "loader" | "resolveExtensions" | "mainFields" | "conditions" | "allowOverwrite" | "tsconfig" | "outExtension" | "publicPath" | "inject" | "banner" | "footer" | "plugins" | "sourcemap" | "legalComments" | "sourceRoot" | "sourcesContent" | "format" | "globalName" | "target" | "supported" | "mangleProps" | "reserveProps" | "mangleQuoted" | "mangleCache" | "drop" | "dropLabels" | "minify" | "minifyWhitespace" | "minifyIdentifiers" | "minifySyntax" | "lineLimit" | "charset" | "treeShaking" | "ignoreAnnotations" | "jsx" | "jsxFactory" | "jsxFragment" | "jsxImportSource" | "jsxDev" | "jsxSideEffects" | "define" | "pure" | "keepNames" | "absPaths" | "color" | "logLevel" | "logLimit" | "logOverride" | "tsconfigRaw", any>>;
basePath: string;
maximumFileSizeToCacheInBytes: number;
globFollow: boolean;
globIgnores: string[];
globPatterns: string[];
globStrict: boolean;
injectionPoint: string;
additionalPrecacheEntries?: (string | import("@serwist/build").ManifestEntry)[] | undefined;
dontCacheBustURLsMatching?: RegExp | undefined;
manifestTransforms?: import("@serwist/build").ManifestTransform[] | undefined;
modifyURLPrefix?: Record<string, string> | undefined;
templatedURLs?: Record<string, string | string[]> | undefined;
}, {
cwd: string;
esbuildOptions: Partial<Record<"bundle" | "splitting" | "preserveSymlinks" | "external" | "packages" | "alias" | "loader" | "resolveExtensions" | "mainFields" | "conditions" | "allowOverwrite" | "tsconfig" | "outExtension" | "publicPath" | "inject" | "banner" | "footer" | "plugins" | "sourcemap" | "legalComments" | "sourceRoot" | "sourcesContent" | "format" | "globalName" | "target" | "supported" | "mangleProps" | "reserveProps" | "mangleQuoted" | "mangleCache" | "drop" | "dropLabels" | "minify" | "minifyWhitespace" | "minifyIdentifiers" | "minifySyntax" | "lineLimit" | "charset" | "treeShaking" | "ignoreAnnotations" | "jsx" | "jsxFactory" | "jsxFragment" | "jsxImportSource" | "jsxDev" | "jsxSideEffects" | "define" | "pure" | "keepNames" | "absPaths" | "color" | "logLevel" | "logLimit" | "logOverride" | "tsconfigRaw", any>>;
basePath: string;
maximumFileSizeToCacheInBytes: number;
globFollow: boolean;
globIgnores: string[];
globPatterns: string[];
globStrict: boolean;
injectionPoint: string;
swSrc: string;
additionalPrecacheEntries?: (string | import("@serwist/build").ManifestEntry)[] | undefined;
dontCacheBustURLsMatching?: RegExp | undefined;
manifestTransforms?: import("@serwist/build").ManifestTransform[] | undefined;
modifyURLPrefix?: Record<string, string> | undefined;
templatedURLs?: Record<string, string | string[]> | undefined;
globDirectory?: string | undefined;
}>>;
//# sourceMappingURL=index.schema.d.ts.map