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;