nuxt-nightly 4.1.3-29321784.f1e5a2d4 → 4.1.3-29323244.f5a44742

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 +6 -6
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -3778,11 +3778,11 @@ const importsModule = defineNuxtModule({
3778
3778
  function addDeclarationTemplates(ctx, options) {
3779
3779
  const nuxt = useNuxt();
3780
3780
  const resolvedImportPathMap = /* @__PURE__ */ new Map();
3781
- const r = ({ from }) => resolvedImportPathMap.get(from);
3782
- const SUPPORTED_EXTENSION_RE = new RegExp(`\\.(${nuxt.options.extensions.map((i) => i.replace(".", "")).join("|")})$`);
3781
+ const r = (i) => resolvedImportPathMap.get(i.typeFrom || i.from);
3782
+ const SUPPORTED_EXTENSION_RE = new RegExp(`\\.(?:${nuxt.options.extensions.map((i) => i.replace(".", "")).join("|")})$`);
3783
3783
  const importPaths = nuxt.options.modulesDir.map((dir) => directoryToURL(dir));
3784
3784
  async function cacheImportPaths(imports) {
3785
- const importSource = Array.from(new Set(imports.map((i) => i.from)));
3785
+ const importSource = Array.from(new Set(imports.map((i) => i.typeFrom || i.from)));
3786
3786
  await Promise.all(importSource.map(async (from) => {
3787
3787
  if (resolvedImportPathMap.has(from) || nuxt._dependencies?.has(from)) {
3788
3788
  return;
@@ -3827,7 +3827,7 @@ function addDeclarationTemplates(ctx, options) {
3827
3827
  });
3828
3828
  }
3829
3829
 
3830
- const version = "4.1.3-29321784.f1e5a2d4";
3830
+ const version = "4.1.3-29323244.f5a44742";
3831
3831
 
3832
3832
  const createImportProtectionPatterns = (nuxt, options) => {
3833
3833
  const patterns = [];
@@ -3983,9 +3983,9 @@ const DevOnlyPlugin = (options) => createUnplugin(() => {
3983
3983
  if (n.name !== "template") {
3984
3984
  return false;
3985
3985
  }
3986
- return "fallback" in n.attributes || "#fallback" in n.attributes;
3986
+ return "fallback" in n.attributes || "#fallback" in n.attributes || "v-slot:fallback" in n.attributes;
3987
3987
  });
3988
- const replacement = fallback ? match[0].slice(fallback.loc[0].end, fallback.loc[fallback.loc.length - 1].start) : "";
3988
+ const replacement = fallback ? match[0].slice(fallback.loc[0].end, fallback.loc.at(-1).start) : "";
3989
3989
  s.overwrite(match.index, match.index + match[0].length, replacement);
3990
3990
  }
3991
3991
  if (s.hasChanged()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.1.3-29321784.f1e5a2d4",
3
+ "version": "4.1.3-29323244.f5a44742",
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-29321784.f1e5a2d4",
71
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-29321784.f1e5a2d4",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.3-29323244.f5a44742",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-29323244.f5a44742",
72
72
  "@nuxt/telemetry": "^2.6.6",
73
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-29321784.f1e5a2d4",
73
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.3-29323244.f5a44742",
74
74
  "@unhead/vue": "^2.0.14",
75
75
  "@vue/shared": "^3.5.21",
76
76
  "c12": "^3.3.0",
@@ -118,7 +118,7 @@
118
118
  "ultrahtml": "^1.6.0",
119
119
  "uncrypto": "^0.1.3",
120
120
  "unctx": "^2.4.1",
121
- "unimport": "^5.2.0",
121
+ "unimport": "^5.4.1",
122
122
  "unplugin": "^2.3.10",
123
123
  "unplugin-vue-router": "^0.15.0",
124
124
  "unstorage": "^1.17.1",