This code will solve the problem.

HTML Code:
define('custom:handlers/log-message-sent-handler',['action-handler'], (Dep) => {
return class
...