Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var _ = require('lodash');
// Start with AssetGraph's built-in resolvers:
_.extend(exports, require('assetgraph').resolvers);
// Install getters for all resolvers in this directory:
require('fs').readdirSync(__dirname).forEach(function (fileName) {
if (/\.js$/.test(fileName) && fileName !== 'index.js') {
exports.__defineGetter__(fileName.replace(/\.js$/, ''), function () {
return require('./' + fileName);
});
}
});