fimo-vite 2.11.0-staging.4 → 2.11.0-staging.6

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.
@@ -60,11 +60,11 @@ export default function fimoConfigPlugin() {
60
60
  }
61
61
  /** A browser cannot read `FIMO_SITE_URL`, so the build writes it into the config browser code imports. */
62
62
  function withPlatformSiteUrl(raw) {
63
- const url = resolveSiteUrl();
64
- if (!url) {
63
+ const config = JSON.parse(raw);
64
+ const url = resolveSiteUrl(config.seo?.url);
65
+ if (!url || url === config.seo?.url) {
65
66
  return raw;
66
67
  }
67
- const config = JSON.parse(raw);
68
68
  return JSON.stringify({ ...config, seo: { ...config.seo, url } });
69
69
  }
70
70
  function readHtmlLang(configPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fimo-vite",
3
- "version": "2.11.0-staging.4",
3
+ "version": "2.11.0-staging.6",
4
4
  "description": "Framework-neutral Fimo Vite plugin. Pairs with the fimo package at the same version.",
5
5
  "files": [
6
6
  "dist/",
@@ -31,16 +31,16 @@
31
31
  "oxc-parser": "^0.118.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@fimo/tsconfig": "2.11.0-staging.4",
34
+ "@fimo/tsconfig": "2.11.0-staging.6",
35
35
  "@types/node": "22.18.6",
36
- "fimo": "2.11.0-staging.4",
36
+ "fimo": "2.11.0-staging.6",
37
37
  "typescript": "7.0.2",
38
38
  "vite": "8.3.5",
39
39
  "vite7": "npm:vite@^7.3.7",
40
40
  "vitest": "5.1.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "fimo": "2.11.0-staging.4",
43
+ "fimo": "2.11.0-staging.6",
44
44
  "vite": "^7.0.0 || ^8.0.0"
45
45
  },
46
46
  "engines": {