mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
perf(nuxt): skip experimental async context transform in client build (#30360)
This commit is contained in:
parent
dcbe4ec1a1
commit
5d766bcb98
@ -380,7 +380,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