nuxt-nightly 4.2.0-29345549.185025b3 → 4.2.0-29347981.b7ed1d31

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.
@@ -349,7 +349,6 @@ export function defineNuxtLink(options) {
349
349
  }, slots.default?.());
350
350
  };
351
351
  }
352
- // }) as unknown as DefineComponent<NuxtLinkProps, object, object, ComputedOptions, MethodOptions, object, object, EmitsOptions, string, object, NuxtLinkProps, object, SlotsType<NuxtLinkSlots>>
353
352
  });
354
353
  }
355
354
  export default /* @__PURE__ */ defineNuxtLink(nuxtLinkDefaults);
package/dist/index.mjs CHANGED
@@ -2392,7 +2392,7 @@ function warnAboutDuplicateComponent(componentName, filePath, duplicatePath) {
2392
2392
  }
2393
2393
  const LAZY_COMPONENT_NAME_REGEX = /^Lazy(?=[A-Z])/;
2394
2394
 
2395
- const REPLACE_COMPONENT_TO_DIRECT_IMPORT_RE = /(?<=[\s(=;])_?resolveComponent\s*\(\s*(?<quote>["'`])(?<lazy>lazy-|Lazy(?=[A-Z]))?(?<modifier>Idle|Visible|idle-|visible-|Interaction|interaction-|MediaQuery|media-query-|If|if-|Never|never-|Time|time-)?(?<name>[^'"`]*)\k<quote>[^)]*\)/g;
2395
+ const REPLACE_COMPONENT_TO_DIRECT_IMPORT_RE = /(?<=[\s(=;])_?resolveComponent\s*\(\s*(?<quote>["'`])(?<lazy>lazy-|Lazy(?=[A-Z]))?(?<modifier>Idle|Visible|idle-|visible-|Interaction|interaction-|MediaQuery|media-query-|If|if-|Never|never-|Time|time-)?(?<name>[^'"`]*)\k<quote>[^)]*\)|(?<=\bh\s*\(\s*)(?<hLazy>lazy-|Lazy(?=[A-Z]))?(?<hModifier>Idle|Visible|idle-|visible-|Interaction|interaction-|MediaQuery|media-query-|If|if-|Never|never-|Time|time-)?(?<hName>[A-Z][\w$]*)\b/g;
2396
2396
  const LoaderPlugin = (options) => createUnplugin(() => {
2397
2397
  const exclude = options.transform?.exclude || [];
2398
2398
  const include = options.transform?.include || [];
@@ -2416,7 +2416,10 @@ const LoaderPlugin = (options) => createUnplugin(() => {
2416
2416
  const map = /* @__PURE__ */ new Map();
2417
2417
  const s = new MagicString(code);
2418
2418
  s.replace(REPLACE_COMPONENT_TO_DIRECT_IMPORT_RE, (full, ...args) => {
2419
- const { lazy, modifier, name } = args.pop();
2419
+ const groups = args.pop();
2420
+ const lazy = groups.hLazy || groups.lazy;
2421
+ const modifier = groups.hModifier || groups.modifier;
2422
+ const name = groups.hName || groups.name;
2420
2423
  const normalComponent = findComponent(components, name, options.mode);
2421
2424
  const modifierComponent = !normalComponent && modifier ? findComponent(components, modifier + name, options.mode) : null;
2422
2425
  const component = normalComponent || modifierComponent;
@@ -3828,7 +3831,7 @@ function addDeclarationTemplates(ctx, options) {
3828
3831
  });
3829
3832
  }
3830
3833
 
3831
- const version = "4.2.0-29345549.185025b3";
3834
+ const version = "4.2.0-29347981.b7ed1d31";
3832
3835
 
3833
3836
  function createImportProtectionPatterns(nuxt, options) {
3834
3837
  const patterns = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.2.0-29345549.185025b3",
3
+ "version": "4.2.0-29347981.b7ed1d31",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -67,11 +67,11 @@
67
67
  "@dxup/nuxt": "^0.1.0",
68
68
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
69
69
  "@nuxt/devtools": "^2.6.5",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29345549.185025b3",
71
- "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.0-29345549.185025b3",
72
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29345549.185025b3",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29347981.b7ed1d31",
71
+ "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.0-29347981.b7ed1d31",
72
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29347981.b7ed1d31",
73
73
  "@nuxt/telemetry": "^2.6.6",
74
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.0-29345549.185025b3",
74
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.0-29347981.b7ed1d31",
75
75
  "@unhead/vue": "^2.0.14",
76
76
  "@vue/shared": "^3.5.22",
77
77
  "c12": "^3.3.0",