diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index df78027ee19..fb706d9049c 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -60,7 +60,7 @@ export default defineUntypedSchema({ * @type {boolean | ((id?: string) => boolean)} */ inlineSSRStyles: { - async $resolve(val, get) { + async $resolve (val, get) { if (val === false || (await get('dev')) || (await get('ssr')) === false || (await get('builder')) === '@nuxt/webpack-builder') { return false } @@ -75,9 +75,9 @@ export default defineUntypedSchema({ noScripts: false, /** - * When this option is enabled (by default) payload of pages generated with `nuxt generate` are extracted + * When this option is enabled, payloads of pages generated with `nuxt generate` are extracted */ - payloadExtraction: true, + payloadExtraction: false, /** Enable cross-origin prefetch using the Speculation Rules API. */ crossOriginPrefetch: false, diff --git a/test/fixtures/basic/nuxt.config.ts b/test/fixtures/basic/nuxt.config.ts index 65664c7d715..b7d6bad0ed9 100644 --- a/test/fixtures/basic/nuxt.config.ts +++ b/test/fixtures/basic/nuxt.config.ts @@ -105,7 +105,8 @@ export default defineNuxtConfig({ experimental: { inlineSSRStyles: id => !!id && !id.includes('assets.vue'), reactivityTransform: true, - treeshakeClientOnly: true + treeshakeClientOnly: true, + payloadExtraction: true }, appConfig: { fromNuxtConfig: true,