@vizejs/nuxt 0.165.0 → 0.166.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/dist/index.mjs +11 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -393,6 +393,7 @@ function injectNuxtI18nHelpers(code) {
|
|
|
393
393
|
}
|
|
394
394
|
//#endregion
|
|
395
395
|
//#region src/utils.ts
|
|
396
|
+
const NUXT_OG_IMAGE_RENDERER_SFC_EXCLUDE = /\.takumi\.vue(?:\?|$)/;
|
|
396
397
|
function normalizeUrlPrefix(value) {
|
|
397
398
|
const withLeadingSlash = value.startsWith("/") ? value : `/${value}`;
|
|
398
399
|
return withLeadingSlash.endsWith("/") ? withLeadingSlash : `${withLeadingSlash}/`;
|
|
@@ -408,9 +409,18 @@ function buildNuxtCompilerOptions(rootDir, baseURL = "/", buildAssetsDir = "/_nu
|
|
|
408
409
|
root: rootDir,
|
|
409
410
|
scanPatterns: []
|
|
410
411
|
};
|
|
411
|
-
|
|
412
|
+
if (overrides.customRenderer === true && overrides.exclude !== void 0) defaults.exclude = overrides.exclude;
|
|
413
|
+
else if (overrides.customRenderer !== true) defaults.exclude = mergeNuxtCompilerPatterns(NUXT_OG_IMAGE_RENDERER_SFC_EXCLUDE, overrides.exclude);
|
|
414
|
+
for (const [key, value] of Object.entries(overrides)) {
|
|
415
|
+
if (key === "exclude") continue;
|
|
416
|
+
if (value !== void 0) defaults[key] = value;
|
|
417
|
+
}
|
|
412
418
|
return defaults;
|
|
413
419
|
}
|
|
420
|
+
function mergeNuxtCompilerPatterns(defaultPattern, userPattern) {
|
|
421
|
+
if (userPattern == null) return defaultPattern;
|
|
422
|
+
return [defaultPattern, ...Array.isArray(userPattern) ? userPattern : [userPattern]];
|
|
423
|
+
}
|
|
414
424
|
function isVizeVirtualVueModuleId(id) {
|
|
415
425
|
return id.startsWith("\0") && /\.vue\.ts(?:\?|$)/.test(id);
|
|
416
426
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.166.0",
|
|
4
4
|
"description": "Nuxt module for Vize - compiler, musea gallery, linter, and type checker",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@nuxt/kit": "4.4.6",
|
|
44
|
-
"@vizejs/musea-nuxt": "0.
|
|
45
|
-
"@vizejs/vite-plugin": "0.
|
|
46
|
-
"@vizejs/vite-plugin-musea": "0.
|
|
47
|
-
"vize": "0.
|
|
44
|
+
"@vizejs/musea-nuxt": "0.166.0",
|
|
45
|
+
"@vizejs/vite-plugin": "0.166.0",
|
|
46
|
+
"@vizejs/vite-plugin-musea": "0.166.0",
|
|
47
|
+
"vize": "0.166.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "6.0.3",
|