module-alias icon indicating copy to clipboard operation
module-alias copied to clipboard

Register aliases of directories and custom module paths in Node

Results 58 module-alias issues
Sort by recently updated
recently updated
newest added

Tests are failing on my Windows 10 Pro Education 64-bit. I found that `aliases[alias] = nodePath.join(base, aliases[alias])` is adding base path + alias (absolute) path resulting in an invalid location....

Hi, I have the following use case. I have nodejs app that needs to reuse model hierarchy written in ES6 with all those exports which is not supported in the...

These are actually 2 separate features. - I want to be able to resolve ts files using require.resolve. - I want to be able to resolve my aliases with path.resolve.

Hi There, Recently, I met some issue while using module-alias. The use case is: I have two nodejs package A & B. Here is the package A [aliasTest.zip](https://github.com/ilearnio/module-alias/files/3517193/aliasTest.zip), which use...

Right now we have `_moduleAliases` and `_moduleDirectories` options that we read from package.json. It makes sense to move them into `"module-alias": { alias, modules }` (names `alias, modules` can be...

good first issue

Hi I have found other node modules that I want to use in my project and uses routes as string that you pass as an argument (for example), to maintain...

How can I mark specific module as external ?

- [ ] Check if the required module is the same object instance, regardless of require-ing using alias or not (the require cache should be returned). - [ ] Test...

Let's say we have a directory structure like the following: ``` . ├── clients │   └── mongo.js ├── components │   ├── api │   │   ├── package-lock.json │   │   ├── package.json...