amdclean
                                
                                
                                
                                    amdclean copied to clipboard
                            
                            
                            
                        require with named callback -- the callback is never called
I like to name my callbacks. The hello method below is never called:
function hello() {
  console.log('hi');
}
require(['locale-data/en'], hello); // TODO other languages for extensions
It is transformed to:
(function() {
function hello() {
  console.log('hi');
}
}());
The console.log never happens!
Similar issue here.