In https://github.com/larowlan/vite-plugin-twig-drupal/pull/10, the ability was added to pass functions in. I think I advertantly took the addDrupalExtensions(Twig); line out, which then fails when using Drupal functions like attach_library().
It was in there before, and re-instating it solves the problem :)
In https://github.com/larowlan/vite-plugin-twig-drupal/pull/10, the ability was added to pass functions in. I think I advertantly took the addDrupalExtensions(Twig); line out, which then fails when using Drupal functions like attach_library().
It was in there before, and re-instating it solves the problem :)