discourse/plugins/poll/assets
Régis Hanol a1af577390
FIX: poll plugin breaking when local-dates plugin is disabled (#36889)
The recent commit (6a7825baf3) that added local date support in poll
options introduced a static import from the discourse-local-dates
plugin. This caused the poll plugin to blow up during initialization
when local-dates was disabled, since the module simply doesn't exist in
that case.

Switched to using `optionalRequire` which safely checks if the module is
available before loading it. This is the same pattern already used by
chat-composer and the core local-dates helper for cross-plugin
dependencies.
2025-12-29 16:29:43 +01:00
..
javascripts FIX: poll plugin breaking when local-dates plugin is disabled (#36889) 2025-12-29 16:29:43 +01:00
stylesheets FIX: Add local date support in poll options and improve rich editor date formatting (#36718) 2025-12-18 13:30:42 +01:00