vite-plugin-sitemap 0.1.3 → 0.1.4

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.mjs CHANGED
@@ -25,14 +25,14 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
25
25
  throw new Error('Dynamic require of "' + x + '" is not supported');
26
26
  });
27
27
 
28
- // node_modules/.pnpm/tsup@5.12.6_typescript@4.6.4/node_modules/tsup/assets/esm_shims.js
28
+ // node_modules/.pnpm/tsup@5.12.7_typescript@4.6.4/node_modules/tsup/assets/esm_shims.js
29
29
  import { fileURLToPath } from "url";
30
30
  import path from "path";
31
31
  var getFilename = () => fileURLToPath(import.meta.url);
32
32
  var getDirname = () => path.dirname(getFilename());
33
33
  var __dirname = /* @__PURE__ */ getDirname();
34
34
 
35
- // node_modules/.pnpm/sitemap-ts@0.1.5/node_modules/sitemap-ts/dist/index.mjs
35
+ // node_modules/.pnpm/sitemap-ts@0.1.6/node_modules/sitemap-ts/dist/index.mjs
36
36
  import require$$0$1, { writeFileSync } from "fs";
37
37
  import require$$0 from "stream";
38
38
  import require$$2 from "readline";
@@ -3532,6 +3532,7 @@ function resolveOptions(userOptions) {
3532
3532
  return Object.assign({
3533
3533
  hostname: "http://localhost/",
3534
3534
  dynamicRoutes: [],
3535
+ exclude: [],
3535
3536
  outDir: "dist",
3536
3537
  changefreq: "daily",
3537
3538
  priority: 1,
@@ -8307,7 +8308,7 @@ function getRoutes(options) {
8307
8308
  return slash$1(join("/", parsedRoute.dir, parsedRoute.name));
8308
8309
  }),
8309
8310
  ...options.dynamicRoutes.map((route) => slash$1(join("/", join(parse$5(route).dir, parse$5(route).name))))
8310
- ];
8311
+ ].filter((route) => !options.exclude.includes(route));
8311
8312
  }
8312
8313
  function getFormattedSitemap(options, routes) {
8313
8314
  return routes.map((route) => ({