From 1d2bfde11a76af602ea7f3bc311245ef3c65ec35 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Fri, 12 Jan 2024 19:17:39 +0000 Subject: [PATCH] fix(remix): import of config file should invalidate cache (#21121) --- packages/remix/src/plugins/plugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/remix/src/plugins/plugin.ts b/packages/remix/src/plugins/plugin.ts index d30c716ee6fa7..cc44a63636f1a 100644 --- a/packages/remix/src/plugins/plugin.ts +++ b/packages/remix/src/plugins/plugin.ts @@ -185,7 +185,9 @@ async function getServerBuildPath( try { let appConfigModule: any; try { - appConfigModule = await Function(`return import("${configPath}")`)(); + appConfigModule = await Function( + `return import("${configPath}?t=${Date.now()}")` + )(); } catch { appConfigModule = require(configPath); }