mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 00:52:01 +00:00
v3.0.0-rc.9 (#6970)
This commit is contained in:
parent
ee20a00f65
commit
9caa9ca31f
@ -1,8 +1,5 @@
|
|||||||
# App Config
|
# App Config
|
||||||
|
|
||||||
::StabilityEdge
|
|
||||||
::
|
|
||||||
|
|
||||||
Nuxt 3 provides an `app.config` config file to expose reactive configuration within your application with the ability to update it at runtime within lifecycle or using a nuxt plugin and editing it with HMR (hot-module-replacement).
|
Nuxt 3 provides an `app.config` config file to expose reactive configuration within your application with the ability to update it at runtime within lifecycle or using a nuxt plugin and editing it with HMR (hot-module-replacement).
|
||||||
|
|
||||||
::alert{type=warning}
|
::alert{type=warning}
|
||||||
|
@ -6,9 +6,6 @@ head.title: Nuxt App Config
|
|||||||
|
|
||||||
# Nuxt App Config
|
# Nuxt App Config
|
||||||
|
|
||||||
::StabilityEdge
|
|
||||||
::
|
|
||||||
|
|
||||||
You can easily provide runtime app configuration using `app.config.ts` file. It can have either of `.ts`, `.js`, or `.mjs` extensions.
|
You can easily provide runtime app configuration using `app.config.ts` file. It can have either of `.ts`, `.js`, or `.mjs` extensions.
|
||||||
|
|
||||||
```ts [app.config.ts]
|
```ts [app.config.ts]
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
# `prefetchComponents`
|
# `prefetchComponents`
|
||||||
|
|
||||||
::StabilityEdge
|
|
||||||
::
|
|
||||||
|
|
||||||
Nuxt provides composables and utilities to give you fine-grained control over prefetching and preloading components.
|
Nuxt provides composables and utilities to give you fine-grained control over prefetching and preloading components.
|
||||||
|
|
||||||
> Prefetching component downloads the code in the background, this is based on the assumption that the component will likely be used for rendering, enabling the component to load instantly if and when the user requests it. The component is downloaded and cached for anticipated future use without the user making an explicit request for it.
|
> Prefetching component downloads the code in the background, this is based on the assumption that the component will likely be used for rendering, enabling the component to load instantly if and when the user requests it. The component is downloaded and cached for anticipated future use without the user making an explicit request for it.
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
# `preloadComponents`
|
# `preloadComponents`
|
||||||
|
|
||||||
::StabilityEdge
|
|
||||||
::
|
|
||||||
|
|
||||||
Nuxt provides composables and utilities to give you fine-grained control over prefetching and preloading components.
|
Nuxt provides composables and utilities to give you fine-grained control over prefetching and preloading components.
|
||||||
|
|
||||||
> Preloading components loads components that your page will need very soon, which you want to start loading early in rendering lifecycle. This ensures they are available earlier and are less likely to block the page's render, improving performance.
|
> Preloading components loads components that your page will need very soon, which you want to start loading early in rendering lifecycle. This ensures they are available earlier and are less likely to block the page's render, improving performance.
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
# `updateAppConfig`
|
# `updateAppConfig`
|
||||||
|
|
||||||
::StabilityEdge
|
|
||||||
::
|
|
||||||
|
|
||||||
Updates [app config](/guide/features/app-config) using deep assignment. Existing (nested) properties will be preserved.
|
Updates [app config](/guide/features/app-config) using deep assignment. Existing (nested) properties will be preserved.
|
||||||
|
|
||||||
**Usage:**
|
**Usage:**
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
# `useAppConfig`
|
# `useAppConfig`
|
||||||
|
|
||||||
::StabilityEdge
|
|
||||||
::
|
|
||||||
|
|
||||||
Access [app config](/guide/features/app-config):
|
Access [app config](/guide/features/app-config):
|
||||||
|
|
||||||
**Usage:**
|
**Usage:**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "3.0.0-rc.8",
|
"version": "3.0.0-rc.9",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"useWorkspaces": true,
|
"useWorkspaces": true,
|
||||||
"conventionalCommits": true,
|
"conventionalCommits": true,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/kit",
|
"name": "@nuxt/kit",
|
||||||
"version": "3.0.0-rc.8",
|
"version": "3.0.0-rc.9",
|
||||||
"repository": "nuxt/framework",
|
"repository": "nuxt/framework",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"prepack": "unbuild"
|
"prepack": "unbuild"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/schema": "3.0.0-rc.8",
|
"@nuxt/schema": "3.0.0-rc.9",
|
||||||
"c12": "^0.2.10",
|
"c12": "^0.2.10",
|
||||||
"consola": "^2.15.3",
|
"consola": "^2.15.3",
|
||||||
"defu": "^6.1.0",
|
"defu": "^6.1.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxi",
|
"name": "nuxi",
|
||||||
"version": "3.0.0-rc.8",
|
"version": "3.0.0-rc.9",
|
||||||
"repository": "nuxt/framework",
|
"repository": "nuxt/framework",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -18,8 +18,8 @@
|
|||||||
"prepack": "unbuild"
|
"prepack": "unbuild"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/kit": "3.0.0-rc.8",
|
"@nuxt/kit": "3.0.0-rc.9",
|
||||||
"@nuxt/schema": "3.0.0-rc.8",
|
"@nuxt/schema": "3.0.0-rc.9",
|
||||||
"@types/clear": "^0",
|
"@types/clear": "^0",
|
||||||
"@types/flat": "^5.0.2",
|
"@types/flat": "^5.0.2",
|
||||||
"@types/mri": "^1.1.1",
|
"@types/mri": "^1.1.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxt",
|
"name": "nuxt",
|
||||||
"version": "3.0.0-rc.8",
|
"version": "3.0.0-rc.9",
|
||||||
"repository": "nuxt/framework",
|
"repository": "nuxt/framework",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -31,11 +31,11 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/devalue": "^2.0.0",
|
"@nuxt/devalue": "^2.0.0",
|
||||||
"@nuxt/kit": "3.0.0-rc.8",
|
"@nuxt/kit": "3.0.0-rc.9",
|
||||||
"@nuxt/schema": "3.0.0-rc.8",
|
"@nuxt/schema": "3.0.0-rc.9",
|
||||||
"@nuxt/telemetry": "^2.1.4",
|
"@nuxt/telemetry": "^2.1.4",
|
||||||
"@nuxt/ui-templates": "^0.3.2",
|
"@nuxt/ui-templates": "^0.3.2",
|
||||||
"@nuxt/vite-builder": "3.0.0-rc.8",
|
"@nuxt/vite-builder": "3.0.0-rc.9",
|
||||||
"@vue/reactivity": "^3.2.38",
|
"@vue/reactivity": "^3.2.38",
|
||||||
"@vue/shared": "^3.2.38",
|
"@vue/shared": "^3.2.38",
|
||||||
"@vueuse/head": "^0.7.9",
|
"@vueuse/head": "^0.7.9",
|
||||||
@ -53,7 +53,7 @@
|
|||||||
"magic-string": "^0.26.3",
|
"magic-string": "^0.26.3",
|
||||||
"mlly": "^0.5.14",
|
"mlly": "^0.5.14",
|
||||||
"nitropack": "^0.5.0",
|
"nitropack": "^0.5.0",
|
||||||
"nuxi": "3.0.0-rc.8",
|
"nuxi": "3.0.0-rc.9",
|
||||||
"ohash": "^0.1.5",
|
"ohash": "^0.1.5",
|
||||||
"ohmyfetch": "^0.4.18",
|
"ohmyfetch": "^0.4.18",
|
||||||
"pathe": "^0.3.5",
|
"pathe": "^0.3.5",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/schema",
|
"name": "@nuxt/schema",
|
||||||
"version": "3.0.0-rc.8",
|
"version": "3.0.0-rc.9",
|
||||||
"repository": "nuxt/framework",
|
"repository": "nuxt/framework",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/test-utils",
|
"name": "@nuxt/test-utils",
|
||||||
"version": "3.0.0-rc.8",
|
"version": "3.0.0-rc.9",
|
||||||
"repository": "nuxt/framework",
|
"repository": "nuxt/framework",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -13,8 +13,8 @@
|
|||||||
"prepack": "unbuild"
|
"prepack": "unbuild"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/kit": "3.0.0-rc.8",
|
"@nuxt/kit": "3.0.0-rc.9",
|
||||||
"@nuxt/schema": "3.0.0-rc.8",
|
"@nuxt/schema": "3.0.0-rc.9",
|
||||||
"defu": "^6.1.0",
|
"defu": "^6.1.0",
|
||||||
"execa": "^6.1.0",
|
"execa": "^6.1.0",
|
||||||
"get-port-please": "^2.6.1",
|
"get-port-please": "^2.6.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/vite-builder",
|
"name": "@nuxt/vite-builder",
|
||||||
"version": "3.0.0-rc.8",
|
"version": "3.0.0-rc.9",
|
||||||
"repository": "nuxt/framework",
|
"repository": "nuxt/framework",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -13,13 +13,13 @@
|
|||||||
"prepack": "unbuild"
|
"prepack": "unbuild"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/schema": "3.0.0-rc.8",
|
"@nuxt/schema": "3.0.0-rc.9",
|
||||||
"@types/cssnano": "^5",
|
"@types/cssnano": "^5",
|
||||||
"unbuild": "latest",
|
"unbuild": "latest",
|
||||||
"vue": "3.2.38"
|
"vue": "3.2.38"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/kit": "3.0.0-rc.8",
|
"@nuxt/kit": "3.0.0-rc.9",
|
||||||
"@rollup/plugin-replace": "^4.0.0",
|
"@rollup/plugin-replace": "^4.0.0",
|
||||||
"@vitejs/plugin-vue": "^3.0.3",
|
"@vitejs/plugin-vue": "^3.0.3",
|
||||||
"@vitejs/plugin-vue-jsx": "^2.0.1",
|
"@vitejs/plugin-vue-jsx": "^2.0.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nuxt/webpack-builder",
|
"name": "@nuxt/webpack-builder",
|
||||||
"version": "3.0.0-rc.8",
|
"version": "3.0.0-rc.9",
|
||||||
"repository": "nuxt/framework",
|
"repository": "nuxt/framework",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -18,7 +18,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.18.13",
|
"@babel/core": "^7.18.13",
|
||||||
"@nuxt/friendly-errors-webpack-plugin": "^2.5.2",
|
"@nuxt/friendly-errors-webpack-plugin": "^2.5.2",
|
||||||
"@nuxt/kit": "3.0.0-rc.8",
|
"@nuxt/kit": "3.0.0-rc.9",
|
||||||
"autoprefixer": "^10.4.8",
|
"autoprefixer": "^10.4.8",
|
||||||
"css-loader": "^6.7.1",
|
"css-loader": "^6.7.1",
|
||||||
"css-minimizer-webpack-plugin": "^4.0.0",
|
"css-minimizer-webpack-plugin": "^4.0.0",
|
||||||
@ -57,7 +57,7 @@
|
|||||||
"webpackbar": "^5.0.2"
|
"webpackbar": "^5.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/schema": "3.0.0-rc.8",
|
"@nuxt/schema": "3.0.0-rc.9",
|
||||||
"@types/lodash-es": "^4.17.6",
|
"@types/lodash-es": "^4.17.6",
|
||||||
"@types/pify": "^5.0.1",
|
"@types/pify": "^5.0.1",
|
||||||
"@types/webpack-bundle-analyzer": "^4.4.2",
|
"@types/webpack-bundle-analyzer": "^4.4.2",
|
||||||
|
28
yarn.lock
28
yarn.lock
@ -1648,7 +1648,7 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@nuxt/kit@workspace:packages/kit"
|
resolution: "@nuxt/kit@workspace:packages/kit"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@nuxt/schema": 3.0.0-rc.8
|
"@nuxt/schema": 3.0.0-rc.9
|
||||||
"@types/lodash.template": ^4
|
"@types/lodash.template": ^4
|
||||||
"@types/semver": ^7
|
"@types/semver": ^7
|
||||||
c12: ^0.2.10
|
c12: ^0.2.10
|
||||||
@ -1734,8 +1734,8 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@nuxt/test-utils@workspace:packages/test-utils"
|
resolution: "@nuxt/test-utils@workspace:packages/test-utils"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@nuxt/kit": 3.0.0-rc.8
|
"@nuxt/kit": 3.0.0-rc.9
|
||||||
"@nuxt/schema": 3.0.0-rc.8
|
"@nuxt/schema": 3.0.0-rc.9
|
||||||
defu: ^6.1.0
|
defu: ^6.1.0
|
||||||
execa: ^6.1.0
|
execa: ^6.1.0
|
||||||
get-port-please: ^2.6.1
|
get-port-please: ^2.6.1
|
||||||
@ -1779,12 +1779,12 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@nuxt/vite-builder@3.0.0-rc.8, @nuxt/vite-builder@workspace:packages/vite":
|
"@nuxt/vite-builder@3.0.0-rc.9, @nuxt/vite-builder@workspace:packages/vite":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@nuxt/vite-builder@workspace:packages/vite"
|
resolution: "@nuxt/vite-builder@workspace:packages/vite"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@nuxt/kit": 3.0.0-rc.8
|
"@nuxt/kit": 3.0.0-rc.9
|
||||||
"@nuxt/schema": 3.0.0-rc.8
|
"@nuxt/schema": 3.0.0-rc.9
|
||||||
"@rollup/plugin-replace": ^4.0.0
|
"@rollup/plugin-replace": ^4.0.0
|
||||||
"@types/cssnano": ^5
|
"@types/cssnano": ^5
|
||||||
"@vitejs/plugin-vue": ^3.0.3
|
"@vitejs/plugin-vue": ^3.0.3
|
||||||
@ -1831,8 +1831,8 @@ __metadata:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/core": ^7.18.13
|
"@babel/core": ^7.18.13
|
||||||
"@nuxt/friendly-errors-webpack-plugin": ^2.5.2
|
"@nuxt/friendly-errors-webpack-plugin": ^2.5.2
|
||||||
"@nuxt/kit": 3.0.0-rc.8
|
"@nuxt/kit": 3.0.0-rc.9
|
||||||
"@nuxt/schema": 3.0.0-rc.8
|
"@nuxt/schema": 3.0.0-rc.9
|
||||||
"@types/lodash-es": ^4.17.6
|
"@types/lodash-es": ^4.17.6
|
||||||
"@types/pify": ^5.0.1
|
"@types/pify": ^5.0.1
|
||||||
"@types/webpack-bundle-analyzer": ^4.4.2
|
"@types/webpack-bundle-analyzer": ^4.4.2
|
||||||
@ -9899,8 +9899,8 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "nuxi@workspace:packages/nuxi"
|
resolution: "nuxi@workspace:packages/nuxi"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@nuxt/kit": 3.0.0-rc.8
|
"@nuxt/kit": 3.0.0-rc.9
|
||||||
"@nuxt/schema": 3.0.0-rc.8
|
"@nuxt/schema": 3.0.0-rc.9
|
||||||
"@types/clear": ^0
|
"@types/clear": ^0
|
||||||
"@types/flat": ^5.0.2
|
"@types/flat": ^5.0.2
|
||||||
"@types/mri": ^1.1.1
|
"@types/mri": ^1.1.1
|
||||||
@ -9982,11 +9982,11 @@ __metadata:
|
|||||||
resolution: "nuxt@workspace:packages/nuxt"
|
resolution: "nuxt@workspace:packages/nuxt"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@nuxt/devalue": ^2.0.0
|
"@nuxt/devalue": ^2.0.0
|
||||||
"@nuxt/kit": 3.0.0-rc.8
|
"@nuxt/kit": 3.0.0-rc.9
|
||||||
"@nuxt/schema": 3.0.0-rc.8
|
"@nuxt/schema": 3.0.0-rc.9
|
||||||
"@nuxt/telemetry": ^2.1.4
|
"@nuxt/telemetry": ^2.1.4
|
||||||
"@nuxt/ui-templates": ^0.3.2
|
"@nuxt/ui-templates": ^0.3.2
|
||||||
"@nuxt/vite-builder": 3.0.0-rc.8
|
"@nuxt/vite-builder": 3.0.0-rc.9
|
||||||
"@types/fs-extra": ^9.0.13
|
"@types/fs-extra": ^9.0.13
|
||||||
"@types/hash-sum": ^1.0.0
|
"@types/hash-sum": ^1.0.0
|
||||||
"@vue/reactivity": ^3.2.38
|
"@vue/reactivity": ^3.2.38
|
||||||
@ -10006,7 +10006,7 @@ __metadata:
|
|||||||
magic-string: ^0.26.3
|
magic-string: ^0.26.3
|
||||||
mlly: ^0.5.14
|
mlly: ^0.5.14
|
||||||
nitropack: ^0.5.0
|
nitropack: ^0.5.0
|
||||||
nuxi: 3.0.0-rc.8
|
nuxi: 3.0.0-rc.9
|
||||||
ohash: ^0.1.5
|
ohash: ^0.1.5
|
||||||
ohmyfetch: ^0.4.18
|
ohmyfetch: ^0.4.18
|
||||||
pathe: ^0.3.5
|
pathe: ^0.3.5
|
||||||
|
Loading…
Reference in New Issue
Block a user