marijnh/tern — pull request #464 by bajtos (2014-12-31 16:33:47+00:00)
Title: plugin/node: `definition` for `require()`

Enhance the node plugin to decorate string literals passed to `require` calls so that `definition` queries for these literals return results pointing to `module.exports` in the target files.

Example:

```js
var express = require('express');
```

Place the cursor inside the `express` string and invoke `:TernDef` in Vim. With this change in place, Vim navigates to `node_modules/express/index.js`.

This functionality is already available in WebStorm and possibly in other IDEs too.