From c606379bcd31abd1a459a6acf301e8a54fd66095 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Thu, 25 Nov 2021 00:25:29 +0100 Subject: [PATCH] front/SvelteViewEngine: don't use css cache in development environment --- src/frontend/SvelteViewEngine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/SvelteViewEngine.ts b/src/frontend/SvelteViewEngine.ts index 62ca949..3f338f8 100644 --- a/src/frontend/SvelteViewEngine.ts +++ b/src/frontend/SvelteViewEngine.ts @@ -139,7 +139,7 @@ export default class SvelteViewEngine extends ViewEngine { // Get dependencies css const dependenciesCss: string[] = []; for (const dependency of this.resolveAndCacheDependencies(code, canonicalName)) { - if (this.cssCache[dependency] === undefined) { + if (this.cssCache[dependency] === undefined || !config.get('view.cache')) { await this.renderSvelteSsr(dependency, locals); } const css = this.cssCache[dependency];