@serwist/build 9.0.0-preview.11 → 9.0.0-preview.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +4 -4
- package/package.json +11 -11
- package/src/types.ts +4 -4
package/dist/types.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ export interface WebpackPartial {
|
|
|
155
155
|
* One or more specifiers used to exclude assets from the precache manifest.
|
|
156
156
|
* This is interpreted following
|
|
157
157
|
* [the same rules](https://webpack.js.org/configuration/module/#condition)
|
|
158
|
-
* as
|
|
158
|
+
* as webpack's standard `exclude` option.
|
|
159
159
|
* @default
|
|
160
160
|
* ```
|
|
161
161
|
* [/\.map$/, /^manifest.*\.js$]
|
|
@@ -171,7 +171,7 @@ export interface WebpackPartial {
|
|
|
171
171
|
* One or more specifiers used to include assets in the precache manifest.
|
|
172
172
|
* This is interpreted following
|
|
173
173
|
* [the same rules](https://webpack.js.org/configuration/module/#condition)
|
|
174
|
-
* as
|
|
174
|
+
* as webpack's standard `include` option.
|
|
175
175
|
*/
|
|
176
176
|
include?: (string | RegExp | ((arg0: any) => boolean))[];
|
|
177
177
|
}
|
|
@@ -195,7 +195,7 @@ export interface OptionalSwDestPartial {
|
|
|
195
195
|
export type OptionalSwDestResolved = OptionalSwDestPartial;
|
|
196
196
|
export interface WebpackInjectManifestPartial {
|
|
197
197
|
/**
|
|
198
|
-
* When `true` (the default), the `swSrc` file will be compiled by
|
|
198
|
+
* When `true` (the default), the `swSrc` file will be compiled by webpack.
|
|
199
199
|
* When `false`, compilation will not occur (and `webpackCompilationPlugins`
|
|
200
200
|
* can't be used.) Set to `false` if you want to inject the manifest into,
|
|
201
201
|
* e.g., a JSON file.
|
|
@@ -203,7 +203,7 @@ export interface WebpackInjectManifestPartial {
|
|
|
203
203
|
*/
|
|
204
204
|
compileSrc?: boolean;
|
|
205
205
|
/**
|
|
206
|
-
* Optional
|
|
206
|
+
* Optional webpack plugins that will be used when compiling the `swSrc`
|
|
207
207
|
* input file. Only valid if `compileSrc` is `true`.
|
|
208
208
|
*/
|
|
209
209
|
webpackCompilationPlugins?: any[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/build",
|
|
3
|
-
"version": "9.0.0-preview.
|
|
3
|
+
"version": "9.0.0-preview.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A module that integrates into your build process, helping you generate a manifest of local files that should be precached.",
|
|
6
6
|
"files": [
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"source-map": "0.8.0-beta.0",
|
|
56
56
|
"upath": "2.0.1",
|
|
57
57
|
"zod": "3.22.4",
|
|
58
|
-
"@serwist/background-sync": "9.0.0-preview.
|
|
59
|
-
"@serwist/broadcast-update": "9.0.0-preview.
|
|
60
|
-
"@serwist/cacheable-response": "9.0.0-preview.
|
|
61
|
-
"@serwist/core": "9.0.0-preview.
|
|
62
|
-
"@serwist/expiration": "9.0.0-preview.
|
|
63
|
-
"@serwist/google-analytics": "9.0.0-preview.
|
|
64
|
-
"@serwist/precaching": "9.0.0-preview.
|
|
65
|
-
"@serwist/routing": "9.0.0-preview.
|
|
58
|
+
"@serwist/background-sync": "9.0.0-preview.12",
|
|
59
|
+
"@serwist/broadcast-update": "9.0.0-preview.12",
|
|
60
|
+
"@serwist/cacheable-response": "9.0.0-preview.12",
|
|
61
|
+
"@serwist/core": "9.0.0-preview.12",
|
|
62
|
+
"@serwist/expiration": "9.0.0-preview.12",
|
|
63
|
+
"@serwist/google-analytics": "9.0.0-preview.12",
|
|
64
|
+
"@serwist/precaching": "9.0.0-preview.12",
|
|
65
|
+
"@serwist/routing": "9.0.0-preview.12"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/common-tags": "1.8.4",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"@types/stringify-object": "4.0.5",
|
|
72
72
|
"type-fest": "4.10.2",
|
|
73
73
|
"typescript": "5.4.0-dev.20240206",
|
|
74
|
-
"@serwist/constants": "9.0.0-preview.
|
|
75
|
-
"@serwist/utils": "9.0.0-preview.
|
|
74
|
+
"@serwist/constants": "9.0.0-preview.12",
|
|
75
|
+
"@serwist/utils": "9.0.0-preview.12"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"typescript": ">=5.0.0"
|
package/src/types.ts
CHANGED
|
@@ -175,7 +175,7 @@ export interface WebpackPartial {
|
|
|
175
175
|
* One or more specifiers used to exclude assets from the precache manifest.
|
|
176
176
|
* This is interpreted following
|
|
177
177
|
* [the same rules](https://webpack.js.org/configuration/module/#condition)
|
|
178
|
-
* as
|
|
178
|
+
* as webpack's standard `exclude` option.
|
|
179
179
|
* @default
|
|
180
180
|
* ```
|
|
181
181
|
* [/\.map$/, /^manifest.*\.js$]
|
|
@@ -191,7 +191,7 @@ export interface WebpackPartial {
|
|
|
191
191
|
* One or more specifiers used to include assets in the precache manifest.
|
|
192
192
|
* This is interpreted following
|
|
193
193
|
* [the same rules](https://webpack.js.org/configuration/module/#condition)
|
|
194
|
-
* as
|
|
194
|
+
* as webpack's standard `include` option.
|
|
195
195
|
*/
|
|
196
196
|
include?: (string | RegExp | ((arg0: any) => boolean))[];
|
|
197
197
|
}
|
|
@@ -221,7 +221,7 @@ export type OptionalSwDestResolved = OptionalSwDestPartial;
|
|
|
221
221
|
|
|
222
222
|
export interface WebpackInjectManifestPartial {
|
|
223
223
|
/**
|
|
224
|
-
* When `true` (the default), the `swSrc` file will be compiled by
|
|
224
|
+
* When `true` (the default), the `swSrc` file will be compiled by webpack.
|
|
225
225
|
* When `false`, compilation will not occur (and `webpackCompilationPlugins`
|
|
226
226
|
* can't be used.) Set to `false` if you want to inject the manifest into,
|
|
227
227
|
* e.g., a JSON file.
|
|
@@ -232,7 +232,7 @@ export interface WebpackInjectManifestPartial {
|
|
|
232
232
|
// represented in TypeScript. It's enforced via custom runtime validation
|
|
233
233
|
// logic and needs to be documented.
|
|
234
234
|
/**
|
|
235
|
-
* Optional
|
|
235
|
+
* Optional webpack plugins that will be used when compiling the `swSrc`
|
|
236
236
|
* input file. Only valid if `compileSrc` is `true`.
|
|
237
237
|
*/
|
|
238
238
|
webpackCompilationPlugins?: any[];
|