enable `require` function in events scripts