Skip to content

Commit

Permalink
feat: add exports map for Native ESM;
Browse files Browse the repository at this point in the history
- was part of 2.0 – forgot to add it...
  • Loading branch information
lukeed committed Aug 14, 2020
1 parent a28a218 commit 9ae0093
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,25 @@
"json",
"lite"
],
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./json": {
"import": "./json/index.mjs",
"require": "./json/index.js"
},
"./lite": {
"import": "./lite/index.mjs",
"require": "./lite/index.js"
},
"./full": {
"import": "./full/index.mjs",
"require": "./full/index.js"
},
"./package.json": "./package.json"
},
"modes": {
"json": "src/json.js",
"lite": "src/lite.js",
Expand Down

0 comments on commit 9ae0093

Please sign in to comment.