@nuxt/schema-nightly
Advanced tools
Comparing version 3.8.1-28299395.803c4fe1 to 3.8.1-28301057.cd76c617
{ | ||
"name": "@nuxt/schema-nightly", | ||
"version": "3.8.1-28299395.803c4fe1", | ||
"version": "3.8.1-28301057.cd76c617", | ||
"repository": "nuxt/nuxt", | ||
@@ -5,0 +5,0 @@ "description": "Nuxt types and default configuration", |
@@ -396,7 +396,6 @@ import type { ComponentsOptions } from '../src/types/components' | ||
/** | ||
* Nuxt uses `webpack-bundle-analyzer` to visualize your bundles and how to optimize them. | ||
* Nuxt allows visualizing your bundles and how to optimize them. | ||
* | ||
* Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options). | ||
* | ||
* @default false | ||
* | ||
@@ -410,3 +409,3 @@ * @example | ||
*/ | ||
analyze: boolean | BundleAnalyzerPlugin.Options | PluginVisualizerOptions, | ||
analyze: boolean | { enabled?: boolean } & ((0 extends 1 & BundleAnalyzerPlugin.Options ? {} : BundleAnalyzerPlugin.Options) | PluginVisualizerOptions), | ||
}, | ||
@@ -1458,3 +1457,2 @@ | ||
* | ||
* @default false | ||
* | ||
@@ -1468,3 +1466,3 @@ * @example | ||
*/ | ||
analyze: boolean | BundleAnalyzerPlugin.Options, | ||
analyze: boolean | { enabled?: boolean } & BundleAnalyzerPlugin.Options, | ||
@@ -1471,0 +1469,0 @@ /** |
@@ -167,3 +167,7 @@ { | ||
"templates": [], | ||
"analyze": false | ||
"analyze": { | ||
"template": "treemap", | ||
"projectRoot": "/<rootDir>", | ||
"filename": "/<rootDir>/.nuxt/analyze/{name}.html" | ||
} | ||
}, | ||
@@ -182,2 +186,3 @@ "buildDir": "/<rootDir>/.nuxt", | ||
"logLevel": "info", | ||
"analyzeDir": "/<rootDir>/.nuxt/analyze", | ||
"optimization": { | ||
@@ -264,3 +269,2 @@ "keyedComposables": [ | ||
"serverDir": "/<rootDir>/server", | ||
"analyzeDir": "/<rootDir>/.nuxt/analyze", | ||
"test": false, | ||
@@ -370,3 +374,7 @@ "debug": false, | ||
"webpack": { | ||
"analyze": false, | ||
"analyze": { | ||
"template": "treemap", | ||
"projectRoot": "/<rootDir>", | ||
"filename": "/<rootDir>/.nuxt/analyze/{name}.html" | ||
}, | ||
"profile": false, | ||
@@ -373,0 +381,0 @@ "extractCSS": true, |
@@ -221,11 +221,3 @@ | ||
## `analyze` | ||
- **Type**: `boolean | WebpackBundleAnalyzerBundleAnalyzerPluginOptions | RollupPluginVisualizerPluginVisualizerOptions` | ||
- **Default**: `false` | ||
> Nuxt uses `webpack-bundle-analyzer` to visualize your bundles and how to optimize them. | ||
Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options). | ||
# `optimization` | ||
@@ -1153,11 +1145,3 @@ | ||
## `analyze` | ||
- **Type**: `boolean | WebpackBundleAnalyzerBundleAnalyzerPluginOptions` | ||
- **Default**: `false` | ||
> Nuxt uses `webpack-bundle-analyzer` to visualize your bundles and how to optimize them. | ||
Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options). | ||
## `profile` | ||
@@ -1164,0 +1148,0 @@ - **Type**: `boolean` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
470621
10315