@vituum/vite-plugin-pug 2.0.0-next.1 → 2.0.0
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/README.md +2 -2
- package/index.js +2 -1
- package/package.json +9 -9
- package/types/index.d.ts +1 -1
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -82,7 +82,7 @@ const renderTemplate = async ({ filename, server, resolvedConfig }, content, opt
|
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* @param {import('@vituum/vite-plugin-pug/types').PluginUserConfig} options
|
|
85
|
-
* @returns
|
|
85
|
+
* @returns {import('vite').Plugin[]}
|
|
86
86
|
*/
|
|
87
87
|
const plugin = (options = {}) => {
|
|
88
88
|
let resolvedConfig
|
|
@@ -118,6 +118,7 @@ const plugin = (options = {}) => {
|
|
|
118
118
|
},
|
|
119
119
|
transformIndexHtml: {
|
|
120
120
|
order: 'pre',
|
|
121
|
+
/** @returns {Promise<string | Object>} */
|
|
121
122
|
async handler(content, { path, filename, server }) {
|
|
122
123
|
return pluginTransform(content, { path, filename, server }, { name, options, resolvedConfig, renderTemplate })
|
|
123
124
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vituum/vite-plugin-pug",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"pug": "^3.0",
|
|
15
|
-
"vituum": "^2.0
|
|
15
|
+
"vituum": "^2.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@eslint/js": "^
|
|
19
|
-
"@stylistic/eslint-plugin": "^5.
|
|
20
|
-
"@types/node": "^25.
|
|
21
|
-
"eslint": "^
|
|
22
|
-
"globals": "^17.
|
|
18
|
+
"@eslint/js": "^10.0",
|
|
19
|
+
"@stylistic/eslint-plugin": "^5.10",
|
|
20
|
+
"@types/node": "^25.5",
|
|
21
|
+
"eslint": "^10.0",
|
|
22
|
+
"globals": "^17.4",
|
|
23
23
|
"typescript": "^5.9",
|
|
24
|
-
"vite": "^8.0
|
|
24
|
+
"vite": "^8.0"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": "^
|
|
37
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
package/types/index.d.ts
CHANGED