diff --git a/.changeset/nasty-seahorses-decide.md b/.changeset/nasty-seahorses-decide.md new file mode 100644 index 0000000..8bc8dd4 --- /dev/null +++ b/.changeset/nasty-seahorses-decide.md @@ -0,0 +1,5 @@ +--- +'@sumup-oss/intl': patch +--- + +Added the `exports` field to the `package.json` file to fix Node.js' module resolution for bundlers that support ES modules. diff --git a/package.json b/package.json index 4d30dc4..232c22c 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,11 @@ "main": "dist/cjs/index.js", "module": "dist/es/index.js", "types": "dist/es/index.d.ts", + "exports": { + "require": "./dist/cjs/index.js", + "import": "./dist/es/index.js", + "types": "./dist/es/index.d.ts" + }, "sideEffects": false, "files": [ "dist",