Class definitions aren't hoisted, which means that your class won't be in scope when you declare those exports. Move them down to below the definition.
class MyClass { static get prop() { return 'property'; } } module.exports = { fun: function(){}, class: myClass }
You'll also need to fix the case on the variable you export.
module.exports = { fun: function(){}, class: MyClass }
Depending on your Javascript environment, there may be compile time errors if you try and used the reserved word class as a literal object property. You can wrap it in a string to avoid this.
module.exports = { fun: function(){}, "class": MyClass }
classbut sayabcand it's not working -- the error is thatabcis not defined when I try to require it from other file. I can do module.exports.abc = MyClass, but that would not allow me to use justMyClassinside the modulemyClassand notMyClassin your exports definitionexport class MyClass {} export function fun() {}import()statements, and until then you can still justrequirethe transpiled module