Open john4190 opened 1 year ago
Js assets should be libraries, and they can declare their dependencies.
... unless you mean in the current libraries we have. On that I agree :)
yes but i am not trying to create a new module, i am trying to exploit ECL components in order to make search page as compliant as possible to European union guidelines. Moreover fortunately there are modules for injecting small pieces of javascript without creating a new module and without disrupting everything
Il giorno mer 6 set 2023 alle ore 15:53 Francesco @.***> ha scritto:
Js assets should be libraries, and they can declare their dependencies.
— Reply to this email directly, view it on GitHub https://github.com/openeuropa/oe_theme/issues/1313#issuecomment-1708420739, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYD4JV4O4TLYUBGYUWQG3LXZB547ANCNFSM6AAAAAA4EEVPJ4 . You are receiving this because you authored the thread.Message ID: @.***>
anyway yes having core/once helps you as well if you have to handle events in the drupal way and keep everything compatible with drupal 10
in order to fully support js asset injection i strongly suggest to include core/once in theme dependencies