diff --git a/package.json b/package.json index 1a6a783ccdb..a19eef02174 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,14 @@ "main": "lib/index.js", "module": "lib-esm/index.js", "exports":{ - ".": "./lib-esm/index.js", - "./drafts": "./lib-esm/drafts.js", - "./lib-esm/drafts": "./lib-esm/drafts.js" + ".": { + "node": "./lib/index.js", + "default": "./lib-esm/index.js" + }, + "./drafts": { + "node": "./lib/drafts.js", + "default": "./lib-esm/drafts.js" + } }, "typings": "lib/index.d.ts", "sideEffects": false,