mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
perf(nuxt): skip experimental async context transform in client build (#30360)
This commit is contained in:
parent
accf701a9d
commit
85b8ea916c
@ -379,7 +379,7 @@ async function initNuxt (nuxt: Nuxt) {
|
|||||||
|
|
||||||
// Transform initial composable call within `<script setup>` to preserve context
|
// Transform initial composable call within `<script setup>` to preserve context
|
||||||
if (nuxt.options.experimental.asyncContext) {
|
if (nuxt.options.experimental.asyncContext) {
|
||||||
addBuildPlugin(AsyncContextInjectionPlugin(nuxt))
|
addBuildPlugin(AsyncContextInjectionPlugin(nuxt), { client: false })
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: [Experimental] Avoid emitting assets when flag is enabled
|
// TODO: [Experimental] Avoid emitting assets when flag is enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user