@nuxt/kit 3.0.0-rc.5 → 3.0.0-rc.6

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.d.ts CHANGED
@@ -87,7 +87,7 @@ declare function extendWebpackConfig(fn: ((config: Configuration) => void), opti
87
87
  /**
88
88
  * Extend Vite config
89
89
  */
90
- declare function extendViteConfig(fn: ((config: UserConfig) => void), options?: ExtendViteConfigOptions): void;
90
+ declare function extendViteConfig(fn: ((config: UserConfig) => void), options?: ExtendViteConfigOptions): () => void;
91
91
  /**
92
92
  * Append Webpack plugin to the config.
93
93
  */
package/dist/index.mjs CHANGED
@@ -759,6 +759,9 @@ function extendViteConfig(fn, options = {}) {
759
759
  if (options.build === false && nuxt.options.build) {
760
760
  return;
761
761
  }
762
+ if (options.server !== false && options.client !== false) {
763
+ return nuxt.hook("vite:extend", ({ config }) => fn(config));
764
+ }
762
765
  nuxt.hook("vite:extendConfig", (config, { isClient, isServer }) => {
763
766
  if (options.server !== false && isServer) {
764
767
  return fn(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit",
3
- "version": "3.0.0-rc.5",
3
+ "version": "3.0.0-rc.6",
4
4
  "repository": "nuxt/framework",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -13,7 +13,7 @@
13
13
  "prepack": "unbuild"
14
14
  },
15
15
  "dependencies": {
16
- "@nuxt/schema": "^3.0.0-rc.5",
16
+ "@nuxt/schema": "^3.0.0-rc.6",
17
17
  "c12": "^0.2.8",
18
18
  "consola": "^2.15.3",
19
19
  "defu": "^6.0.0",
@@ -29,7 +29,7 @@
29
29
  "scule": "^0.2.1",
30
30
  "semver": "^7.3.7",
31
31
  "unctx": "^1.1.4",
32
- "unimport": "^0.4.4",
32
+ "unimport": "^0.4.5",
33
33
  "untyped": "^0.4.4"
34
34
  },
35
35
  "devDependencies": {