I strongly believe the later one is the right answer: You module should only contain the essential functionality. Modules which are simply libraries in other words, often get messy when they don't have a clear feature scope. That is also true for every thing in software development. I would also not differ between general public libraries and internal libraries, people are more lazy for their internal stuff, but this will get its revenge later.
You can also see this by how the npm
ecosystem and modern javascript development works: You have your code and your modules, and to transpile it for older browsers the top level, library using project decides if it uses eslint
for example for trans piling. All the library/module and application code will later get stuffed into one big ugly file anyway. And often applications don't need the trans pile. Just look at the react app project template, where you can see this common pattern.