Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(schema)!: disable payload extraction by default #8890

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/schema/src/config/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/basic/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down