@serwist/build
Version:
A module that integrates into your build process, helping you generate a manifest of local files that should be precached.
30 lines (25 loc) • 931 B
JavaScript
import { z } from 'zod';
import { r as requiredGlobDirectoryPartial, g as globPartial, b as basePartial } from './glob.js';
const optionalSwDestPartial = z.strictObject({
swDest: z.string().optional()
});
const requiredSwDestPartial = z.strictObject({
swDest: z.string()
});
const baseInjectPartial = z.strictObject({
injectionPoint: z.string().default("self.__SW_MANIFEST"),
swSrc: z.string()
});
const injectManifestOptions = z.strictObject({
...basePartial.shape,
...globPartial.shape,
...baseInjectPartial.shape,
...requiredSwDestPartial.shape,
...requiredGlobDirectoryPartial.shape
});
var injectManifest = /*#__PURE__*/Object.freeze({
__proto__: null,
baseInjectPartial: baseInjectPartial,
injectManifestOptions: injectManifestOptions
});
export { injectManifest as a, baseInjectPartial as b, injectManifestOptions as i, optionalSwDestPartial as o, requiredSwDestPartial as r };