@nuxt/kit-nightly 4.2.2-29401542.1ec99e9a → 4.2.2-29404205.1c73525a

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 +15 -13
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -640,19 +640,21 @@ async function installModules(modulesToInstall, resolvedModulePaths, nuxt = useN
640
640
  }
641
641
  for (const { nuxtModule, meta, moduleToInstall, buildTimeModuleMeta, resolvedModulePath, inlineOptions } of resolvedModules) {
642
642
  const configKey = meta?.configKey;
643
- if (configKey) {
644
- const optionsFns = [
645
- ...optionsFunctions.get(moduleToInstall) || [],
646
- ...optionsFunctions.get(configKey) || []
647
- ];
648
- if (optionsFns.length > 0) {
649
- const overrides = [];
650
- const defaults = [];
651
- for (const fn of optionsFns) {
652
- const options = fn();
653
- overrides.push(options.overrides);
654
- defaults.push(options.defaults);
655
- }
643
+ const optionsFns = [
644
+ ...optionsFunctions.get(moduleToInstall) || [],
645
+ ...meta?.name ? optionsFunctions.get(meta.name) || [] : [],
646
+ // TODO: consider dropping options functions keyed by config key
647
+ ...configKey ? optionsFunctions.get(configKey) || [] : []
648
+ ];
649
+ if (optionsFns.length > 0) {
650
+ const overrides = [];
651
+ const defaults = [];
652
+ for (const fn of optionsFns) {
653
+ const options = fn();
654
+ overrides.push(options.overrides);
655
+ defaults.push(options.defaults);
656
+ }
657
+ if (configKey) {
656
658
  nuxt.options[configKey] = defu(...overrides, nuxt.options[configKey], ...defaults);
657
659
  }
658
660
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit-nightly",
3
- "version": "4.2.2-29401542.1ec99e9a",
3
+ "version": "4.2.2-29404205.1c73525a",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -45,7 +45,7 @@
45
45
  "untyped": "^2.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-29401542.1ec99e9a",
48
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-29404205.1c73525a",
49
49
  "@rspack/core": "1.6.5",
50
50
  "@types/semver": "7.7.1",
51
51
  "hookable": "5.5.3",