@serwist/build 9.0.0-preview.12 → 9.0.0-preview.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/chunks/glob.js +2 -2
  2. package/dist/chunks/injectManifest.js +5 -5
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +2 -26
  6. package/dist/index.schema.d.ts +13 -0
  7. package/dist/index.schema.d.ts.map +1 -0
  8. package/dist/index.schema.js +9 -0
  9. package/dist/lib/validate-options.d.ts +1 -3
  10. package/dist/lib/validate-options.d.ts.map +1 -1
  11. package/dist/schema/assertType.d.ts +1 -0
  12. package/dist/schema/assertType.d.ts.map +1 -1
  13. package/dist/schema/injectManifest.d.ts +3 -3
  14. package/dist/schema/injectManifest.d.ts.map +1 -1
  15. package/dist/{lib/serwist-config-error.d.ts → schema/serwistConfigError.d.ts} +1 -1
  16. package/dist/schema/serwistConfigError.d.ts.map +1 -0
  17. package/dist/types.d.ts +0 -143
  18. package/dist/types.d.ts.map +1 -1
  19. package/package.json +13 -21
  20. package/src/index.schema.ts +29 -0
  21. package/src/index.ts +2 -3
  22. package/src/lib/validate-options.ts +2 -23
  23. package/src/schema/assertType.ts +2 -0
  24. package/src/schema/injectManifest.ts +4 -4
  25. package/src/types.ts +0 -175
  26. package/dist/chunks/vite.js +0 -7
  27. package/dist/chunks/webpack.js +0 -33
  28. package/dist/index.next.d.ts +0 -3
  29. package/dist/index.next.d.ts.map +0 -1
  30. package/dist/index.next.js +0 -38
  31. package/dist/lib/serwist-config-error.d.ts.map +0 -1
  32. package/dist/lib/validate-next-options.d.ts +0 -3
  33. package/dist/lib/validate-next-options.d.ts.map +0 -1
  34. package/dist/schema/next.d.ts +0 -240
  35. package/dist/schema/next.d.ts.map +0 -1
  36. package/dist/schema/vite.d.ts +0 -196
  37. package/dist/schema/vite.d.ts.map +0 -1
  38. package/dist/schema/webpack.d.ts +0 -225
  39. package/dist/schema/webpack.d.ts.map +0 -1
  40. package/src/index.next.ts +0 -3
  41. package/src/lib/validate-next-options.ts +0 -14
  42. package/src/schema/next.ts +0 -33
  43. package/src/schema/vite.ts +0 -18
  44. package/src/schema/webpack.ts +0 -46
  45. package/dist/chunks/{serwist-config-error.js → validationErrorMap.js} +7 -7
  46. /package/src/{lib/serwist-config-error.ts → schema/serwistConfigError.ts} +0 -0
package/src/types.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import type { Require } from "@serwist/utils";
2
- import type { Pattern as GlobPattern } from "fast-glob";
3
2
  import type { PackageJson } from "type-fest";
4
3
  import type { z } from "zod";
5
4
  import type { manifestEntry } from "./schema/manifestEntry.js";
