chore: remove file extension from the errors export#1236
chore: remove file extension from the errors export#1236RangerMauve wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Personally I prefer having the file extension included and it seems like we do that for some of our other more recently worked-on modules.
Also worth noting that there can be a technical benefit to including the file extension (at least in Node): https://nodejs.org/api/packages.html#extensions-in-subpaths
With import maps now providing a standard for package resolution in browsers and other JavaScript runtimes, using the extensionless style can result in bloated import map definitions. Explicit file extensions can avoid this issue by enabling the import map to utilize a packages folder mapping to map multiple subpaths where possible instead of a separate map entry per package subpath export. This also mirrors the requirement of using the full specifier path in relative and absolute import specifiers.
|
Fair enough! |
Should be a bit cleaner and more standard
e.g.
instead of