From 4c5048826c4c1c33f1a64732eb7d590f8fc1bcde Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 26 Sep 2022 10:52:43 +0100 Subject: [PATCH] fix(nuxt): don't disable scripts in dev mode with experimental `noScripts` (#7745) --- packages/nuxt/src/core/nitro.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/nitro.ts b/packages/nuxt/src/core/nitro.ts index 572eece60a..d66578d243 100644 --- a/packages/nuxt/src/core/nitro.ts +++ b/packages/nuxt/src/core/nitro.ts @@ -99,7 +99,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) { }, replace: { 'process.env.NUXT_NO_SSR': nuxt.options.ssr === false, - 'process.env.NUXT_NO_SCRIPTS': !!nuxt.options.experimental.noScripts, + 'process.env.NUXT_NO_SCRIPTS': !!nuxt.options.experimental.noScripts && !nuxt.options.dev, 'process.env.NUXT_INLINE_STYLES': !!nuxt.options.experimental.inlineSSRStyles, 'process.env.NUXT_PAYLOAD_EXTRACTION': !!nuxt.options.experimental.payloadExtraction, 'process.dev': nuxt.options.dev,