diff --git a/package.json b/package.json index 5f7eecb23..8b0192d96 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,17 @@ "main": "lib/index.js", "module": "esm/index.js", "types": "esm/index.d.ts", + "exports": { + ".": { + "require": "./lib/index.js", + "default": "./esm/index.js" + } + }, + "typesVersions": { + "*": { + "*": ["./esm/index.d.ts"] + } + }, "sideEffects": false, "files": [ "lib",