From 31c200716d24a57b8e4679ef9a9f7693ab6d14a7 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Sat, 2 May 2026 18:03:14 +0100 Subject: [PATCH] wip --- src/Plugins/Tia/JsModuleGraph.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Plugins/Tia/JsModuleGraph.php b/src/Plugins/Tia/JsModuleGraph.php index 28fd521a..a889f342 100644 --- a/src/Plugins/Tia/JsModuleGraph.php +++ b/src/Plugins/Tia/JsModuleGraph.php @@ -166,10 +166,6 @@ final class JsModuleGraph private static function fingerprint(string $projectRoot): ?string { - if (! self::hasViteConfig($projectRoot)) { - return null; - } - $parts = []; foreach (self::VITE_CONFIG_NAMES as $name) { @@ -188,6 +184,10 @@ final class JsModuleGraph .':'.($bytes === false ? '' : hash('sha256', $bytes)); } + if ($parts === []) { + return null; + } + foreach (['Pages', 'pages'] as $dir) { if (is_dir($projectRoot.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'js'.DIRECTORY_SEPARATOR.$dir)) { $parts[] = 'pagesDir:'.$dir;