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
I use subpath imports (prefixed with #) in my Motherhen project as a shortcut to import Foo from "../../../../someDir/someOtherDir/Foo.js". The examples for import/extensions, unsurprisingly, don't cover this case. Apparently, the tests don't cover this either.
My preference is to treat subpath imports identically to non-package imports - and to test for the same.
Failing that, I would consider documenting subpath import examples sufficient.
The text was updated successfully, but these errors were encountered:
To be clear, i consider the best practice anyways to be keeping a package backwards compatible with pre-exports node - that does, ofc, preclude subpath imports and self-referencing.
I use subpath imports (prefixed with
#
) in my Motherhen project as a shortcut toimport Foo from "../../../../someDir/someOtherDir/Foo.js"
. The examples forimport/extensions
, unsurprisingly, don't cover this case. Apparently, the tests don't cover this either.My preference is to treat subpath imports identically to non-package imports - and to test for the same.
Failing that, I would consider documenting subpath import examples sufficient.
The text was updated successfully, but these errors were encountered: