From f5676fba5668c3dbff8c1c40e988d469740ee82e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 26 Dec 2023 20:37:20 +0000 Subject: [PATCH] docs: switch `features`/`future` docs --- docs/2.guide/3.going-further/1.features.md | 2 +- packages/schema/src/config/experimental.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/2.guide/3.going-further/1.features.md b/docs/2.guide/3.going-further/1.features.md index 8c86256ec02f..79e2eb32b75f 100644 --- a/docs/2.guide/3.going-further/1.features.md +++ b/docs/2.guide/3.going-further/1.features.md @@ -35,7 +35,7 @@ export defineNuxtConfig({ ## `future` -There is also a `future` namespace for behavior that will likely become default in a early opting-in to new features that will become default in a future (possibly major) version of the framework. +There is also a `future` namespace for early opting-in to new features that will become default in a future (possibly major) version of the framework. ### typescriptBundlerResolution diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index c20e709e68d4..fa6de32390ed 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -1,6 +1,10 @@ import { defineUntypedSchema } from 'untyped' export default defineUntypedSchema({ + /** + * `future` is for early opting-in to new features that will become default in a future + * (possibly major) version of the framework. + */ future: { /** * This enables 'Bundler' module resolution mode for TypeScript, which is the recommended setting @@ -24,8 +28,7 @@ export default defineUntypedSchema({ }, }, /** - * `future` is for early opting-in to new features that will become default in a future - * (possibly major) version of the framework. + * Some features of Nuxt are available on an opt-in basis, or can be disabled based on your needs. */ features: { /**