From ad698b095e147b24efbc053641b4cfa5d48fc178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samu=C3=ABl=20WEBER?= Date: Thu, 19 Feb 2026 11:20:10 +0100 Subject: [PATCH] fix: enqueue script with correct name (take into account full name) --- src/Assets/ViteCompiler.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Assets/ViteCompiler.php b/src/Assets/ViteCompiler.php index 9d4b934..dae030d 100644 --- a/src/Assets/ViteCompiler.php +++ b/src/Assets/ViteCompiler.php @@ -151,11 +151,14 @@ public function enqueueAssets(): void } add_filter('script_loader_tag', function ($tag, $handle) { - if (in_array($handle, ['vite-client', $this->handle], true)) { - $tag = str_replace('