3 ms·
Personally I'm a fan of using relative paths for anything in the same directory or a sub-directory of the current file and absolute paths for everything else.
by Jochim 4y ago
Personally I'm a fan of using relative paths for anything in the same directory or a sub-directory of the current file and absolute paths for everything else.
I feel like it keeps things clean while also providing a way to distinguish between closely related modules and imports from further away in your application.
- throwaway284534 4y agoI’ve also fallen back into favoring relative paths and doing my best to keep nested paths to a minimum. This also makes publishing on Deno’s module listing possible too!