@vizejs/nuxt 0.708.0 → 0.710.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.d.mts +1 -0
- package/dist/index.mjs +13 -0
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1514,6 +1514,18 @@ async function registerNuxtServerPlugin(rootDir, variants, registerLegacy) {
|
|
|
1514
1514
|
await registerLegacy(variants.nitro2);
|
|
1515
1515
|
}
|
|
1516
1516
|
//#endregion
|
|
1517
|
+
//#region src/source-component-transforms.ts
|
|
1518
|
+
/**
|
|
1519
|
+
* Nuxt 5 defaults to resolving template components through Vue compiler node
|
|
1520
|
+
* transforms. Vize owns that compiler boundary, so select Nuxt's equivalent
|
|
1521
|
+
* source transform before the native compiler runs.
|
|
1522
|
+
*/
|
|
1523
|
+
function selectNuxtSourceComponentTransforms(options, nuxtMajor) {
|
|
1524
|
+
if (nuxtMajor < 5) return;
|
|
1525
|
+
options.experimental ||= {};
|
|
1526
|
+
options.experimental.compilerComponentResolution = false;
|
|
1527
|
+
}
|
|
1528
|
+
//#endregion
|
|
1517
1529
|
//#region src/index.ts
|
|
1518
1530
|
const VIZE_NUXT_AUTO_IMPORT_PATCHED = "__vizeNuxtAutoImportPatched";
|
|
1519
1531
|
const moduleMeta = {
|
|
@@ -1623,6 +1635,7 @@ async function setupVizeNuxtModule(raw, nuxt) {
|
|
|
1623
1635
|
}
|
|
1624
1636
|
await setupLintInspector(options.lint, nuxt, compilerOptions, lintGeneration, nuxt.options.dev);
|
|
1625
1637
|
const usesVizeCompiler = shouldUseVizeCompiler(compilerOptions);
|
|
1638
|
+
if (usesVizeCompiler) selectNuxtSourceComponentTransforms(nuxt.options, detectedNuxtMajor);
|
|
1626
1639
|
if (compilerOptions !== false && compilerOptions.compatibility?.hostCompiler !== true) await setupNuxtViteCompiler(compilerOptions, nuxt, options.compiler);
|
|
1627
1640
|
let isNuxtBuild = false;
|
|
1628
1641
|
let isViteBuild = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.710.0",
|
|
4
4
|
"description": "Nuxt module for Vize - compiler, musea gallery, linter, and type checker",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@nuxt/kit": "3.21.8",
|
|
52
|
-
"@vizejs/native": "0.
|
|
53
|
-
"@vizejs/nuxt-lint-config": "0.
|
|
54
|
-
"@vizejs/vite-plugin": "0.
|
|
55
|
-
"@vizejs/vite-plugin-musea": "0.
|
|
56
|
-
"vize": "0.
|
|
52
|
+
"@vizejs/native": "0.710.0",
|
|
53
|
+
"@vizejs/nuxt-lint-config": "0.710.0",
|
|
54
|
+
"@vizejs/vite-plugin": "0.710.0",
|
|
55
|
+
"@vizejs/vite-plugin-musea": "0.710.0",
|
|
56
|
+
"vize": "0.710.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"jiti-nuxt2": "npm:jiti@1.21.7",
|
|
60
|
-
"oxlint-plugin-vize": "0.
|
|
60
|
+
"oxlint-plugin-vize": "0.710.0",
|
|
61
61
|
"typescript": "6.0.3",
|
|
62
62
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.3.0",
|
|
63
63
|
"vite-plus": "1.3.0",
|