When using the Vite module on a Windows system, asset paths may contain backslashes (e.g., \components\foo.pcss.css). This causes strstr() to fail when looking for /components/, breaking the path resolution.
1. Run a Drupal site on Windows
2. Use a component with a nested path
3. Observe fatal error or incorrect behavior from strstr()
Normalize slashes before processing:
$path = str_replace('\\', '/', $path);
Active
1.4
Code