Only require files that end in .js (avoid errors from requiring source map files, for example)

The resourceful plugin should only attempt to require files ending in .js, to avoid requiring source map files.