text: "use strict";
  
  var glob = require("glob");
  var path = require("path");
  
  module.exports = function (content, sourceMap) {
    this.cacheable && this.cacheable();
    var resourceDir = path.resolve('./node_modules');
    var pattern = content.trim();
    var files = glob.sync(pattern, {
      cwd: resourceDir
    });
  
    if (!files.length) {
      this.emitWarning('Did not find anything for glob "' + pattern + '" in directory "' + resourceDir + '"');
    }
  
    return "module.exports = {\n" + files.map(function (file) {
      this.addDependency(path.resolve(resourceDir, file));
  
      var stringifiedFile = JSON.stringify(file);
      return "\t" + stringifiedFile + ": require(" + stringifiedFile + ")";
    }, this).join(",\n") + "\n};"
  };
  