Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSA: Node 13.1.0 will have built-in functionality that obsoletes this package #16

Closed
dead-claudia opened this issue Nov 5, 2019 · 1 comment

Comments

@dead-claudia
Copy link

See: nodejs/node#29327

Starting with Node 13.1.0, if you pass --experimental-resolve-self, Node will resolve require("pkg") to the parent package provided the nearest package.json has a matching "name": "pkg" field.

Concretely, this means require("this") would just become require("my-package") under this scheme. This also works with multiple different packages simultaneously, while this does not as it doesn't remove itself from the cache before returning.


There is nothing you need to do as part of this issue, and you may feel free to close it immediately. I just wanted to let you know this is an upcoming thing so you could be aware of it.

@lukechilds
Copy link
Owner

Wow that's awesome, thanks for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants