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

It seems that when there is a local file called the same as an existing package (let's assume `stripe` package and `stripe.js` file) and you are trying to load the...

bug

I have multiple treed projects, but in this example, we'll say I have 2. In my `index.js`, I have `require('module-alias/register')`. In the first project, `module-alias` works fine as this project...

I come across a larger node project that uses `module-alias` and currently has 14 aliases. When fast reading through source is not easy to digest what module import is an...

enhancement

Hello Nick, I read about `module-alias` today and I was very interested in using it. However, I intend to use it in a way that won't break the tooling around...

create a complementary @types module in npm to support typescript. I can write it if you'll lend some support by explaining how this module works.

You claim thatusing module directories is "exactly like node_modules" - this is, as far as i can tell, false. It only checks the directory of the package.json whereas node_modules resolves...

It would be useful to switch the order of module path search with node_modules being last. This helps if you are have a dependent package you are developing you'd rather...

enhancement

Hello,I found a issue. when i use lerna manage few projects, one of these use module-alias, i found ,it found root/package.json ,not root/packages/project1/package.json. root/ packages/ project1/ package.json project2/ packages.json.

Just like typescript path alias, where multiple paths can be tied to an alias make it possible to do so in the package.json ```json /* other tsconfig,json setting */ "moduleResolution":...

Hi, I have gotten this feature to work when running in node the normal way. But I also want to get it to work when I run a single js-file...