#3485842: Unwanted Olivero assets being loaded from core/drupal.ajax dependency
Closes #3485842
Looks like the original workaround experience_builder_library_info_alter
doesn't trigger with Olivero as $extension
argument when a previous non XB- page loads the Olivero assets.
This MR addresses this by creating another library definition of drupal.ajax
within experience_builder.libraries.yml
but without drupal.message
as a dependency since drupal.message
is what brings in the unwanted Olivero assets. Now since drupal.dialog.ajax
was recently added as an XB dependency, that has drupal.ajax
as a dependency, and therefore also has drupal.message
as a dependency. So there is another library definition of drupal.dialog.ajax
within experience_builder.libraries.yml
that then points to experience_builder/drupal.dialog.ajax
.
This isn't an ideal solution as it is hacky and unmaintainable if more libraries get added so if anyone has a better solution, lmk