Skip to content

Commit

Permalink
feat: add "exports" map
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Aug 12, 2020
1 parent cf14422 commit 3533248
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@
"dist",
"lite"
],
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./lite": {
"import": "./lite/index.mjs",
"require": "./lite/index.js"
},
"./package.json": "./package.json"
},
"modes": {
"lite": "src/lite.js",
"default": "src/index.js"
Expand Down

0 comments on commit 3533248

Please sign in to comment.