You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
See: nodejs/node#29327
Starting with Node 13.1.0, if you pass
--experimental-resolve-self
, Node will resolverequire("pkg")
to the parent package provided the nearestpackage.json
has a matching"name": "pkg"
field.Concretely, this means
require("this")
would just becomerequire("my-package")
under this scheme. This also works with multiple different packages simultaneously, whilethis
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.
The text was updated successfully, but these errors were encountered: