nuxt-nightly 4.1.3-29319005.b63adf67 → 4.1.3-29319182.9016c0de
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 +17 -11
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2157,13 +2157,13 @@ export default defineNuxtPlugin({
|
|
|
2157
2157
|
const componentNamesTemplate = {
|
|
2158
2158
|
filename: "component-names.mjs",
|
|
2159
2159
|
getContents({ app }) {
|
|
2160
|
-
const componentNames =
|
|
2160
|
+
const componentNames = /* @__PURE__ */ new Set();
|
|
2161
2161
|
for (const c of app.components) {
|
|
2162
2162
|
if (!c.island) {
|
|
2163
|
-
componentNames.
|
|
2163
|
+
componentNames.add(c.pascalName);
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
|
-
return `export const componentNames = ${JSON.stringify(componentNames)}`;
|
|
2166
|
+
return `export const componentNames = ${JSON.stringify([...componentNames])}`;
|
|
2167
2167
|
}
|
|
2168
2168
|
};
|
|
2169
2169
|
const componentsIslandsTemplate = {
|
|
@@ -2200,14 +2200,20 @@ function resolveComponentTypes(app, baseDir) {
|
|
|
2200
2200
|
const serverPlaceholderPath = resolve(distDir, "app/components/server-placeholder");
|
|
2201
2201
|
const componentTypes = [];
|
|
2202
2202
|
for (const c of app.components) {
|
|
2203
|
-
if (
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2203
|
+
if (c.island) {
|
|
2204
|
+
continue;
|
|
2205
|
+
}
|
|
2206
|
+
let type = `typeof ${genDynamicImport(isAbsolute(c.filePath) ? relative(baseDir, c.filePath).replace(NON_VUE_RE, "") : c.filePath.replace(NON_VUE_RE, ""), { wrapper: false })}['${c.export}']`;
|
|
2207
|
+
if (c.mode === "server") {
|
|
2208
|
+
if (app.components.some((other) => other.pascalName === c.pascalName && other.mode === "client")) {
|
|
2209
|
+
if (c.filePath.startsWith(serverPlaceholderPath)) {
|
|
2210
|
+
continue;
|
|
2211
|
+
}
|
|
2212
|
+
} else {
|
|
2213
|
+
type = `IslandComponent<${type}>`;
|
|
2214
|
+
}
|
|
2210
2215
|
}
|
|
2216
|
+
componentTypes.push([c.pascalName, type]);
|
|
2211
2217
|
}
|
|
2212
2218
|
return componentTypes;
|
|
2213
2219
|
}
|
|
@@ -3821,7 +3827,7 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
3821
3827
|
});
|
|
3822
3828
|
}
|
|
3823
3829
|
|
|
3824
|
-
const version = "4.1.3-
|
|
3830
|
+
const version = "4.1.3-29319182.9016c0de";
|
|
3825
3831
|
|
|
3826
3832
|
const createImportProtectionPatterns = (nuxt, options) => {
|
|
3827
3833
|
const patterns = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-nightly",
|
|
3
|
-
"version": "4.1.3-
|
|
3
|
+
"version": "4.1.3-29319182.9016c0de",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
|
|
68
68
|
"@nuxt/devalue": "^2.0.2",
|
|
69
69
|
"@nuxt/devtools": "^2.6.3",
|
|
70
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.3-
|
|
71
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-
|
|
70
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.3-29319182.9016c0de",
|
|
71
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-29319182.9016c0de",
|
|
72
72
|
"@nuxt/telemetry": "^2.6.6",
|
|
73
|
-
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-
|
|
73
|
+
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-29319182.9016c0de",
|
|
74
74
|
"@unhead/vue": "^2.0.14",
|
|
75
75
|
"@vue/shared": "^3.5.21",
|
|
76
76
|
"c12": "^3.3.0",
|