diff --git a/src/AddSpladeToComponentData.php b/src/AddSpladeToComponentData.php index 4b639c0..b1378fe 100644 --- a/src/AddSpladeToComponentData.php +++ b/src/AddSpladeToComponentData.php @@ -19,9 +19,13 @@ public function __invoke(Component $component, array &$data, string $hash, mixed $componentHelper = app(ComponentHelper::class); $viewContents = $componentHelper->filesystem->get( - $componentHelper->getPath($view) + $path = $componentHelper->getPath($view) ); + if (SpladePlugin::bladeComponentIsRegistered($component)) { + SpladePlugin::dontGenerateVueComponentForPath($path); + } + if (! str_starts_with(trim($viewContents), '