Skip to content

v2.1.2

Choose a tag to compare

@github-actions github-actions released this 09 Sep 05:22
· 3 commits to main since this release

What's Changed

Fixed

  • ViteManifest no longer asks for a theme named core (#118) — Drupal runs hook_library_info_alter() for the core pseudo-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 called core. The resolver reports the miss with trigger_error(), a warning rather than an exception, so the catch (\Throwable) beside it never ran and the NULL it returned reached dirname(). Two log entries per rebuild, and a red error box on a site with error display on.

    extensionRoot() now returns NULL for core before 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 own getPath() 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