svelte-sitemap 3.2.0-next.0 → 3.2.0-next.1
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 +5 -2
- package/package.js +1 -1
- package/package.json +2 -2
- package/vite.d.ts +2 -2
- package/vite.js +2 -2
- package/vite.js.map +1 -1
package/README.md
CHANGED
|
@@ -103,11 +103,14 @@ Add the plugin to your `vite.config.ts`:
|
|
|
103
103
|
```typescript
|
|
104
104
|
// vite.config.ts
|
|
105
105
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
106
|
-
import {
|
|
106
|
+
import { svelteSitemap } from 'svelte-sitemap/vite'; // <-- Add svelte-sitemap vite plugin
|
|
107
107
|
import { defineConfig } from 'vite';
|
|
108
108
|
|
|
109
109
|
export default defineConfig({
|
|
110
|
-
plugins: [
|
|
110
|
+
plugins: [
|
|
111
|
+
sveltekit(),
|
|
112
|
+
svelteSitemap({ domain: 'https://example.com' }) // <-- Configure the plugin with your options
|
|
113
|
+
]
|
|
111
114
|
});
|
|
112
115
|
```
|
|
113
116
|
|
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-sitemap",
|
|
3
|
-
"version": "3.2.0-next.
|
|
3
|
+
"version": "3.2.0-next.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Small helper which scans your Svelte routes folder and generates static sitemap.xml",
|
|
6
6
|
"author": "BART! <bart@bartweb.cz>",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"fast-glob": "^3.3.3",
|
|
18
|
-
"jiti": "^2.
|
|
18
|
+
"jiti": "^2.7.0",
|
|
19
19
|
"minimist": "^1.2.8",
|
|
20
20
|
"xmlbuilder2": "^4.0.3"
|
|
21
21
|
},
|
package/vite.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { OptionsSvelteSitemap } from "./dto/global.interface.js";
|
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/vite.d.ts
|
|
5
|
-
declare function
|
|
5
|
+
declare function svelteSitemap(options: OptionsSvelteSitemap): Plugin;
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { svelteSitemap };
|
|
8
8
|
//# sourceMappingURL=vite.d.ts.map
|
package/vite.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSitemap } from "./index.js";
|
|
2
2
|
//#region src/vite.ts
|
|
3
|
-
function
|
|
3
|
+
function svelteSitemap(options) {
|
|
4
4
|
return {
|
|
5
5
|
name: "svelte-sitemap",
|
|
6
6
|
apply: "build",
|
|
@@ -10,6 +10,6 @@ function svelteKitSitemap(options) {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
13
|
+
export { svelteSitemap };
|
|
14
14
|
|
|
15
15
|
//# sourceMappingURL=vite.js.map
|
package/vite.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.js","names":[],"sources":["../src/vite.ts"],"sourcesContent":["import type { Plugin } from 'vite';\nimport type { OptionsSvelteSitemap } from './dto/index.js';\nimport { createSitemap } from './index.js';\n\nexport function
|
|
1
|
+
{"version":3,"file":"vite.js","names":[],"sources":["../src/vite.ts"],"sourcesContent":["import type { Plugin } from 'vite';\nimport type { OptionsSvelteSitemap } from './dto/index.js';\nimport { createSitemap } from './index.js';\n\nexport function svelteSitemap(options: OptionsSvelteSitemap): Plugin {\n return {\n name: 'svelte-sitemap',\n apply: 'build',\n closeBundle: async () => {\n await createSitemap(options);\n }\n };\n}\n"],"mappings":";;AAIA,SAAgB,cAAc,SAAuC;AACnE,QAAO;EACL,MAAM;EACN,OAAO;EACP,aAAa,YAAY;AACvB,SAAM,cAAc,QAAQ;;EAE/B"}
|