v2.1.2
What's Changed
Fixed
-
ViteManifestno longer asks for a theme namedcore(#118) — Drupal runshook_library_info_alter()for thecorepseudo-extension, which is neither a module nor a theme.extensionRoot()decided the type as module-else-theme, so every library-discovery cache rebuild asked the resolver for a theme calledcore. The resolver reports the miss withtrigger_error(), a warning rather than an exception, so thecatch (\Throwable)beside it never ran and the NULL it returned reacheddirname(). Two log entries per rebuild, and a red error box on a site with error display on.extensionRoot()now returns NULL forcorebefore deciding a type.LibraryDiscoveryParser::buildByExtension()carries the same module-else-theme rule and the same single exception, and every other extension name reaches core's owngetPath()call before this hook runs, so mirroring core covers the whole class of names that can arrive here.Found on htdvere. The entries follow the cache rebuild rather than any route, so warming the cache with one page moves the warning to the next one and it reads as route-specific until you look twice.
Pull Requests
- #119 — fix(vite): stop asking the path resolver for a theme named core
Full Changelog: v2.1.1...v2.1.2