code: function gnodeJsExtensionCompiler (module, filename) {
    var content = fs.readFileSync(filename, 'utf8');
  
    // remove the Byte Order Marker if present
    content = stripBOM(content);
  
    // strip away the shebang if present
    content = stripShebang(content);
  
    if (genFunExp.test(content) && !isValid(content)) {
      // compile JS via facebook/regenerator
      content = regenerator.compile(content, {
        includeRuntime: 'object' !== typeof regeneratorRuntime
      }).code;
    }
  
    module._compile(content, filename);
  }
docs: ES6 Generators enabled `require.extensions['.js']` hook.
  
  @api public