@vizejs/nuxt 0.799.0 → 0.801.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 +8 -7
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ function registeredComponentPath(component, components) {
|
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/component-imports.ts
|
|
17
|
-
const COMPONENT_CALL_RE = /_?resolveComponent\s*\(\s*["'`]([^"'`]+)["'`]\s*(?:,\s*[^)]+)?\)/g;
|
|
17
|
+
const COMPONENT_CALL_RE = /(?<![\w$.])_?resolveComponent\s*\(\s*["'`]([^"'`]+)["'`]\s*(?:,\s*[^)]+)?\)/g;
|
|
18
18
|
const COMPONENTS_IMPORT_RE = /import\s+(?!type\b)\{([^}]*)\}\s+from\s+(["'])#components\2\s*;?/g;
|
|
19
19
|
const NUXT_ROUTE_ANNOUNCER_RE = /(?:^|[/\\])nuxt-route-announcer\.(?:[cm]?js|ts|vue)$/;
|
|
20
20
|
const IMPORT_SPECIFIER_RE = /^(type\s+)?([A-Za-z_$][\w$]*)(?:\s+as\s+([A-Za-z_$][\w$]*))?$/;
|
|
@@ -1526,12 +1526,13 @@ async function registerNuxtServerPlugin(rootDir, variants, registerLegacy) {
|
|
|
1526
1526
|
//#endregion
|
|
1527
1527
|
//#region src/source-component-transforms.ts
|
|
1528
1528
|
/**
|
|
1529
|
-
* Nuxt
|
|
1530
|
-
* transforms.
|
|
1531
|
-
*
|
|
1529
|
+
* Nuxt can resolve template components, lazy hydration included, through Vue
|
|
1530
|
+
* compiler node transforms. Nuxt 4.7 does so by default on every compatibility
|
|
1531
|
+
* version. Vize owns that compiler boundary and runs no Vue node transforms, so
|
|
1532
|
+
* select Nuxt's equivalent source transforms before the native compiler runs.
|
|
1533
|
+
* Older Nuxt releases ignore the key.
|
|
1532
1534
|
*/
|
|
1533
|
-
function selectNuxtSourceComponentTransforms(options
|
|
1534
|
-
if (nuxtMajor < 5) return;
|
|
1535
|
+
function selectNuxtSourceComponentTransforms(options) {
|
|
1535
1536
|
options.experimental ||= {};
|
|
1536
1537
|
options.experimental.compilerComponentResolution = false;
|
|
1537
1538
|
}
|
|
@@ -1645,7 +1646,7 @@ async function setupVizeNuxtModule(raw, nuxt) {
|
|
|
1645
1646
|
}
|
|
1646
1647
|
await setupLintInspector(options.lint, nuxt, compilerOptions, lintGeneration, nuxt.options.dev);
|
|
1647
1648
|
const usesVizeCompiler = shouldUseVizeCompiler(compilerOptions);
|
|
1648
|
-
if (usesVizeCompiler) selectNuxtSourceComponentTransforms(nuxt.options
|
|
1649
|
+
if (usesVizeCompiler) selectNuxtSourceComponentTransforms(nuxt.options);
|
|
1649
1650
|
if (compilerOptions !== false && compilerOptions.compatibility?.hostCompiler !== true) await setupNuxtViteCompiler(compilerOptions, nuxt, options.compiler);
|
|
1650
1651
|
let isNuxtBuild = false;
|
|
1651
1652
|
let isViteBuild = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.801.0",
|
|
4
4
|
"description": "Nuxt module for Vize - compiler, musea gallery, linter, and type checker",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@nuxt/kit": "3.21.8",
|
|
53
|
-
"@vizejs/native": "0.
|
|
54
|
-
"@vizejs/nuxt-lint-config": "0.
|
|
55
|
-
"@vizejs/vite-plugin": "0.
|
|
56
|
-
"@vizejs/vite-plugin-musea": "0.
|
|
57
|
-
"vize": "0.
|
|
53
|
+
"@vizejs/native": "0.801.0",
|
|
54
|
+
"@vizejs/nuxt-lint-config": "0.801.0",
|
|
55
|
+
"@vizejs/vite-plugin": "0.801.0",
|
|
56
|
+
"@vizejs/vite-plugin-musea": "0.801.0",
|
|
57
|
+
"vize": "0.801.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"jiti-nuxt2": "npm:jiti@1.21.7",
|
|
61
61
|
"oxlint": "1.78.0",
|
|
62
|
-
"oxlint-plugin-vize": "0.
|
|
62
|
+
"oxlint-plugin-vize": "0.801.0",
|
|
63
63
|
"typescript": "6.0.3",
|
|
64
64
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.5.0",
|
|
65
65
|
"vite-plus": "1.5.0",
|