code: function replacer(match, quote, require) {
          var replacement = 'require(' + quote;
          try {
              resolve.sync(require);
          } catch (exc) {
              try {
                  // Try to resolve the require statement starting from the root folder
                  resolve.sync(require, {paths: ['.']});
                  replacement += relativeToRoot + path.sep;
              } catch (exc2) {
              }
          }
          replacement += require + quote + ')';
  //        console.log(replacement);
          return replacement;
      }
docs: `require(..)` replacer