@serwist/vite 9.0.0-preview.25 → 9.0.0-preview.26
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/index.js +1 -1
- package/package.json +7 -7
- package/src/lib/types.ts +5 -5
- package/src/plugins/main.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { validationErrorMap, SerwistConfigError } from '@serwist/build/schema';
|
|
|
7
7
|
import { normalizePath } from 'vite';
|
|
8
8
|
import process from 'node:process';
|
|
9
9
|
|
|
10
|
-
var version = "9.0.0-preview.
|
|
10
|
+
var version = "9.0.0-preview.26";
|
|
11
11
|
|
|
12
12
|
const logSerwistResult = (buildResult, viteOptions)=>{
|
|
13
13
|
const { logLevel = "info" } = viteOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/vite",
|
|
3
|
-
"version": "9.0.0-preview.
|
|
3
|
+
"version": "9.0.0-preview.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A module that integrates Serwist into your Vite application.",
|
|
6
6
|
"files": [
|
|
@@ -71,18 +71,18 @@
|
|
|
71
71
|
"glob": "10.3.12",
|
|
72
72
|
"kolorist": "1.8.0",
|
|
73
73
|
"zod": "3.22.4",
|
|
74
|
-
"@serwist/build": "9.0.0-preview.
|
|
75
|
-
"serwist": "9.0.0-preview.
|
|
76
|
-
"@serwist/window": "9.0.0-preview.
|
|
74
|
+
"@serwist/build": "9.0.0-preview.26",
|
|
75
|
+
"serwist": "9.0.0-preview.26",
|
|
76
|
+
"@serwist/window": "9.0.0-preview.26"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/node": "20.12.7",
|
|
80
80
|
"rollup": "4.14.3",
|
|
81
81
|
"typescript": "5.5.0-dev.20240415",
|
|
82
82
|
"vite": "5.2.8",
|
|
83
|
-
"
|
|
84
|
-
"@serwist/
|
|
85
|
-
"serwist": "9.0.0-preview.
|
|
83
|
+
"serwist": "9.0.0-preview.26",
|
|
84
|
+
"@serwist/configs": "9.0.0-preview.26",
|
|
85
|
+
"@serwist/utils": "9.0.0-preview.26"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"typescript": ">=5.0.0",
|
package/src/lib/types.ts
CHANGED
|
@@ -106,8 +106,8 @@ export interface InjectManifestOptionsComplete
|
|
|
106
106
|
export interface Hooks {
|
|
107
107
|
/**
|
|
108
108
|
* Allows you to run some logic before the service worker is built.
|
|
109
|
-
* @param options
|
|
110
|
-
* @returns
|
|
109
|
+
* @param options
|
|
110
|
+
* @returns
|
|
111
111
|
*/
|
|
112
112
|
beforeBuildServiceWorker?: (options: PluginOptionsComplete) => void | Promise<void>;
|
|
113
113
|
/**
|
|
@@ -116,9 +116,9 @@ export interface Hooks {
|
|
|
116
116
|
closeBundleOrder?: "pre" | "post" | null;
|
|
117
117
|
/**
|
|
118
118
|
* Allows you to configure the options of Serwist and Vite. Useful when there is a dependency between the two.
|
|
119
|
-
* @param viteOptions
|
|
120
|
-
* @param options
|
|
121
|
-
* @returns
|
|
119
|
+
* @param viteOptions
|
|
120
|
+
* @param options
|
|
121
|
+
* @returns
|
|
122
122
|
*/
|
|
123
123
|
configureOptions?: (viteOptions: ResolvedConfig, options: PluginOptions) => void | Promise<void>;
|
|
124
124
|
}
|
package/src/plugins/main.ts
CHANGED
|
@@ -2,7 +2,7 @@ import path from "node:path";
|
|
|
2
2
|
|
|
3
3
|
import type { Plugin, UserConfig } from "vite";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { RESOLVED_SERWIST_VIRTUAL, SERWIST_VIRTUAL } from "../lib/constants.js";
|
|
6
6
|
import type { SerwistViteContext } from "../lib/context.js";
|
|
7
7
|
import { resolveOptions } from "../lib/options.js";
|
|
8
8
|
import type { SerwistViteApi } from "../lib/types.js";
|