nuxt-nightly 4.1.3-29318925.bbf3f729 → 4.1.3-29319074.339d0b58

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.
Files changed (2) hide show
  1. package/dist/index.mjs +14 -8
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -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 (!c.island) {
2204
- const type = `typeof ${genDynamicImport(isAbsolute(c.filePath) ? relative(baseDir, c.filePath).replace(NON_VUE_RE, "") : c.filePath.replace(NON_VUE_RE, ""), { wrapper: false })}['${c.export}']`;
2205
- const isServerOnly = c.mode === "server" && c.filePath !== serverPlaceholderPath && !app.components.some((other) => other.pascalName === c.pascalName && other.mode === "client");
2206
- componentTypes.push([
2207
- c.pascalName,
2208
- isServerOnly ? `IslandComponent<${type}>` : type
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-29318925.bbf3f729";
3830
+ const version = "4.1.3-29319074.339d0b58";
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-29318925.bbf3f729",
3
+ "version": "4.1.3-29319074.339d0b58",
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-29318925.bbf3f729",
71
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-29318925.bbf3f729",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.3-29319074.339d0b58",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-29319074.339d0b58",
72
72
  "@nuxt/telemetry": "^2.6.6",
73
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-29318925.bbf3f729",
73
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-29319074.339d0b58",
74
74
  "@unhead/vue": "^2.0.14",
75
75
  "@vue/shared": "^3.5.21",
76
76
  "c12": "^3.3.0",