@soubiran/vite 0.2.0 → 0.2.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.
@@ -42,7 +42,7 @@ interface Options$1 {
42
42
  /**
43
43
  * SEO and structured data configuration.
44
44
  */
45
- seo: {
45
+ seo?: {
46
46
  /**
47
47
  * Person information for Schema.org structured data.
48
48
  */
@@ -874,15 +874,15 @@ var vite_config_default = (title, hostname, options, config = {}) => {
874
874
  await shikiHighlight(md);
875
875
  },
876
876
  frontmatterPreprocess(frontmatter, frontmatterOptions, id, defaults) {
877
- createAssert(options.seo.assert?.rules)(id, frontmatter);
877
+ createAssert(options.seo?.assert?.rules)(id, frontmatter);
878
878
  og(id, frontmatter, hostname);
879
879
  canonical(id, frontmatter, hostname);
880
880
  structuredData(id, frontmatter, {
881
881
  name: title,
882
882
  hostname,
883
- person: options.seo.person ?? seo.person,
883
+ person: options.seo?.person ?? seo.person,
884
884
  extractPage: options.extractPage,
885
- getPageConfig: options.seo.structuredData?.pageConfig
885
+ getPageConfig: options.seo?.structuredData?.pageConfig
886
886
  });
887
887
  frontmatter.page = options.extractPage(id);
888
888
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soubiran/vite",
3
3
  "type": "module",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "author": "Estéban Soubiran <esteban@soubiran.dev>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/Barbapapazes",
@@ -58,7 +58,7 @@
58
58
  "vite": "npm:rolldown-vite@7.1.20",
59
59
  "vite-ssg": "^28.2.2",
60
60
  "vue-router": "^4.6.3",
61
- "@soubiran/ui": "0.2.0"
61
+ "@soubiran/ui": "0.2.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "tsdown": "^0.18.3"