@@ -161,43 +160,6 @@ export interface InjectPartial {
161
160
 
162
161
  export type InjectResolved = Require<InjectPartial, "injectionPoint">;
163
162
 
164
- export interface WebpackPartial {
165
- /**
166
- * One or more chunk names whose corresponding output files should be included
167
- * in the precache manifest.
168
- */
169
- chunks?: string[];
170
- // We can't use the @default annotation here to assign the value via AJV, as
171
- // an (RegExp)[] can't be serialized into JSON.
172
- // The default value of [/\.map$/, /^manifest.*\.js$/] will be assigned by
173
- // the validation function, and we need to reflect that in the docs.
174
- /**
175
- * One or more specifiers used to exclude assets from the precache manifest.
176
- * This is interpreted following
177
- * [the same rules](https://webpack.js.org/configuration/module/#condition)
178
- * as webpack's standard `exclude` option.
179
- * @default
180
- * ```
181
- * [/\.map$/, /^manifest.*\.js$]
182
- * ```
183
- */
184
- exclude?: (string | RegExp | ((arg0: any) => boolean))[];
185
- /**
186
- * One or more chunk names whose corresponding output files should be excluded
187
- * from the precache manifest.
188
- */
189
- excludeChunks?: string[];
190
- /**
191
- * One or more specifiers used to include assets in the precache manifest.
192
- * This is interpreted following
193
- * [the same rules](https://webpack.js.org/configuration/module/#condition)
194
- * as webpack's standard `include` option.
195
- */
196
- include?: (string | RegExp | ((arg0: any) => boolean))[];
197
- }
198
-
199
- export type WebpackResolved = Require<WebpackPartial, "exclude">;
200
-
201
163
  export interface RequiredSwDestPartial {
202
164
  /**
203
165
  * The path and filename of the service worker file that will be created by
@@ -219,121 +181,6 @@ export interface OptionalSwDestPartial {
219
181
 
220
182
  export type OptionalSwDestResolved = OptionalSwDestPartial;
221
183
 
222
- export interface WebpackInjectManifestPartial {
223
- /**
224
- * When `true` (the default), the `swSrc` file will be compiled by webpack.
225
- * When `false`, compilation will not occur (and `webpackCompilationPlugins`
226
- * can't be used.) Set to `false` if you want to inject the manifest into,
227
- * e.g., a JSON file.
228
- * @default true
229
- */
230
- compileSrc?: boolean;
231
- // This can only be set if `compileSrc` is true, but that restriction can't be
232
- // represented in TypeScript. It's enforced via custom runtime validation
233
- // logic and needs to be documented.
234
- /**
235
- * Optional webpack plugins that will be used when compiling the `swSrc`
236
- * input file. Only valid if `compileSrc` is `true`.
237
- */
238
- webpackCompilationPlugins?: any[];
239
- }
240
-
241
- export type WebpackInjectManifestResolved = Require<WebpackInjectManifestPartial, "compileSrc">;
242
-
243
- export interface NextInjectManifestPartial {
244
- /**
245
- * Enables additional route caching when users navigate through pages with
246
- * `next/link`. This improves the user experience in some cases but it
247
- * also adds a bit of overhead due to additional network calls.
248
- * @default false
249
- */
250
- cacheOnNavigation?: boolean;
251
- /**
252
- * Whether Serwist should be disabled.
253
- * @default false
254
- */
255
- disable?: boolean;
256
- /**
257
- * Whether `@serwist/next` should automatically register the service worker for you. If
258
- * you want to register the service worker yourself, set this to `false` and run
259
- * `window.serwist.register()` in `componentDidMount` or `useEffect`.
260
- * @example
261
- * ```tsx
262
- * // app/register-pwa.tsx
263
- * "use client";
264
- * import { useEffect } from "react";
265
- * import type { Serwist } from "@serwist/window";
266
- *
267
- * declare global {
268
- * interface Window {
269
- * serwist: Serwist;
270
- * }
271
- * }
272
- *
273
- * export default function RegisterPWA() {
274
- * useEffect(() => {
275
- * if ("serviceWorker" in navigator && window.serwist !== undefined) {
276
- * window.serwist.register();
277
- * }
278
- * }, []);
279
- * return <></>;
280
- * }
281
- *
282
- * // app/layout.tsx
283
- * import RegisterPWA from "./register-pwa";
284
- *
285
- * export default function RootLayout({
286
- * children,
287
- * }: {
288
- * children: React.ReactNode;
289
- * }) {
290
- * return (
291
- * <html lang="en">
292
- * <head />
293
- * <body>
294
- * <RegisterPWA />
295
- * {children}
296
- * </body>
297
- * </html>
298
- * );
299
- * }
300
- * ```
301
- * @default true
302
- */
303
- register?: boolean;
304
- /**
305
- * Whether Serwist should reload the app when it goes online.
306
- * @default true
307
- */
308
- reloadOnOnline?: boolean;
309
- /**
310
- * The service worker's URL scope. Set to `/foo/` so that paths under `/foo/` are under the service
311
- * worker's control while others are not.
312
- * @default nextConfig.basePath
313
- */
314
- scope?: string;
315
- /**
316
- * The URL to the service worker.
317
- * @default "/sw.js"
318
- */
319
- swUrl?: string;
320
- /**
321
- * Files in the public directory matching any of these patterns
322
- * will be included in the precache manifest. For more information,
323
- * see [`node-glob`'s Glob Primer](https://github.com/isaacs/node-glob#glob-primer).
324
- * @default
325
- * ```
326
- * ["**\/*"]
327
- * ```
328
- */
329
- globPublicPatterns?: GlobPattern | GlobPattern[];
330
- }
331
-
332
- export type NextInjectManifestResolved = Require<
333
- NextInjectManifestPartial,
334
- "cacheOnNavigation" | "disable" | "register" | "reloadOnOnline" | "swUrl" | "globPublicPatterns"
335
- >;
336
-
337
184
  export type GetManifestOptions = BasePartial & GlobPartial & RequiredGlobDirectoryPartial;
338
185
 
339
186
  export type GetManifestOptionsComplete = BaseResolved & GlobResolved & RequiredGlobDirectoryResolved;
@@ -342,28 +189,6 @@ export type InjectManifestOptions = BasePartial & GlobPartial & InjectPartial &
342
189
 
343
190
  export type InjectManifestOptionsComplete = BaseResolved & GlobResolved & InjectResolved & RequiredSwDestResolved & RequiredGlobDirectoryResolved;
344
191
 
345
- export type WebpackInjectManifestOptions = BasePartial & WebpackPartial & InjectPartial & OptionalSwDestPartial & WebpackInjectManifestPartial;
346
-
347
- export type WebpackInjectManifestOptionsComplete = BaseResolved &
348
- WebpackResolved &
349
- InjectResolved &
350
- OptionalSwDestResolved &
351
- WebpackInjectManifestResolved;
352
-
353
- export type ViteInjectManifestOptions = BasePartial & GlobPartial & InjectPartial & RequiredSwDestPartial & RequiredGlobDirectoryPartial;
354
-
355
- export type ViteInjectManifestOptionsComplete = BaseResolved & GlobResolved & InjectResolved & RequiredSwDestResolved & RequiredGlobDirectoryResolved;
356
-
357
- export type NextInjectManifestOptions = Omit<
358
- WebpackInjectManifestOptions & RequiredSwDestPartial & NextInjectManifestPartial,
359
- "disablePrecacheManifest"
360
- >;
361
-
362
- export type NextInjectManifestOptionsComplete = Omit<
363
- WebpackInjectManifestOptionsComplete & RequiredSwDestResolved & NextInjectManifestResolved,
364
- "disablePrecacheManifest"
365
- >;
366
-
367
192
  export interface GetManifestResult {
368
193
  count: number;
369
194
  manifestEntries: ManifestEntry[] | undefined;
@@ -1,7 +0,0 @@
1
- import { b as basePartial, g as globPartial, r as requiredGlobDirectoryPartial } from './glob.js';
2
- import { i as injectPartial, r as requiredSwDestPartial } from './injectManifest.js';
3
- import 'zod';
4
-
5
- const viteInjectManifestOptions = basePartial.merge(globPartial).merge(injectPartial).merge(requiredSwDestPartial).merge(requiredGlobDirectoryPartial).strict("Do not pass invalid properties to ViteInjectManifestPartial!");
6
-
7
- export { viteInjectManifestOptions };
@@ -1,33 +0,0 @@
1
- import { z } from 'zod';
2
- import { b as basePartial } from './glob.js';
3
- import { i as injectPartial, o as optionalSwDestPartial } from './injectManifest.js';
4
-
5
- const webpackPartial = z.object({
6
- chunks: z.array(z.string()).optional(),
7
- exclude: z.array(z.union([
8
- z.string(),
9
- z.instanceof(RegExp),
10
- z.function(z.tuple([
11
- z.any()
12
- ]), z.boolean())
13
- ])).default([
14
- /\.map$/,
15
- /^manifest.*\.js$/
16
- ]),
17
- excludeChunks: z.array(z.string()).optional(),
18
- include: z.array(z.union([
19
- z.string(),
20
- z.instanceof(RegExp),
21
- z.function(z.tuple([
22
- z.any()
23
- ]), z.boolean())
24
- ])).optional()
25
- }).strict("Do not pass invalid properties to WebpackPartial!");
26
- const webpackInjectManifestPartial = z.object({
27
- compileSrc: z.boolean().default(true),
28
- swDest: z.string().optional(),
29
- webpackCompilationPlugins: z.array(z.any()).optional()
30
- }).strict("Do not pass invalid properties to WebpackInjectManifestPartial!");
31
- const webpackInjectManifestOptions = basePartial.merge(webpackPartial).merge(injectPartial).merge(optionalSwDestPartial).merge(webpackInjectManifestPartial).strict("Do not pass invalid properties to WebpackInjectManifestOptions!");
32
-
33
- export { webpackInjectManifestOptions, webpackInjectManifestPartial, webpackPartial };
@@ -1,3 +0,0 @@
1
- import { validateNextInjectManifestOptions } from "./lib/validate-next-options.js";
2
- export { validateNextInjectManifestOptions };
3
- //# sourceMappingURL=index.next.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.next.d.ts","sourceRoot":"","sources":["../src/index.next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAEnF,OAAO,EAAE,iCAAiC,EAAE,CAAC"}
@@ -1,38 +0,0 @@
1
- import { z } from 'zod';
2
- import { r as requiredSwDestPartial } from './chunks/injectManifest.js';
3
- import { webpackInjectManifestOptions } from './chunks/webpack.js';
4
- import { v as validationErrorMap, S as SerwistConfigError } from './chunks/serwist-config-error.js';
5
- import './chunks/glob.js';
6
-
7
- const nextInjectManifestPartial = z.object({
8
- cacheOnNavigation: z.boolean().default(false),
9
- disable: z.boolean().default(false),
10
- register: z.boolean().default(true),
11
- reloadOnOnline: z.boolean().default(true),
12
- scope: z.string().optional(),
13
- swUrl: z.string().default("/sw.js"),
14
- globPublicPatterns: z.union([
15
- z.string(),
16
- z.array(z.string())
17
- ]).default([
18
- "**/*"
19
- ])
20
- }).strict("Do not pass invalid properties to NextInjectManifestPartial!");
21
- const nextInjectManifestOptions = webpackInjectManifestOptions.merge(requiredSwDestPartial).merge(nextInjectManifestPartial).omit({
22
- disablePrecacheManifest: true
23
- }).strict("Do not pass invalid properties to NextInjectManifestOptions!");
24
-
25
- const validateNextInjectManifestOptions = (input)=>{
26
- const result = nextInjectManifestOptions.safeParse(input, {
27
- errorMap: validationErrorMap
28
- });
29
- if (!result.success) {
30
- throw new SerwistConfigError({
31
- moduleName: "@serwist/next",
32
- message: JSON.stringify(result.error.format(), null, 2)
33
- });
34
- }
35
- return result.data;
36
- };
37
-
38
- export { validateNextInjectManifestOptions };
@@ -1 +0,0 @@
1
- {"version":3,"file":"serwist-config-error.d.ts","sourceRoot":"","sources":["../../src/lib/serwist-config-error.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;CAI/E"}
@@ -1,3 +0,0 @@
1
- import type { NextInjectManifestOptionsComplete } from "../types.js";
2
- export declare const validateNextInjectManifestOptions: (input: unknown) => NextInjectManifestOptionsComplete;
3
- //# sourceMappingURL=validate-next-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate-next-options.d.ts","sourceRoot":"","sources":["../../src/lib/validate-next-options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAGrE,eAAO,MAAM,iCAAiC,UAAW,OAAO,KAAG,iCAQlE,CAAC"}
@@ -1,240 +0,0 @@
1
- import { z } from "zod";
2
- export declare const nextInjectManifestPartial: z.ZodObject<{
3
- cacheOnNavigation: z.ZodDefault<z.ZodBoolean>;
4
- disable: z.ZodDefault<z.ZodBoolean>;
5
- register: z.ZodDefault<z.ZodBoolean>;
6
- reloadOnOnline: z.ZodDefault<z.ZodBoolean>;
7
- scope: z.ZodOptional<z.ZodString>;
8
- swUrl: z.ZodDefault<z.ZodString>;
9
- globPublicPatterns: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
10
- }, "strict", z.ZodTypeAny, {
11
- cacheOnNavigation: boolean;
12
- disable: boolean;
13
- register: boolean;
14
- reloadOnOnline: boolean;
15
- swUrl: string;
16
- globPublicPatterns: (string | string[]) & (string | string[] | undefined);
17
- scope?: string | undefined;
18
- }, {
19
- cacheOnNavigation?: boolean | undefined;
20
- disable?: boolean | undefined;
21
- register?: boolean | undefined;
22
- reloadOnOnline?: boolean | undefined;
23
- scope?: string | undefined;
24
- swUrl?: string | undefined;
25
- globPublicPatterns?: string | string[] | undefined;
26
- }>;
27
- export declare const nextInjectManifestOptions: z.ZodObject<Omit<{
28
- disablePrecacheManifest: z.ZodDefault<z.ZodBoolean>;
29
- maximumFileSizeToCacheInBytes: z.ZodDefault<z.ZodNumber>;
30
- additionalPrecacheEntries: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
31
- integrity: z.ZodOptional<z.ZodString>;
32
- revision: z.ZodNullable<z.ZodString>;
33
- url: z.ZodString;
34
- }, "strict", z.ZodTypeAny, {
35
- revision: string | null;
36
- url: string;
37
- integrity?: string | undefined;
38
- }, {
39
- revision: string | null;
40
- url: string;
41
- integrity?: string | undefined;
42
- }>]>, "many">>;
43
- dontCacheBustURLsMatching: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
44
- manifestTransforms: z.ZodOptional<z.ZodArray<z.ZodFunction<z.ZodTuple<[z.ZodArray<z.ZodObject<{
45
- integrity: z.ZodOptional<z.ZodString>;
46
- revision: z.ZodNullable<z.ZodString>;
47
- url: z.ZodString;
48
- size: z.ZodNumber;
49
- }, "strip", z.ZodTypeAny, {
50
- revision: string | null;
51
- url: string;
52
- size: number;
53
- integrity?: string | undefined;
54
- }, {
55
- revision: string | null;
56
- url: string;
57
- size: number;
58
- integrity?: string | undefined;
59
- }>, "many">, z.ZodOptional<z.ZodUnknown>], null>, z.ZodUnion<[z.ZodPromise<z.ZodObject<{
60
- manifest: z.ZodArray<z.ZodObject<{
61
- integrity: z.ZodOptional<z.ZodString>;
62
- revision: z.ZodNullable<z.ZodString>;
63
- url: z.ZodString;
64
- size: z.ZodNumber;
65
- }, "strip", z.ZodTypeAny, {
66
- revision: string | null;
67
- url: string;
68
- size: number;
69
- integrity?: string | undefined;
70
- }, {
71
- revision: string | null;
72
- url: string;
73
- size: number;
74
- integrity?: string | undefined;
75
- }>, "many">;
76
- warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
- }, "strict", z.ZodTypeAny, {
78
- manifest: {
79
- revision: string | null;
80
- url: string;
81
- size: number;
82
- integrity?: string | undefined;
83
- }[];
84
- warnings?: string[] | undefined;
85
- }, {
86
- manifest: {
87
- revision: string | null;
88
- url: string;
89
- size: number;
90
- integrity?: string | undefined;
91
- }[];
92
- warnings?: string[] | undefined;
93
- }>>, z.ZodObject<{
94
- manifest: z.ZodArray<z.ZodObject<{
95
- integrity: z.ZodOptional<z.ZodString>;
96
- revision: z.ZodNullable<z.ZodString>;
97
- url: z.ZodString;
98
- size: z.ZodNumber;
99
- }, "strip", z.ZodTypeAny, {
100
- revision: string | null;
101
- url: string;
102
- size: number;
103
- integrity?: string | undefined;
104
- }, {
105
- revision: string | null;
106
- url: string;
107
- size: number;
108
- integrity?: string | undefined;
109
- }>, "many">;
110
- warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111
- }, "strict", z.ZodTypeAny, {
112
- manifest: {
113
- revision: string | null;
114
- url: string;
115
- size: number;
116
- integrity?: string | undefined;
117
- }[];
118
- warnings?: string[] | undefined;
119
- }, {
120
- manifest: {
121
- revision: string | null;
122
- url: string;
123
- size: number;
124
- integrity?: string | undefined;
125
- }[];
126
- warnings?: string[] | undefined;
127
- }>]>>, "many">>;
128
- modifyURLPrefix: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
129
- injectionPoint: z.ZodDefault<z.ZodString>;
130
- swSrc: z.ZodString;
131
- exclude: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodAny], null>, z.ZodBoolean>]>, "many">>;
132
- chunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
- excludeChunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
134
- include: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.ZodAny], null>, z.ZodBoolean>]>, "many">>;
135
- compileSrc: z.ZodDefault<z.ZodBoolean>;
136
- webpackCompilationPlugins: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
137
- swDest: z.ZodString;
138
- cacheOnNavigation: z.ZodDefault<z.ZodBoolean>;
139
- disable: z.ZodDefault<z.ZodBoolean>;
140
- register: z.ZodDefault<z.ZodBoolean>;
141
- reloadOnOnline: z.ZodDefault<z.ZodBoolean>;
142
- scope: z.ZodOptional<z.ZodString>;
143
- swUrl: z.ZodDefault<z.ZodString>;
144
- globPublicPatterns: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
145
- }, "disablePrecacheManifest">, "strict", z.ZodTypeAny, {
146
- maximumFileSizeToCacheInBytes: number;
147
- injectionPoint: string;
148
- swSrc: string;
149
- exclude: (string | RegExp | ((args_0: any) => boolean))[];
150
- compileSrc: boolean;
151
- cacheOnNavigation: boolean;
152
- disable: boolean;
153
- register: boolean;
154
- reloadOnOnline: boolean;
155
- swUrl: string;
156
- globPublicPatterns: (string | string[]) & (string | string[] | undefined);
157
- swDest: string;
158
- additionalPrecacheEntries?: (string | {
159
- revision: string | null;
160
- url: string;
161
- integrity?: string | undefined;
162
- })[] | undefined;
163
- dontCacheBustURLsMatching?: RegExp | undefined;
164
- manifestTransforms?: ((args_0: {
165
- revision: string | null;
166
- url: string;
167
- size: number;
168
- integrity?: string | undefined;
169
- }[], args_1: unknown) => {
170
- manifest: {
171
- revision: string | null;
172
- url: string;
173
- size: number;
174
- integrity?: string | undefined;
175
- }[];
176
- warnings?: string[] | undefined;
177
- } | Promise<{
178
- manifest: {
179
- revision: string | null;
180
- url: string;
181
- size: number;
182
- integrity?: string | undefined;
183
- }[];
184
- warnings?: string[] | undefined;
185
- }>)[] | undefined;
186
- modifyURLPrefix?: Record<string, string> | undefined;
187
- chunks?: string[] | undefined;
188
- excludeChunks?: string[] | undefined;
189
- include?: (string | RegExp | ((args_0: any) => boolean))[] | undefined;
190
- webpackCompilationPlugins?: any[] | undefined;
191
- scope?: string | undefined;
192
- }, {
193
- swSrc: string;
194
- swDest: string;
195
- maximumFileSizeToCacheInBytes?: number | undefined;
196
- additionalPrecacheEntries?: (string | {
197
- revision: string | null;
198
- url: string;
199
- integrity?: string | undefined;
200
- })[] | undefined;
201
- dontCacheBustURLsMatching?: RegExp | undefined;
202
- manifestTransforms?: ((args_0: {
203
- revision: string | null;
204
- url: string;
205
- size: number;
206
- integrity?: string | undefined;
207
- }[], args_1: unknown) => {
208
- manifest: {
209
- revision: string | null;
210
- url: string;
211
- size: number;
212
- integrity?: string | undefined;
213
- }[];
214
- warnings?: string[] | undefined;
215
- } | Promise<{
216
- manifest: {
217
- revision: string | null;
218
- url: string;
219
- size: number;
220
- integrity?: string | undefined;
221
- }[];
222
- warnings?: string[] | undefined;
223
- }>)[] | undefined;
224
- modifyURLPrefix?: Record<string, string> | undefined;
225
- injectionPoint?: string | undefined;
226
- exclude?: (string | RegExp | ((args_0: any) => boolean))[] | undefined;
227
- chunks?: string[] | undefined;
228
- excludeChunks?: string[] | undefined;
229
- include?: (string | RegExp | ((args_0: any) => boolean))[] | undefined;
230
- compileSrc?: boolean | undefined;
231
- webpackCompilationPlugins?: any[] | undefined;
232
- cacheOnNavigation?: boolean | undefined;
233
- disable?: boolean | undefined;
234
- register?: boolean | undefined;
235
- reloadOnOnline?: boolean | undefined;
236
- swUrl?: string | undefined;
237
- globPublicPatterns?: string | string[] | undefined;
238
- scope?: string | undefined;
239
- }>;
240
- //# sourceMappingURL=next.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../src/schema/next.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;EAUmC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAImC,CAAC"}