swantzter / kontonummer

Parse, validate and format Swedish bank account numbers
https://kontonummer.se
MIT License
5 stars 2 forks source link

fix: Add "type": "module" to package.json for ESM compatibility #33

Closed Cmoen11 closed 3 months ago

Cmoen11 commented 4 months ago

This change adds the "type": "module" field to the package.json file to ensure the package is correctly recognized as an ES Module. This resolves issues with bundlers and compilers, such as Vite, that require explicit module type declarations to handle ESM syntax properly.

Without this field, certain environments may misinterpret ESM syntax, leading to errors during development and build processes. This update improves compatibility and developer experience.

swantzter commented 3 months ago

Hmm, I believe vite should correctly parse the exports map. I won't have a chance to verify and test this until I'm back from vacation in two weeks