-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
A similar feature to this library is already available in node as a standard: import mapping.
Not only does it allow for directory mapping, but it also allows dependency aliasing, and works for both require and import (ESM) WITHOUT breaking resolution behaviour in production or other libraries like using this library does.
You have been warned.
I know this sounds hateful, however, that is not my intention. My intention is instead to spread awareness about this mostly undocumented feature (it is not shown in any package manifest documentation besides node's, and it is relatively tucked away) so people can write better software without needing to use hacky libraries like this one and without adding unnecessary dependencies.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels