babel-plugin-deamdify
Strips AMD declarations to "export" inner declarations with jsdocs
— hey, google closure compiler, we have written jsdocs for our AMD-based code, maybe you can validate it?
;;
— sorry, I can't validate math in the second module, because it's declared inside another scope
— Okay, I'll transform them with babel plugin for you
See discussion on stackoverflow for some more details and tests for examples of transformations