perf(nuxt): skip experimental async context transform in client build (#30360)

This commit is contained in:
Matej Černý 2024-12-25 21:48:01 +01:00 committed by GitHub
parent dcbe4ec1a1
commit 5d766bcb98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -380,7 +380,7 @@ async function initNuxt (nuxt: Nuxt) {
// Transform initial composable call within `<script setup>` to preserve context
if (nuxt.options.experimental.asyncContext) {
addBuildPlugin(AsyncContextInjectionPlugin(nuxt))
addBuildPlugin(AsyncContextInjectionPlugin(nuxt), { client: false })
}
// TODO: [Experimental] Avoid emitting assets when flag is enabled