Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
667.33 KB
MD5: 47edff86061fd2d6c1cf9f7138a8fa92
SHA-1: 69a49fe8192f5ef733195670ba0b871d789d356c
SHA-256: 4fd26413123b7d1964065bd908abe2174a0a8c8a8b40f685804c41625faf9187
Download zip
1.16 MB
MD5: e9ecbff2c78b088588272ab2e2283d22
SHA-1: eeb1fc0e21b579f4a0bfe0478375aec8ce6e9ed5
SHA-256: 6a3b7e0087c72a67ea5928dadd1e4fc2f8815e2fa2955ec3aa9706fbbfc76690
Release notes
Added
- AutoLibraryGenerator honors
libraryOverrides.dependencies. Entries declared in a component's.component.ymlare now appended to the generated Drupal library's dependency list, keeping the mandatory SDX core entries (core/drupal,core/drupalSettings,sdx_<framework>/mount) and deduplicating. Components can declare extra runtime libraries in their component yml without patchinghook_library_info_alter:
libraryOverrides: dependencies: - some_other_module/some_libraryThe override is additive, not replacing, so the SDX mount pipeline keeps working and the component's runtime requirements compose cleanly on top. Attachment follows Drupal's normal library chain: the extra dependency only attaches when the component renders server-side through
#type: component. Components living inside dynamically-imported chunks (lazy React routes, SPA-navigated views) should import their runtime as ESM - see thesdx_broadcastrefactor indrupal/sdx_realtime1.0.0-alpha2 for the canonical pattern.