Closed
Description
The ESM build of the library should use the .js
file extension for relative imports, else it is not a valid ES module.
Reference: https://nodejs.org/api/esm.html#mandatory-file-extensions
This also causes issues (MODULE_NOT_FOUND) with tools that support ESM (like Vitest).
Adding file extensions to relative imports should also cause no issues with the CJS build of the package.
Metadata
Metadata
Assignees
Labels
No labels