NodeRequirer icon indicating copy to clipboard operation
NodeRequirer copied to clipboard

A Sublime Text 3 plugin for requiring modules.

Results 24 NodeRequirer issues
Sort by recently updated
recently updated
newest added

The bug is in the utils, when it tries to determine wheter a module is local or not. https://github.com/ganemone/NodeRequirer/blob/4eed13a166cb5a8842fa84077abc66e50250db45/src/utils.py#L70-L71 For example, for a npm package `@someNamespace/package` it breaks. `is_local_file` should...

# What does this PR do? It adds an example how to configure NodeRequirer in the sublime-project file. 👍🏻

A workaround: In ModuleLoader.py: ```python def get_local_files(self): """Load the list of local files.""" # Don't throw errors if invoked in a view without # a filename like the console local_files...

With ctrl+shift+o on 'path', i got require without name variable, and the package name are not the same. ``` require('yaml/parse-cst') ``` ![image](https://user-images.githubusercontent.com/18501150/62037552-46d4d280-b1f4-11e9-84aa-dc3d31596ea9.png)

`usePromisify` vs `detect_prefer_imports`

destructuring is in your doc but neither it's specified in the default options, neither it works when I enable it in my preferences. ``` { "alias": { "prop-types": "PropTypes", "lodash":...

HI there, I don't know if feature suggestion is permitted here. Would it be possible to add something to ctrl or cmd + e for types? ```js //types.js export type...

``` import ReactPlaceholder from "react-placeholder/lib/ReactPlaceholder" // Click on "React" here import PropTypes from "react-transition-group/utils/PropTypes" // Click on "PropTypes" here ```

When using the option `omit_extensions: ["js"]` imports of files with dots in them like `myfile.is.huge.js` breaks. Such files are imported as: `import myfile from './myfile'` But the expected import would...

bug