jspm_packages/npm/babel-core@5.8.38/lib/api/register/node.js
function registerExtension(ext) {
  var old = oldHandlers[ext] || oldHandlers[".js"] || require.extensions[".js"];

  var loader = normalLoader;
  if (process.env.running_under_istanbul) loader = istanbulLoader;

  require.extensions[ext] = function (m, filename) {
    if (shouldIgnore(filename)) {
      old(m, filename);
    } else {
      loader(m, filename, old);
    }
  };
}
function registerExtension(ext) {
  var old = oldHandlers[ext] || oldHandlers[".js"] || require.extensions[".js"];

  var loader = normalLoader;
  if (process.env.running_under_istanbul) loader = istanbulLoader;

  require.extensions[ext] = function (m, filename) {
    if (shouldIgnore(filename)) {
      old(m, filename);
    } else {
      loader(m, filename, old);
    }
  };
}
function registerExtension ( ext ) { var old = oldHandlers [ ext ] || oldHandlers [ ".js" ] || require . extensions [ ".js" ] ; var loader = normalLoader ; if ( process . env . running_under_istanbul ) loader = istanbulLoader ; require . extensions [ ext ] = function ( m , filename ) { if ( shouldIgnore ( filename ) ) { old ( m , filename ) ; } else { loader ( m , filename , old ) ; } } ; }
Register a loader for an extension.
Register a loader for an extension .