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

https://github.com/Microsoft/vscode/issues/14907 A `jsconfig.json` won't work for me, any idea?

Using the normal require function gives the developers benefit of hovering over the function then VSCode will be able to show the necessary arguments of the function. Moreover, you can...

So , module-alias works pretty well when using it in a dev enviroment when used like this in package.json : `node -r esm -r module-alias/register index.js` . but as soon...

I'm moving a project over to using node's [native ES modules](https://nodejs.org/api/esm.html) (enabled with the `--experimental-modules` flag). After updating my code, module-alias is no longer working. I tried adding this to...

I just wanted to use it with my nodejs 14x app. I run my node with esm module for ES6 support. ```js require('module-alias/register') import logger from '_root/logger' ``` and packages.json...

A similar feature to this library is already available in node as a standard: [import mapping](https://nodejs.org/api/packages.html#packages_imports). Not only does it allow for directory mapping, but it also allows dependency aliasing,...

Updated var keyword into let (Es6) Updated functions into arrow functions (Es6)

module-alias is working fine with my commonjs project, once it migrated to use esm it stopped working minimal repos: [commonjs version](https://stackblitz.com/edit/node-42hfdu?file=package.json) [esm version](https://stackblitz.com/edit/node-z4b52r?file=package.json) run `npm run start:paths` in both projects

Hi, I am trying to use module-alias in my project and I am using node js 15.x type: module in package.json but it not working for me. see below code...

Ran into an issue when using yarn workspaces hoisting. Because the `module-alias` directory will be hoisted to the top level of the project, it will read the `package.json` from the...