A node.js resolve algorithm which handles an 'assets' object in package.json.