Support for module.exports dropped?

I had code that was modifying functions at runtime via module.exports. It used to work just fine. Now module.exports seems to always return “undefined”, regardless of how many functions I export.

I found one post on here that says module and module.exports is not supported. BUT I was using it for months and it worked just fine. Was it supported unintentionally? If it worked before I don’t see any reason to remove that feature? Can anyone provide some clarification? It worked just fine for months on both the live site and offline. It was a list of handles to all the functions in the file marked with the export keyword. I was using it to keep track of element clicks on the page without having to write code for each onclick handler (so many). Was something updated to break it? It was working just a week or two ago.

note: module is still defined but not module.exports

Thanks